Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcpcd is being finicky
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
duff
Guru
Guru


Joined: 19 Jun 2002
Posts: 466
Location: Clemson, SC

PostPosted: Thu Jul 08, 2004 5:45 pm    Post subject: dhcpcd is being finicky Reply with quote

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
View user's profile Send private message
oracleofmist
Apprentice
Apprentice


Joined: 19 Jun 2004
Posts: 235

PostPosted: Thu Jul 08, 2004 7:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
duff
Guru
Guru


Joined: 19 Jun 2002
Posts: 466
Location: Clemson, SC

PostPosted: Thu Jul 15, 2004 1:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
gnuageux
Veteran
Veteran


Joined: 17 Apr 2004
Posts: 1201

PostPosted: Thu Jul 15, 2004 1:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
duff
Guru
Guru


Joined: 19 Jun 2002
Posts: 466
Location: Clemson, SC

PostPosted: Thu Jul 15, 2004 2:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
roger_rabbit
n00b
n00b


Joined: 29 Dec 2003
Posts: 37
Location: georgia

PostPosted: Sat Aug 28, 2004 3:15 pm    Post subject: same problem Reply with quote

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
View user's profile Send private message
speeding
n00b
n00b


Joined: 13 May 2004
Posts: 14
Location: Europe

PostPosted: Sat Aug 28, 2004 5:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum