Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hi have a Debian Squeeze box with eth0 and eth1.

In /etc/network/interfaces is:

auto eth1
iface eth1 inet static

But every 24 hours, eth1 loses its statically-assigned IP address, and fetches one from DHCP instead! Manually doing:

# ifup eth1 && ifdown eth1

puts it back to how it should be.

But why does it spontaneously break in the first place?!

share|improve this question
up vote 9 down vote accepted

Is dhcpcd/dhclient still running? It will refresh its DHCP address on the interface if you don't kill it.

Also, did you configure Network Manager? That'll override the interfaces file. Get rid of it if you're not using it.

share|improve this answer
Change 'dhcpcd' to 'dhclient' above, and I'll mark this answer as correct. It seems that if you edit /etc/networking/interfaces so that eth1 is now 'static' instead of 'dhcp', then an 'ifdown eth1 && ifup eth1' won't kill the dhclient instance which ifupdown started initially. Kill it manually, and it stays away when you ifdown/ifup. – David Bullock Dec 16 '11 at 15:25
Exactly. It would have worked if you had run ifdown, THEN edited to change the method to static, THEN run ifup. In your case, ifdown had no idea that dhclient needed to be killed. – MikeyB Dec 16 '11 at 22:05

Your Answer


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.