You are not logged in.

#1 2011-04-13 23:18:45

instinct
Member
Registered: 2011-04-13
Posts: 14

DHCP releasing ip after 1 second

dhcpcd is giving me a valid ip address and everything but is realeasing it like 1 second after doing so.

dhcpcd -d eth0 && ifconfig && cat /etc/resolv.conf;ifconfig;cat /etc/resolv.conf

At the time of the first ifconfig and cat everything is ok but when i issue the second ones i no longer have an ip and nameservers.
I' using dhcpcd version 5.2.2 and the latest arch release.
What am i doing wrong?

PS:everything is working fine under freebsd 8.2 (dhclient em0).

Last edited by instinct (2011-04-13 23:19:42)

Offline

#2 2011-04-14 06:39:24

FuKaS
Member
Registered: 2010-06-21
Posts: 7

Re: DHCP releasing ip after 1 second

Open up terminal, use su to become root.

Then use your favorite text editor, I like nano, and type: nano /etc/dhcpcd.conf

Omit the line that says "Respect the network MTU" (which is already omitted, but omit the second line, which is option interface_mtu).

I've had this problem before and this is indeed the fix, I submitted a bug report a while back, doesn't seem to be a daemon issue.


Archlinux x86_64 | i7-2600K | 4GB G.Skill Ripjaw 1600mhz | 1TB WD Blue | Antec 550w | Galaxy GT430 1GB | AsRock P67 Pro3 (B3)

Offline

#3 2011-04-14 23:26:05

instinct
Member
Registered: 2011-04-13
Posts: 14

Re: DHCP releasing ip after 1 second

FuKaS,thanks a lot man!!!
Solved.

Offline

Board footer

Powered by FluxBB