Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] dhcpcd-4.0.0_beta1 repeatedly requests an IP
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
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Wed May 07, 2008 8:17 pm    Post subject: [solved] dhcpcd-4.0.0_beta1 repeatedly requests an IP Reply with quote

Code:
[ebuild   R   ] net-misc/dhcpcd-4.0.0_beta1  USE="-compat -zeroconf" 0 kB

/etc/conf.d/net:
modules_wlan0="wpa_supplicant"
config_eth0="dhcp"
config_wlan0="dhcp"

When I start a network interface, dhcpcd requests an IP, gets it, and then immediately drops it and requests again:
/var/log/messages:
May  6 18:24:02 traceur dhcpcd[26882]: eth0: broadcasting for a lease
May  6 18:24:02 traceur dhcpcd[26882]: eth0: offered 192.168.1.20 from 192.168.1.1
May  6 18:24:02 traceur dhcpcd[26882]: eth0: checking 192.168.1.20 is available on attached networks
May  6 18:24:03 traceur dhcpcd[26882]: eth0: leased 192.168.1.20 for infinity
May  6 18:24:03 traceur dhcpcd[26882]: eth0: renewing lease of 192.168.1.20
May  6 18:24:03 traceur dhcpcd[26882]: eth0: lost lease, attemping to rebind
May  6 18:24:03 traceur dhcpcd[26882]: eth0: lost lease
May  6 18:24:03 traceur dhcpcd[26882]: eth0: broadcasting for a lease
May  6 18:24:03 traceur dhcpcd[26882]: eth0: offered 192.168.1.20 from 192.168.1.1
May  6 18:24:03 traceur dhcpcd[26882]: eth0: checking 192.168.1.20 is available on attached networks
May  6 18:24:03 traceur dhcpcd[26882]: eth0: leased 192.168.1.20 for infinity
May  6 18:24:03 traceur dhcpcd[26882]: eth0: renewing lease of 192.168.1.20
May  6 18:24:03 traceur dhcpcd[26882]: eth0: lost lease, attemping to rebind
May  6 18:24:03 traceur dhcpcd[26882]: eth0: lost lease

and so on, as far as I can tell for ever. I experienced the same behaviour on two machines. Everything works correctly with dhcpcd-3.2.3; I haven't ever had to use the vram USE flag, the -I '' option, or anything like that.

Is this a configuration issue, or a bug in dhcpcd?
_________________
Saving the world, one kilobyte at a time.


Last edited by tarpman on Fri May 09, 2008 2:17 am; edited 1 time in total
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu May 08, 2008 8:34 am    Post subject: Reply with quote

That looks like a bug! So open one please and I'll try and look at it ASAP, but probably over the weekend.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu May 08, 2008 10:59 am    Post subject: Reply with quote

Try the patch here.
http://roy.marples.name/dhcpcd/dhcpcd-inf.patch
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu May 08, 2008 7:58 pm    Post subject: Reply with quote

fix is in beta2, hopefully in portage soon.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Fri May 09, 2008 12:51 am    Post subject: Reply with quote

Yep, that patch works nicely. Thanks a lot :)
_________________
Saving the world, one kilobyte at a time.
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