You are not logged in.

#1 2010-10-22 07:57:10

anadyr
Member
Registered: 2005-02-10
Posts: 225

[solved] DHCP wants a wrong IP address

Hi

I am tryıng to get a certaın wıreless network workıng but theres a strange problem. When I try to connect (authentıcatıon OK) ıt faıls on obtaınıng an IP lease from DHCPCD. It says:
rebındıng lease 192.168.0.102
reject NAK on 192.168.3.1
IP lease faıled.

Problem ıs: the laptop WANTS to use IP address 192.168.0.102 ınstead of gettıng an IP from the router, but I cant fınd the fıle or settıng where to change thıs. Does anybody have an ıdea what fıle DHCPCD reads so that ıt thınks ıt should connect wıth IP 192.168.0.102?

Thıs ıs what I checked:

hosts (and host.conf, host.allow, host.deny)
rc.conf
network.d profıles
wpa_supplıcant.conf
resolv.conf
all the rc.local, rc.multı, etc fıles

I know thıs sounds rather vague but I am not able to post confıgs because I am ın an ınternetcafe at the moment.
I try to connect through netcfg, and wpa_supplıcant (but, as saıd, they connect properly except for DHCP).

And sorry for the ı/i... Turkısh keyboard!

Last edited by anadyr (2010-10-22 09:31:59)

Offline

#2 2010-10-22 09:34:01

anadyr
Member
Registered: 2005-02-10
Posts: 225

Re: [solved] DHCP wants a wrong IP address

Well, it is solved, but I didn't change anything. For some reason after a few tries and reboots it "forgot" the old IP address; I obtained a proper new IP from the DHCP server, and now it works!

Offline

#3 2010-10-22 21:35:01

hexanol
Member
From: Canaduh
Registered: 2009-08-04
Posts: 95

Re: [solved] DHCP wants a wrong IP address

The file you were looking for is the dhcpcd.lease file. I think you can find it in the /var/lib/dhcpcd directory.

This is a bit surprising though. Normally, if the DHCP client receive a DHCP NAK, it goes back into INIT-REBOOT state, and then tries sending a DHCP discover, so you normally have nothing to do if you find yourself into this situation.

Offline

Board footer

Powered by FluxBB