I am running one Ubuntu Server 14.04 with network configuration using
/etc/network/interfaces and so
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?