Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eth0 long dhcp delay
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Tue Apr 26, 2005 6:37 pm    Post subject: eth0 long dhcp delay Reply with quote

Hi.
A dhcp request from eth0 takes really long time, ok 1 Minute exactly.
The conf.d/net just has:
Code:
iface_eth0="dhcp"
iface_eth1="dhcp"
Meanwhile the dhcp server says:
Code:
Apr 26 20:26:52 server dnsmasq[5622]: DHCPRELEASE(eth0) 192.168.168.21 00:03:93:91:d7:70
Apr 26 20:26:52 server arpwatch: 0:3:93:91:d7:70 sent bad addr len (hard 0, prot 4)
Apr 26 20:27:54 server dnsmasq[5622]: DHCPDISCOVER(eth0) 192.168.168.21 00:03:93:91:d7:70
Apr 26 20:27:54 server dnsmasq[5622]: DHCPOFFER(eth0) 192.168.168.21 00:03:93:91:d7:70
Apr 26 20:27:54 server dnsmasq[5622]: DHCPREQUEST(eth0) 192.168.168.21 00:03:93:91:d7:70
Apr 26 20:27:54 server dnsmasq[5622]: DHCPACK(eth0) 192.168.168.21 00:03:93:91:d7:70 MaBu02

The iBook says the same as usual:
Code:
Apr 26 20:25:29 MaBu02 dhcpcd[10239]: terminating on signal 10
Apr 26 20:25:30 MaBu02 eth0: Link is up at 100 Mbps, full-duplex.
Apr 26 20:25:30 MaBu02 eth0: Pause is disabled

But what about this particular message of arpwatch (thanks god for using it)?
Paolo
Back to top
View user's profile Send private message
rouben
Apprentice
Apprentice


Joined: 07 Feb 2005
Posts: 159
Location: Thornhill, ON, Canada

PostPosted: Wed Apr 27, 2005 4:31 am    Post subject: Reply with quote

Does this happen whenever you take your computer off one network to another (i.e. when you have to change IP addresses)? If so, try decreasing the DHCP client timeout by modifying your /etc/conf.d/net like so:

Code:
dhcpcd_eth0="-N -t 3"


The -t option followed by a space and an integer (X) tells the DHCP client daemon to wait a maximum of X seconds for DHCP replies (in the above case: a maximum of three seconds). This should stop it from trying so hard to reacquire the previous IP address, which the DHCP server is probably violently refusing to issue (for obvious reasons) on the other end.
.
I used to run into the sae exact problem whenever I took my laptop from home to work and vice versa (at home I have 192.168 addresses and at work they are obviously different), and each time I had to go back and forth between these networks, I had to wait a long time (over 10 seconds) to obtain a proper IP lease. Sometimes the DHCP client would even fail. Ever since I implemented the change above, everything works OK.

I hope this helps! ;)
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Wed Apr 27, 2005 9:28 am    Post subject: Reply with quote

I will try it later..
But the problem occurs even when I just use the iBook at home. Every reboot or /etc/init.d/net.eth0 restart it has to wait 1 minute.
The dhcp is not refusing it and reacts right after request..After that the client gets the right adress.
Other clients don't have problems.
Right now I am using a fixed IP, but I like to ask the dhcp-server, which IPs are released so whos client is on.
paolo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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