Sometimes we might encounter a situation that we cannot connect to the network. NAT or bridge mode cannot work, but the interface works well. Besides, we don’t use the network proxy.
In this case, we can try to use one of the following three ways to solve this problem.
- Remove the vitual machine’s network interface and add it again.
- Edit interfaces under directory /etc/network , then add the following codes.These two lines of code don’t necessarily solve the bridge networking problem
1
2auto eth0
iface eth0 inet dhcp - Open the Virtual Network Editor and check the bridged NIC in bridge mode, if it is “Auto”, it is better to change it to the specific NIC name of our PC.
Save the changes and reopen the virtual machine to test the results.