我如何强制dhclient使用最后一个已知的IP?
这是为了在客户端/服务器应用程序中容错。 该公司说,当networking不可用时,应用程序仍然必须运行。 只要不丢失IP地址就行了。 问题是,当我拔下网卡时,我正在丢失IP地址。 我可以强制它使用它的最后一个已知的IP地址吗? /etc/dhclient.conf option rfc3442-classless-static-routes code 121 = array of unsigned integer 8; request subnet-mask, broadcast-address, routers, rfc3442-classless-static-routes, 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"; fixed-address 10.59.139.21; } […]