View previous topic :: View next topic |
Author |
Message |
duff Guru
Joined: 19 Jun 2002 Posts: 466 Location: Clemson, SC
|
Posted: Thu Jul 08, 2004 5:45 pm Post subject: dhcpcd is being finicky |
|
|
I'm having a strange problem with all three of the Linux computers I have running through my router at home. If it's a been a while since I've had a computer connected, net.eth0 doesn't start. Resetting the modem or the router doesn't help, neither does trying to connect multiple times; the only thing to do, is to reboot into MS Windows. That connects just fine, then when I reboot back into linux, net.eth0 connects as expected. I've tried passing practically every command line option to dhcpcd I've found in the man page, but nothing is helping. Has anybody come across this before? It used to only do this once every few months, but now it's a daily thing. BTW, the router is a Linksys Wireless Access Point/4-port router (firmware 1.42.7), and all computers are running the 2.6 Linux kernel; all difference network cards though (8139too, 3c59x, and e100). Thanks. |
|
Back to top |
|
|
oracleofmist Apprentice
Joined: 19 Jun 2004 Posts: 235
|
Posted: Thu Jul 08, 2004 7:42 pm Post subject: |
|
|
so dhcp is not picking up anything? i'd just give them a static ip, this of course wouldnt solve the problem but be a work around. it doesnt sound like this is the problem but try "rm /var/run/dhcpcd-eth0.pid" |
|
Back to top |
|
|
duff Guru
Joined: 19 Jun 2002 Posts: 466 Location: Clemson, SC
|
Posted: Thu Jul 15, 2004 1:53 pm Post subject: |
|
|
oracleofmist wrote: | so dhcp is not picking up anything? i'd just give them a static ip, this of course wouldnt solve the problem but be a work around. |
Thanks for the suggestions, but I don't want to assign static IPs since all of the computers are laptops which I use at home and on campus, and I'd rather not have to change my net.conf file everytime.
oracleofmist wrote: | it doesnt sound like this is the problem but try "rm /var/run/dhcpcd-eth0.pid" |
No..it's not there. dhcpcd is shutting down properly, so the pid file is removed. |
|
Back to top |
|
|
gnuageux Veteran
Joined: 17 Apr 2004 Posts: 1201
|
Posted: Thu Jul 15, 2004 1:55 pm Post subject: |
|
|
Does the ethernet interface fail to come up, or just fail to lease an ip? (sorry it wasnt terribly clear in the original post)
Ok, in rereading it this is happening on all 3 boxes? But windows on any of those hosts leases an IP? Is that correct? _________________ The realOTW: http://forums.realotw.org/index.php
Registered Linux user#364538 |
|
Back to top |
|
|
duff Guru
Joined: 19 Jun 2002 Posts: 466 Location: Clemson, SC
|
Posted: Thu Jul 15, 2004 2:44 pm Post subject: |
|
|
gnuageux wrote: | Does the ethernet interface fail to come up, or just fail to lease an ip? (sorry it wasnt terribly clear in the original post)
| The interface does not come up. If I run "/etc/init.d/net.eth0 start" after 5 seconds I get the red " [ !! ] " (I set a timeout in my dchpcd_eth0 variable since I don't always have the network connected. And if I just run "dhcpcd" by itself it sits there for a minute without bringing up the interface.
gnuageux wrote: | Ok, in rereading it this is happening on all 3 boxes? But windows on any of those hosts leases an IP? Is that correct? | correct. It's never been a problem for Windows to connect. |
|
Back to top |
|
|
roger_rabbit n00b
Joined: 29 Dec 2003 Posts: 37 Location: georgia
|
Posted: Sat Aug 28, 2004 3:15 pm Post subject: same problem |
|
|
I'm having the same problem. dhcpcd doesn't get an address. If you do a tcpdump on the interface while your request, you'll see lots of offers but dhcpcd just doesn't listen.
i'm going round and round with this at the moment. I KNOW its a gentoo problem, simply because I can boot knoppix on my router and it will get an ip fine...
however, with knoppix it uses ifup and such, and i can't find dhcpcd anywhere on the knoppix STD cd.
i've tried pump, dhcpclient, various versions of dhcpcd all to no avail. Its a gentoo problem and I can't figure it out. _________________ ----------------------------------------
compilation, compilation - whats the difference. |
|
Back to top |
|
|
speeding n00b
Joined: 13 May 2004 Posts: 14 Location: Europe
|
Posted: Sat Aug 28, 2004 5:51 pm Post subject: |
|
|
Hi.
I had a similar problem, removing
Code: |
/var/lib/dhcpc/dhcpcd-eth0.info.old
/var/lib/dhcpc/dhcpcd-eth0.info
|
fixed it, YMMV though.
Seems like dhcpcd tries to get the same IP it got the last time the interface came up. |
|
Back to top |
|
|
|