Hi have a Debian Squeeze box with eth0 and eth1.
In /etc/network/interfaces is:
auto eth1
iface eth1 inet static
address 10.1.2.208
netmask 255.255.255.0
gateway 10.1.2.1
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?!
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.Try this:
For example: