6

I have a VM running Debian 9 and the latest version of VirtualBox. I have VirtualBox configured to use the bridged adapter and it was working fine yesterday. But when I came and got on it this morning... I am unable to access the network from it or the internet. Here is the output of ip address show

ip address show output

Bryan Pruett
  • 61
  • 1
  • 1
  • 4
  • Just `systemctl restart networking.service`, and to verify if your dhclient is still running: `ps -elf | grep dhclient` – NarūnasK Oct 20 '17 at 13:22

1 Answers1

1

In order to get a new IP address through DHCP, dhclient must be running. You can run it manually to confirm it works.

Then check your /etc/network/interfaces file, it should contain a line like:

iface enp0s3 inet dhcp

if it doesn't, add it and restart the network with

systemctl restart networking
Alex Austin
  • 185
  • 6