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

This is for fault tolerance in a client/server app. The business says that when the network is unavailable, the app must still run. And it will, provided it doesn't lose it's IP address. The problem is that I'm losing the IP address as soon as I unplug the NIC. Can I force it to use it's last known IP address?


option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;

request subnet-mask, broadcast-address, routers,
    interface-mtu, host-name, domain-name, domain-search,
    domain-name-servers, nis-domain, nis-servers,
    nds-context, nds-servers, nds-tree-name,
    netbios-name-servers, netbios-dd-server,
    netbios-node-type, netbios-scope, ntp-servers;

require subnet-mask;

timeout 60;
retry 60;
reboot 10;
select-timeout 5;
initial-interval 2;

lease {
    interface "eth0";

Relevant system log output is here: http://pastebin.com/XdyeRLdg

share|improve this question

1 Answer 1

Perhaps I'm missing something obvious, as happens from time to time, but isn't this the very thing static IP addresses assignments are for? Instead of using dhclient, set the IP to a static IP and be done with it.

share|improve this answer

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.