Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Client gets wrong IP since dhcpcd 4.0.0 [SOLVED]
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
furanku
l33t
l33t


Joined: 08 May 2003
Posts: 905
Location: Hamburg, Germany

PostPosted: Sun Aug 03, 2008 1:06 pm    Post subject: Client gets wrong IP since dhcpcd 4.0.0 [SOLVED] Reply with quote

Hi,

I've set up my netgear router to assign IP 192.168.0.2 to my gentoo client by configuring this IP for the given MAC. Since dhcpcd 4.0.0 this doen't work anymore, the client gets other IPs like 192.168.0.4 assigned, which are from the IP range that I configured for dynamically IP assigment. I can see in the routers adminstration web interface that the correct MAC address is sent to the router.

Here's my /etc/conf.d/net

Code:
config_eth0=("dhcp")
dhcpcd_eth0="-I ''"
dhcp_eth0="nodns nontp nonis"


Last edited by furanku on Mon Aug 04, 2008 9:50 am; edited 1 time in total
Back to top
View user's profile Send private message
flybynite
l33t
l33t


Joined: 06 Dec 2002
Posts: 620

PostPosted: Mon Aug 04, 2008 1:47 am    Post subject: Reply with quote

I had a similar problem a while ago and the easiest fix for me was to stick with version 3.1.5-r1. I understand there were some changes after that that made it follow the newest "standard" more closely but broke with some older servers.

You question made me look at this again and it seems the -r option may be needed on the newer versions.

Quote:
dhcpcd is an implementation of the DHCP client specified in RFC2131 (when -r option is not specified) and RFC1541 (when -r option is specified).



Try adding the -r option and see if it fixes it for you
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Aug 04, 2008 9:21 am    Post subject: Reply with quote

For dhcpcd-3.x upwards, -r means "request address" not enable an old RFC :)

As to the problem posted by the OP, try removing /etc/dhcpcd.duid
If that fails, emerge dhcpcd without the compat USE flag.
Let is know if this works!

With dhcpcd-4, you should NOT need this
Code:
dhcpcd_eth0="-I ''"

If /etc/dhcpcd.duid does not exist.
_________________
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
furanku
l33t
l33t


Joined: 08 May 2003
Posts: 905
Location: Hamburg, Germany

PostPosted: Mon Aug 04, 2008 9:49 am    Post subject: Reply with quote

Thanks UberLord, removing /etc/dhcpcd.duid and the -I config option solved the problem!
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