Sign up ×  How can I restart a network interface? I have a vm
that doesn't update its IP address correctly when switching
between home and work. The vm runs Ubuntu server and uses a
bridged network adapter.  share|improve this question Under what
OS/distribution? How is the network configured in the VM? – 
Gilles Jul 13 '12 at 23:56  3 Answers 3  Use ifdown to turn it
off and ifup to turn it back on. To restart eth0:  > ifdown eth0
> ifup eth0  You will need root privileges.  More details about
ifup and ifdown.  share|improve this answer  Sounds like you've
got that interface configured using DHCP. If so, you want to
kill the existing DHCP client, and restart it. For a lot of
distros, you'd do this:  dhcpcd -k eth0 dhcpcd -d eth0  but not
every distro used dhcpcd. I know some use dhclient, and doesn't
Debian use pump?  Also, "eth0" may not constitute the correct
interface name: do ifconfig -a to see what that VM has.
share|improve this answer (Not about downvote:) I'm on Debian,
dhcpcd and pump are in the re