I have a Ubuntu server with the following in /etc/network/interfaces:

auto eth0
iface eth0 inet static
        address a.b.c.d
        netmask 255.255.255.0
        gateway a.b.c.254 

When I run /etc/init.d/networking restart, it works as expected.

In the same LAN, I have a DHCP server. From time to time, Ubuntu server unexpectedly loses its static IP, and gets one from a DHCP for an unknown reason to me.

Running /etc/init.d/networking restart corrects the address to the desired one.

What is the cause of this issue, and how can I fix it?

link|improve this question

75% accept rate
feedback

2 Answers

up vote 1 down vote accepted

Happend to me sometime, solved by uninstalling dhcp client. No use on server anyway.

link|improve this answer
Oh I dunno. I use dhclient on servers sometimes. It's all fine if the DHCP server is handing out static leases. – Tom O'Connor Mar 9 '11 at 0:12
Perfectly suitable for me... No need for dhcpclient – Boban P. Mar 9 '11 at 7:54
feedback

Something invoked dhclient without specifying an interface.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.