![]() |
![]() |
#1 (permalink) |
beauty in the breakdown
Location: Chapel Hill, NC
|
Why do I always have to dhcpcd eth0?
OK... I just got my new install of Gentoo working, but I am having an interesting problem. Whenever the machine is booted up, I must bring down eth0, dhdpcd it, and then bring it up for it to work. My connection is set to DHCP, so I shouldnt have to be doing this. It is also interesting because before I bring it down and dhcpcd it, an IP is assigned to me, so it seems like it should be working--but it wont connect to anything. Below are the results for ifconfig eth0 before and after the dhcpd...
BEFORE Link encap:Ethernet HWaddr 00:50:8B:F3:E0:F7 inet addr:152.23.99.44 Bcast:152.23.127.255 Mask:255.255.224.0 UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13390463 errors:2 dropped:0 overruns:0 frame:2 TX packets:211 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:813283283 (775.6 Mb) TX bytes:55844 (54.5 Kb) Interrupt:5 Base address:0x1000 Memory:40a00000-40a00038 AFTER Link encap:Ethernet HWaddr 00:50:8B:F3:E0:F7 inet addr:152.23.99.44 Bcast:152.23.127.255 Mask:255.255.224.0 UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13399462 errors:2 dropped:0 overruns:0 frame:2 TX packets:215 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:813883316 (776.1 Mb) TX bytes:57144 (55.8 Kb) Interrupt:5 Base address:0x1000 Memory:40a00000-40a00038 Thanks for any help...
__________________
"Good people do not need laws to tell them to act responsibly, while bad people will find a way around the laws." --Plato |
![]() |
![]() |
#2 (permalink) |
paranoid
Location: The Netherlands
|
I use fixed IP's in my LAN, but whenever I bring down an interface it always resets the RX and TX byte counters IIRC.
That does not appear to be the case with your setup. I'm not offering a soultion, I just think it's odd.
__________________
"Do not kill. Do not rape. Do not steal. These are principles which every man of every faith can embrace. " - Murphy MacManus (Boondock Saints) |
![]() |
![]() |
#3 (permalink) |
Crazy
Location: Bit Bucket
|
We had a problem similar to this at one point that was our default gateway not being remembered after a reboot. Like you mentioned, we were obtaining the IP address and everythiing just fine, but could never get anywhere. Check to make sure your gateway is in fact getting set properly at boot time.
Type 'route' from the command line and take a look at what you see. It should be something like... PHP Code:
route add default gw GATEWAY'S-IP That will probably be something like 192.168.1.1 depending on your setup. |
![]() |
Tags |
dhcpcd, eth0 |
|
|