1

Automatically acquire new IP address in new network

view story
linux-howto

http://unix.stackexchange.com – I'm running a Centos virtual machine on a laptop using a bridged network connection to avoid double-NAT issues, with the address assigned via DHCP. This works fine until I move the laptop to another network, at which point the VM doesn't notice that it's on a different network and continues to use the old IP address, resulting in a loss of connectivity. Currently I manage this by manually running ifdown and ifup to reset the network connection, but I'd prefer an automatic way to do this. Suggestions? Notes: All networks have DHCP servers. The VM correctly obtains an IP address lease on ea (HowTos)