Results 1 to 4 of 4
I'm using the campus LAN on my FC3. I did
Code:
ifconfig eth0 down
to turn off the eth0. And then I did
Code:
ifconfig eth0 up
to turn it ...
- 03-28-2005 #1Just Joined!
- Join Date
- Jan 2004
- Posts
- 93
ifconfig up/down problem
I'm using the campus LAN on my FC3. I did
to turn off the eth0. And then I didCode:ifconfig eth0 down
to turn it back on. It showsCode:ifconfig eth0 up
However, I couldn't surf the internet and everything. Seems that eth0 is not really turned back on. I think it has something to do with DHCP. Can anyone shed some light on this? Thanks.Code:eth0 Link encap:Ethernet HWaddr 00:00:4C:0E:46:04 inet addr:123.91.206.186 Bcast:122.91.206.255 Mask:255.255.255.0 inet6 addr: fa82::2e1:4cbb:fece:4a04/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8508018 errors:0 dropped:0 overruns:0 frame:0 TX packets:720435 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1146917322 (1.0 GiB) TX bytes:262879523 (250.7 MiB) Interrupt:11 Base address:0x4000
- 03-28-2005 #2Linux Engineer
- Join Date
- Oct 2004
- Location
- Vancouver
- Posts
- 1,366
have you tried
dhcpcd eth0
that should work, your nic is setup you just have to setup your dhcp.Operating System: GNU Emacs
- 03-28-2005 #3Just Joined!
- Join Date
- Jan 2004
- Posts
- 93
I don't have dhcpcd in FC3. However, I have dhclient. I tried FC3's system-config-network GUI tool to Deactivate and Activate eth0, and it works. I just need to know why ifconfig doesn't work.
Originally Posted by genesus
- 03-29-2005 #4Just Joined!
- Join Date
- Mar 2005
- Location
- Milano (Italy)
- Posts
- 45
Because ifconfig is used to show network interfaces parameters and to set them by hand.
Originally Posted by savage_cabbage
You said you use FC3, right? In the directory
you will find a file called ifcfg-eth0. This file is used to instruct the system on what to do of the eth0 interface every time the system starts or every time you enterCode:/etc/sysconfig/network-scripts
You should edit this file and change the lineCode:ifconfig eth0 up
inCode:BOOTPROTO = static
Let me know if it worked.Code:BOOTPROTO = dhcp


Reply With Quote