Author: fbysss
Msn:jameslastchina@hotmail.com
Blog:blog.csdn.net/fbysss
Statement: This article by fbysss Original, reprint please indicate the source
Keywords: VMware dual nic
1. In VMware, edit->virtual network settings->host Virtual Network mapping set VMnet2, VMNET3 to two network adapters on the Windows machine respectively. Note that it is best not to set VMnet0, which is used for automatic bridging.
After you have set up, open the network connection properties in Windows, view the VMware Bridge Protocol with two NICs, and see the corresponding number 2, 3.
2. Stop the virtual machine, set the dual network card in virtual Machine settings: If there is already a network card, click Add to add a network card, network connection Select Custom, Drop-down box to select the corresponding vmnet. Ensure that all two network adapters are associated with the corresponding vmnet.
3. Start the virtual machine, Linux will detect new hardware in the boot, provide settings interface, press F12 to enter next, set up a new network card IP address. (RedHat Linux)
4. Test: Linux, ifconfig,eth0 echo1 configuration can be seen, Windows can ping the address set in Linux.
Precautions:
Linux under the IP settings, the gateway must be set correctly, otherwise can not connect with the outside
Example:/etc/sysconfig/netscripts/ifcfg-eth0
Bootproto=none
ipaddr=222.28.38.17
netmask=255.255.255.0
gateway=222.33.33.1 ----If this is not set correctly, ping this network segment host will prompt destination host unreachable, other network segments will prompt network is unreachable
Type=ethernet
Userctl=yes
Peerdns=yes