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 each network when bringing up the interface.I cannot change settings on the DHCP servers.The networks are in different IP address ranges.
Automatically acquire new IP address in new network
networking;centos;dhcp