The "local connection" in the network connection of the virtual machine uses "automatically obtains the IP address" to be good, has the fixed IP the need to the Internet Protocol setting. (Right-click Local connection-double click Internet protocol to see if it's automatic! Fixed IP also change here!)
1. Of course, the Internet mode of the virtual machine selected as Nat slightly. Right button you want to set the virtual machine select "Settings" (because some more than virtual one), in the "Hardware" selected "Ethernet", the right network connection to nat-OK.
2. Click "Edit" in the menu bar-select "Virtual network Settings", first "automatic bridging" to remove (remove hook), and then choose "DHCP" to open the DHCP service, point "start"-application, and then the same way to open the "NAT" function.
The features of NAT in the way of internet
1. The host's virtual NIC does not have to be set (automatically obtained by default)
2. The network card in the virtual system does not have to be set (automatically obtained by default)
This two implementation assumes that the virtual DHCP server is working properly
The second way to connect to the Internet: Bridging mode
Virtual Machine Select "Bridge", after the bridge can directly access the Internet, but can not share data with the host, so I use the "shared" way, so that the virtual machine to share the host network card, so as to achieve access to the Internet and the purpose of sharing host data.
In the Network place----properties---the adsl--property---advanced----Internet Connection Sharing-----"Allow other computers ..." On the hook, then select the option below for "Local Area Connection"--------determine
The warning box appears, OK, then disconnect ADSL, then re-ADSL, Internet, ok!
Service network Restart can access the Internet.