Not renewing IP when LAN cable is disconnected
Whenever I disconnect the LAN cable from my Linux box or reset the router the IP doesn't seem to get renewed and so I'm unable to SSH into it or connected to the webservices it is running.
When it boots up it gets an IP fine from DHCP on the router but once the system is up and something changes like the router reboots or cable is disconnected, then this is when the problem occurs.
sometimes if you go back to the actual Linux box in my loft and open a terminal and run
this will cause it to get a new IP from the DHCP server but this isn't very convinient and a bit haphazard.
Any ideas if theres a way to fix this?