I've got an Ubuntu 14.04 guest installed in virtualbox. Often when the host machine changes networks or is suspended and restarted, the guest VM loses network connectivity. I can reliably get it back by using the network manager GUI applet (the one with the up and down arrows that lives in the corner of the taskbar) and just doing a "disconnect" on that interface followed by clicking on the name of the interface to reconnect.
I would have thought that doing "ip link set eth0 down" and then "ip link set eth0 up" would function the same way, but this does not restore connectivity for the interface.
Can someone tell me what shell equivalent commands are executed by the network manager when you do a "disconnect" followed by a "reconnect"?