Knowledge points and experiments of Vmnet2 (NAT) network under Vmwere virtual machine
Environment: Vmwareworkstation 10.0.3 build-1895310, physical machine Win7
Function: Realize the communication between 3 hosts, can ping each other through
in the Vmwere Virtual Network, when installed on the virtual host, the default installation of 3 virtual network cards,vmnet0,vmnet1,Vmnet2
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/A2/wKioL1VPAHzD60sHAABlBY4osJw940.jpg "title=" Virtual Machine Network " alt= "Wkiol1vpahzd60shaablby4osjw940.jpg"/>
1.1 Virtual Machine Network
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6C/A7/wKiom1VO_znD90wLAAEIVh3yGwM409.jpg "title=" The network connection on the physical host "alt=" Wkiom1vo_znd90wlaaeivh3ygwm409.jpg "/>
1.2 Network connections on the physical host
as shown in 1-2, when the corresponding network is added to the 1-1, the corresponding virtual network card will appear on the network connection of the physical host, and these virtual network cards can modify the name as needed .
as shown in 1-1
VMnet0 Network type is bridged mode, in this mode, virtual opportunity through the network card on the physical host for external communication, so for automatic bridging, do not need to set the IP address, if your physical machine, connected to the wireless router, then your virtual machine the IP address is to be on a network segment with the IP address of the physical host . To enable the virtual machine to communicate.
The VMnet1 is a host-only mode, in this mode, only for communication between hosts, and cannot access the extranet.
for VMnet1 The conditions of network communication between:
1, the virtual machine and the physical host are connected to the VMnet1 Network (where the physical host connected to the VMnet1 network refers to the physical host on the VMNET1 virtual network card set up and the virtual machine in the same network segment IP address)
2, virtual machine and physical host on the same network segment
3, if the firewall is turned on, may affect the network communication, so generally to shut down the firewall, or allow other host access.
Here's the main thing. VMnet2 (that is, NAT network settings) the settings of the network, VMnet2 uses NAT translation technology, which is one-way access, and the external network cannot access the hosts inside the NAT, but the hosts inside the NAT can access the computers on the external network.
The experiment here is that one-way access , you can also implement an extranet access to the intranet, which will use the port mapping. Let's not say port mapping here.
VMnet2 communication between hosts in NAT mode.
environment: One Windows Server 2003 virtual machine, one Windows XP virtual machine, and one physical host with virtual machine (real physical machine)
Note: Before the experiment, prepare the experimental environment first.
before powering on the virtual machine, the network is now set up on the Vmwere workstations (choose what mode to use, and in which network segment). Both virtual machines have the same settings
1. Click ' edit ',' virtual network editor '
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/A2/wKioL1VPAZbS4-qZAABcWBJPz-E493.jpg "title=" virtual network editing "alt=" Wkiol1vpazbs4-qzaabcwbjpz-e493.jpg "/>
2, open the Virtual network editor, set the corresponding parameters, here the NAT subnet address, set to '192.168.20.0' network segment, subnet mask ' 255.255.255.0 ' network segment, click ' ok '.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6C/A2/wKioL1VPAeTD5gpmAAL2lR11nvQ584.jpg "title=" Virtual Network Editor "alt=" Wkiol1vpaetd5gpmaal2lr11nvq584.jpg "/>
Note: After setting up here, the virtual network card on the physical host will automatically get an address. On the physical host, locate Vmnet2 in the ' Control Panel \ Network and internet\ network Connections '. Such as
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/A7/wKiom1VPAS-h_VtUAAOiDhSR11s667.jpg "title=" 5.png " Width= "height=" 332 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:332px; "alt=" Wkiom1vpas-h_ Vtuaaoidhsr11s667.jpg "/>
3. Click ' Virtual Machine ',' settings '
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/A2/wKioL1VPAzXRpPh3AADavK63Aoo214.jpg "title=" Virtual machine settings " alt= "Wkiol1vpazxrpph3aadavk63aoo214.jpg"/>
4. Open the ' Virtual machine settings ' tab
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/A2/wKioL1VPA1fiIO1nAALkCgbPVxk193.jpg "title=" 7.png " alt= "wkiol1vpa1fiio1naalkcgbpvxk193.jpg"/>1.3 Virtual machine settings
5.after Setup, run the virtual machine (two units)
6, first set up on the XP virtual machine
1) Open Network Neighborhood, set to get IP address automatically
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6C/A2/wKioL1VPA8SzSOlmAAMDtOQeC8U938.jpg "title=" XP on the network Settings "width=" 760 "height=" 338 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:760px;height:338px; "alt=" Wkiol1vpa8szsolmaamdtoqec8u938.jpg "/>
Network settings on a 1.4XP virtual machine
2) in ' start ' menu,' run ', enter ' cmd '
3) View IP address, enter ipconfig
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6C/A2/wKioL1VPBCTwxOneAADW8hpv62I331.jpg "title=" Ipconfig "alt=" wkiol1vpbctwxoneaadw8hpv62i331.jpg "/>
1.5XP virtual machine on ipconfig
4 At this point, look at the physical machine ( Win7 ) of IP Address
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6C/A7/wKiom1VPAwbi0axwAAEakHVNMco933.jpg "title=" Ipconfig "alt=" wkiom1vpawbi0axwaaeakhvnmco933.jpg "/> on the physical host
1.6win7 ipconfig on virtual machines
5) on thebasis of 4 (i.e. on the physical host) you can see The address of the virtual NIC VMnet2
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6C/A7/wKiom1VPA57QM0x0AAEA1JoQf1g507.jpg "title=" Vmnet2 's IP Address "alt=" wkiom1vpa57qm0x0aaea1joqf1g507.jpg "/>
1.7vmnet2 Network
6) Ping the physical Machine (win7) on WinXP,Ping 192.168.0.107
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/A2/wKioL1VPBXHRxM0jAAIS8MYWYL4120.jpg "title=" ping " alt= "Wkiol1vpbxhrxm0jaais8mywyl4120.jpg"/>
1.8ping 192.168.0.107 (XP virtual machine ping physical machine)
7) At the same time look at the physical machine (win7)ping virtual machine (XP) See If you can ping . I won't try it here .
7 , set on Windows Server 2003, like XP, choose to obtain an IP address automatically
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6C/A2/wKioL1VPBfzBLWLSAAMhfmqtKV4572.jpg "title=" winserver2003 Network Settings "width=" 760 "height=" 342 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:760px;height:342px; "alt=" Wkiol1vpbfzblwlsaamhfmqtkv4572.jpg "/>1.9 The settings of the win Server 2003 network
Click ' start ' menu, open ' run ', enter ' cmd '
1) View the IP address of the server2003
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6C/A7/wKiom1VPBOmSDOqxAADwk4djYCU234.jpg "title=" win On Server 2003, ping "alt=" wkiom1vpbomsdoqxaadwk4djycu234.jpg "/>
2)Ping the physical host (ping 192.168.0.107), like XP here is can ping through
3)ping xp virtual (ping 192.168.20.128), here is also can ping pass
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/A2/wKioL1VPBpnRTbflAAIS8MYWYL4253.jpg "title=" 15.png "alt=" Wkiol1vpbpnrtbflaais8mywyl4253.jpg "/>
8,the XP ping Server 2003(ping 192.168.20.129), also can ping pass
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/A7/wKiom1VPBU3wYGHaAAH1i7xshE0949.jpg "title=" 16.png "alt=" Wkiom1vpbu3wyghaaah1i7xshe0949.jpg "/>
9, to here,Vmnet2 set up the complete
Note: Here is the automatic acquisition of IP address, of course, you can also manually set the IP address , but manually set the IP address to and Vmnet2 set the IP Address on the same network segment.
This article is from the "Small City Studio" blog, please be sure to keep this source http://xcroom.blog.51cto.com/7941996/1649996
Vmerre Virtual Machine Vmnet2 (NAT) network and an experiment of two virtual machines on a single host