mardi 24 mars 2015

I need dhclient to flush IP address/routes when link goes down


I am running one Ubuntu Server 14.04 with network configuration using /etc/network/interfaces and so ifup/ifdown scripts.


I realised that if I configure one interface in DHCP mode, then I unplug the cable from the interface and the IP address configured via DHCP is maintained until the DHCP lease expires. What I need is dhclient to flush addresses and routes configured via DHCP in the interface when the link goes down immediately.


How can I get dhclient to flush IP addresses and routes when the link status is DOWN?



Aucun commentaire:

Enregistrer un commentaire