How to choose Three network of VMware virtual machines

Source: Internet
Author: User
Tags virtual environment





650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/4D/5E/wKiom1RQV7eTQP0FAAJaz2JYXBY819.jpg "title=" 2014-10-28_205855.png "alt=" Wkiom1rqv7etqp0faajaz2jyxby819.jpg "/>


VMware's three Virtual Switch devices:

VMNET0: Virtual Switch for virtual bridging network

VMNET1: Virtual Switch for Virtual Host-only network

VMNET8: Virtual Switch for virtual NAT network


VMware's two virtual network adapters:

VMware Network Adapter VMNET8-host virtual NIC for communication with host-only virtual network

VMware Network Adapter VMNET1-host virtual NIC for communication with NAT virtual network


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/4D/5F/wKioL1RQWLnzbpdrAAGPf7MUAv8175.jpg "title=" 2014-10-29_103820.png "alt=" Wkiol1rqwlnzbpdraagpf7muav8175.jpg "/>



======================================= bridging network =======================================


A . Bridging Networks ( bridged Networking )


Bridge network refers to the physical network card and the virtual network card through the Virtual switch (VMnet0) Bridge, physical network card and virtual network card on the topological map on the same status.

# #注意 # #:

The virtual network card is neither the VMware network Adapter VMnet1 nor the VMware network Adapter VMnet8.


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/4D/60/wKioL1RQZOaR1U5EAABt_IUGS70122.jpg "title=" Bridged networking.jpg "alt=" Wkiol1rqzoar1u5eaabt_iugs70122.jpg "/>

The physical network card and the virtual network card are in the same network segment, and the Virtual Switch is equivalent to a switch in a real-world net, so the IP address of the two network cards should also be set to the same network segment.


--Physical network card IP address: 192.168.10.100

--Virtual network card IP address: 192.168.10.200 (set the IP address to 192.168.10.200 on the installed virtual machine)


We see that the IP address of the physical network card and the virtual network card are in the same network segment, the subnet mask, gateway, DNS and other parameters are the same. Two network cards are relatively independent in the topology.

We ping192.168.10.200 on the 192.168.10.100 and the results show that two NICs can communicate with each other. If a DHCP server exists in the network, the virtual network card can also obtain an IP address from the DHCP server. so bridging network mode is the simplest and most straightforward mode in VMware virtual machines, which is the default option when you install a virtual machine.


=======================================NAT mode ============================== =========


Two . NAT Mode


The VMware network adepter VMnet8 Virtual network card is used in the NAT networks, and the VMware network adepter VMnet8 virtual network card on the host is connected directly to communicates with the virtual network card on the VMnet8 virtual switch.


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/4D/60/wKiom1RQY0vSlQYnAACjyPswfbg995.jpg "title=" Nat.jpg "alt=" Wkiom1rqy0vslqynaacjypswfbg995.jpg "/>


the VMware network adepter VMnet8 Virtual network card is limited to communicating with the VMNET8 network segment. it does not provide routing functionality to the VMNET8 network segment, so the virtual machine is virtual to a NAT server so that the virtual network card can connect to the Internet. In this case, we can use the port mapping feature to map the requests that access the host 80 port to the 80 port on the virtual machine.

The IP address of the VMware network adepter VMnet8 Virtual network card is specified by the system when installing VMware, we do not modify this value , otherwise the host and the virtual machine will not be able to communicate.


Virtual network card IP address: 10.128.16.155--NAT


Physical network card IP address: 10.128.10.200--physical


Virtual network segment and NAT mode virtual network Card network segment is the same, both 192.168.16.X, including the NAT server IP address is also this network segment. a virtual DHCP server is also generated after VMware is installed, assigning an IP address to the NAT server.

The VMware network adepter VMnet8 Virtual network card is called when the host and the virtual machine are communicating, because they are in a network segment, so communication is not a problem.

In fact, the role of the VMware network adepter VMnet8 Virtual network card is to provide an interface for the communication between the host and the virtual machine, even if the host's physical network card is turned off, the virtual machine can still connect to the Internet, but the host and the virtual machine cannot exchange visits.

=======================================host-only mode =======================================

Three . Host-only Mode


In host-only mode, a virtual network is a fully-enclosed network, and the only thing that can be accessed is the host . In fact, Host-only Network and NAT network is very similar, the difference is that the Host-only network does not have NAT service, so the virtual network can not connect to the Internet. The communication between the host and the virtual machine is achieved through the VMware network adepter VMnet1 virtual network card .


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/4D/60/wKiom1RQZCOijFkUAACTlXGCoTo448.jpg "title=" Host-only.jpg "alt=" Wkiom1rqzcoijfkuaactlxgcoto448.jpg "/>


As with NAT, the IP address of theVMware network adepter VMnet1 Virtual network card is also specified by the VMware system and the IP address of the virtual DHCP server and virtual network card that is generated at the same time is on the same network segment, but the IP address of the physical network card is not the same segment.


Virtual network card IP address: 10.128.18.100--host-only


Physical network card IP address: 10.128.10.200--physical


Host-only's aim is to create an internal network that is isolated from the outside world to improve the security of the intranet. This feature may not make much sense to ordinary users, but large service chambers often take advantage of this feature. If you want to provide routing for the VMnet1 network segment, you will need to use RRASinstead of XP or 2000 ICS, because ICS will change the IP address of the intranet to 192.168.0.1, but the virtual machine will not assign this address to the VMNET1 virtual network card. , there is no communication between the host and the virtual machine.


======================================= Summary =======================================


1. Bridging network (bridged Networking):

IP addresses can be obtained through local area network DHCP, virtual machines and host computers in the same network segment, host and virtual machines can communicate with each other.



2, Nat mode: Through the virtual DHCP to obtain the IP address, the virtual machine can access the Internet, the host and the virtual machine cannot exchange visits, the external network can not machine or directly access the virtual machine. VMware Network adepter VMnet8 virtual network card



3. Host-only Mode:

In some special network debugging environments, it is required to isolate the real environment from the virtual environment, then you can use the host-only mode. In host-only mode, all virtual systems can communicate with each other, but virtual systems and real networks are isolated.

Note: In host-only mode, the virtual system and the host machine system can communicate with each other, which is equivalent to the two machines connected by twisted pair wires.

In host-only mode, the TCP/IP configuration information (such as IP address, gateway address, DNS server, etc.) of the virtual system is dynamically allocated by the DHCP server of the VMNET1 (host-only) virtual network.

If you want to use VMware to create a virtual system that is isolated from other machines in the network, you can choose Host-only mode for some special network debugging work. VMware Network adepter VMnet1 virtual network card


Waiting to be perfected ...

This article is from the "Xbc's homepage" blog, so be sure to keep this source http://alipay.blog.51cto.com/7119970/1569138

How to choose Three network of VMware virtual machines

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.