In a Win7 environment, use bridging and NAT mode to configure VMware Virtual machine networks to enable host and virtual machines and virtual machines to access the Internet via host network cards.
1 Configuring the VMware Virtual Network Editor VMnet0 bridging mode
VMnet1 only Host Mode
VMnet8 bridging mode, where the subnet IP configures its own desired segment and clicks on "Nat settings" to set the gateway IP
When the above setup is complete, you see the following network adapter information and IP address information in the host Win7
In order for the virtual machine to access the Internet via the host network card, the local Connection Sharing is enabled
2 VMware Add NIC device
Add using NAT mode network card, pay attention to the MAC address of the network card, after the virtual machine network configuration, NAT mode network card gateway needs to set the same as VMNET8, namely 137 network segment.
When you configure a virtual machine network, the gateway settings for the bridge mode network adapter are consistent with the host network segment, which is the 12 segment, when you add a bridge-mode NIC.
3 Configuring the Virtual machine IP address
The virtual machine hardware NIC name is the standard for the automatically generated NIC name when the virtual machine is started, and the corresponding configuration file is added. Where the DNS address is consistent with the host DNS address.
device=Eth2bootproto=staticonboot=Yestype=ethernetipaddr= 192.168. 137.80 NETMASK=255.255. 255.0 GATEWAY=192.168. 137.1 DNS1=61.139. 2.69
device=Eth3bootproto=staticonboot=Yestype=ethernetipaddr= 192.168. 12.70 NETMASK=255.255. 255.0 GATEWAY=192.168. 12.1 DNS1=61.139. 2.69
Restart the Network service and view the virtual machine NIC information, noting that the MAC address corresponds correctly to the virtual network card MAC address.
View virtual Machine Routing configuration information
Test network connectivity
Host and virtual machine shared folders
Shared File Mount Path
/mnt/hgfs/centos_share/
2016-11-10:win7 CentOS6.5 Network configuration in VMware virtual machines