Re: [Hampshire] Static IP address keeps changing

Top Page
Author: Tony Whitmore
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Static IP address keeps changing

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x56a40100.hantslug.org.uk.3577': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Sat Dec 9 15:43:32 2006 GMT
gpg: using DSA key 7920DB2171B98B64
gpg: Can't check signature: No public key
Tim wrote:
> I am having a problem with the static IP address on my main debian box since
> last weeks bab meeting. At the meeting I had to change from static to dhcp
> which Hugo showed me where and how (Thanks Hugo). When I got home I simply
> hashed out the lines for gaining a dhcp address and unhashed the static lines
> that I had hashed at the bab.
>
> Now twice this week I have found that the box had changed from my required
> static address of 192.168.1.74 to 192.168.1.70 can anybody suggest why it is
> changing. Prior to the bab meeting there was not a problem. A simple stop
> start of the network corrects the problem?


You probably have a DHCP client (like dhclient or dhcpc) running. This
will keep over-writting static configuration information every time the
DHCP lease is up for renewal. For example:

$ ps aux | grep dhc
dhcp      4133  0.0  0.0   2524   808 ?        S<s  Dec03   0:00
dhclient3 -pf /var/run/dhclient.eth0.pid -lf
/var/lib/dhcp3/dhclient.eth0.leases eth0
tony     23830  0.0  0.0   2808   760 pts/2    R+   15:41   0:00 grep dhc


So I have dhclient3 running. Running "killall dhclient3" as root would
solve this in my case. You should check that the DHCP client isn't
starting on system boot too.

HTH,

Tony