There are 2 modes of virtual machine surfing, Nat and bridging.
NAT-Mode Internet configuration process
This is provided that the host Windows is connected via wireless WiFi (or Windows is available via wired Internet access).
Then configure the following:
1. Select the virtual machine for NAT mode;
2. Configure the use of DHCP in Ubuntu/etc/network/inerfaces files;
Append the input in the Inerfaces file:
Auto Eth0
Iface eth0 inet DHCP//static is static
Address 192.168.1.100
Netmask 255.255.255.0
Gateway 192.168.1.1 NOTE: DHCP automatically assigns DNS server addresses, and once a static IP is set, there is no automatically acquired DNS server to set one yourself.
3. Third Restart network card: Ifdown eth0 and then ifup eth0 can be confirmed, the IP address can be online.
The process of network configuration on Bridge connection mode
The premise is that the host Windows through wireless WiFi internet access (host through the wired network card configuration is different).
Then configure the following:
1. Select the virtual machine to connect to the bridge;
2. Configure the virtual machine bridge to the wireless network card (if the host Windows is via wired Internet, bridge to the wired network card);
3. Configure the use of DHCP in Ubuntu/etc/network/inerfaces files;
4. Then restart the network card, confirm that the IP address can be online.