Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

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

share|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
add comment

Something invoked dhclient without specifying an interface.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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