I have a VM running Ubuntu and I'm experimenting with the various networking options. The problem I have is that I don't know how to get Ubuntu to "refresh" the network connections after I have "unplugged a network cable" and "plugged in a different one". Only way I get it to work now is to reboot the VM which is a bit annoying.
It's using the server version of Ubuntu and I don't have a GUI, so I would like to know how to do this in the terminal.