[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [SOLVED] Static IP /etc/network/interfaces, but got leased by dhcp



On Oct 10, 2013 at 22:53, "Karl E. Jorgensen" <karl@jorgensen.org.uk> wrote:
> Hm. This should not be happening.
> 
> Was it DHCP recently? (i.e. at any time since the last reboot) Because
> this sequence of events would produce what you saw:

I have uptime:
--
sevenfourk@lefrat ~ $ uptime
 22:59:36 up 17 days, 22:25,  0 users,  load average: 0.33, 0.48, 0.42
sevenfourk@lefrat ~ $ 
--

And I fount that dhcp was running:
--
sevenfourk@lefrat ~ $ ps -ef|grep dhcp
root      1630     1  0 Sep23 ?        00:00:00 dhclient -v -pf /run/dhclient.wlan0.pid -lf /var/lib/dhcp/dhclient.wlan0.leases wlan0
sevenfo+ 11014 22597  0 21:41 pts/1    00:00:00 grep dhcp
sevenfourk@lefrat ~ $
--

> Alternatively: when switching from dhcp to static: kill off any
> remaining dhcp clients manually :-)

That must be it.  I might have used dhcp in /etc/network/interfaces some time
ago, and dhcp client must have been hanging there.

 
-Ivan

Attachment: signature.asc
Description: Digital signature


Reply to: