Set the "local connection" in the network connection of the virtual machine to access the Internet by using the virtual machine with a fixed ip address. (Right-click "Local Connection" and double-click "Internet Protocol" to see if it is automatic! Change the fixed IP address here !) Www.2cto.com
1. Of course, the VM's Internet access method is selected as NAT. Right-click the virtual machine you want to set and select "set" (because there are more than one virtual machine), select "Ethernet" in "hardware", and change the network connection on the right to "NAT-OK. 2. click "edit" in the menu bar and select "Virtual Network Settings". Remove the "Automatic bridging" and select "DHCP" to enable the DHCP service, click "start"-application, and then enable the "NAT" function in the same way. Features of NAT Internet access 1. you do not need to set the virtual network card of the host (automatically obtained by default. the NIC in the virtual system does not need to be set (automatically obtained by default). The premise is that the virtual dhcp server works normally. The second method is to access the Internet: The Bridge mode is used for the Virtual Machine to select "bridge ", after bridging, you can directly access the Internet, but you cannot share data with the host. Therefore, I use the "share" method to share the host Nic so that the VM can access the Internet and share the host information. In the network neighbor ---- attribute --- ADSL -- attribute --- advanced ---- Internet Connection Sharing ----- "allow other computers ...... then, select the option "Local Connection" -------- confirm the warning box appears, OK, disconnect ADSL, re-connect ADSL, and access the internet. OK! Service network restart.