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.
|
|
Under Debian, you can tell an interface to get another DHCP lease with
The @JustinY's answer will work ( |
|||
|
|
|
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:
but not every distro used Also, "eth0" may not constitute the correct interface name: do |
|||||
|
|
You will need root privileges. More details about |
|||
|
|
