Comment 4 for bug 190359

Revision history for this message
Joseph Reeves (iknowjoseph) wrote :

I'm suffering this on 9.10, although I didn't on 9.04 and earlier. I suppose, in fairness, I'm suffering this issue on a connected interface, unlike the original reporter, although I think it's the same issue and it causes problems for me:

I connect to a network with a DHCP server and run:

sudo dhclient eth0

and all works fine; I have an address and do what I want to do. Then I move to a network without a dhcp server and run:

sudo ifconfig eth0 192.168.blah.blah/24 && sudo ip ro add default via 192.168.blah.blah

And all works fine again; I'm connected to my new network and do what I want to do. Until a few minutes later when (according to /vat/log/syslog) the address is dropped and dhclient tries to acquire a new one. It fails and I'm left unconnected. Running

sudo pkill dhclient

solves the problem. I have run this exact setup / procedures on 8.04, 8.10 and 9.04 without suffering this behavior from dhclient. It's particularly annoying!

joseph@joseph-work:~$ uname -a
Linux joseph-work 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009x
joseph@joseph-work:~$ cat /etc/network/interfaces
auto lo
iface lo inet loopback