Three network modes for VMware virtual machines

Source: Internet
Author: User
Tags routeros

recently in learning to build RouterOS soft route, is still in the process of construction, I thought that according to the tutorial will go smoothly, did not expect or encountered a lot of problems 650) this.width=650; "Src=" http://img.baidu.com/hi/ Jx2/j_0065.gif "alt=" J_0065.gif "/>, currently stuck in the virtual machine network problem, so here to comb the virtual machine's three network connection mode, in order to later introspection.

This plan to use idle time to set up in the work, in setting up the RouterOS network connection mode must be to bridge mode, considering the company has domain control, it is impossible to achieve this goal, so forget, decided to use off-hours to build. Gossip not much to say, the following began to self-carding (borrowed some online information, here is some of their own understanding and summary). First, there are three types of network connectivity options in the VM: Bridge mode (bridged) VMnet0, host only (host-only) VMnet1, network address translation (NAT) VMnet8. Two virtual network cards are installed after the physical machine installs the VM (Vmware Network adapter VMNET1 and VMware Network adapter VMNET8) are described in the next step.

Bridging mode (bridged). In this mode, the subnet mask of the virtual machine, the gateway, the DNS server is the same as the physical host, IP and physical host in the same network segment, the equivalent of the physical host as a switch, the virtual machine network card and the physical network card are connected to the above. At this point the virtual machine is connected to the virtual switch, through the virtual switch to connect to the virtual bridge, through the virtual bridge to connect to the host network card, in short, the virtual network card through the virtual Bridge and host network card connection, to connect to the external network, and the host and virtual machine communication is through the virtual bridge.

Host mode only (Host-only). In this mode, the virtual machine cannot communicate with the external, only the virtual machine and the host, the virtual machine and the virtual machine, if you need to communicate with the external network, configure the host network card with the host virtual network card VMware network adapter VMNET1 can be implemented. In this mode, the virtual machine NIC is connected to the host's virtual network card, VMware network adapter VMnet1, and the virtual sub-machine is connected through a virtual switch. Therefore, the virtual machine can not communicate directly with the external network, to achieve, you have to connect the host virtual network card VMware network adapter VMNET1 and host network card This paragraph, the realization of the technology is to share the host network card to the virtual network card.

Network address translation (NAT) mode. In this mode, the virtual machine can communicate, the virtual machine and the host can communicate, the virtual machine and the external can communicate (provided that your physical host has a network ha). The virtual machine is connected to the host by connecting the virtual network card to the host virtual network card via the virtual Switch, VMware network adapter VMNET8 for communication. The way the virtual machine is connected to the external network is that the virtual NIC is connected to the virtual NAT server through the virtual switch, and the virtual NAT server is connected to the host network card for external communication. Virtual sub-machines communicate with each other through a virtual switch.

The similarities and differences of three kinds of connection modes. It is important to note that only the NAT and Host-only modes have a virtual DHCP server and are only connected to the virtual switch (the bridged IP is assigned by the physical router). Only NAT and Host-only mode communicates with the host via the host virtual network card (bridging the virtual Bridge).

The above is my three network model of VMware virtual machine combing, but in the actual operation will have a variety of connection problems, basically also according to the above three modes of communication to analyze, such as I last night in the VM in the new bridge Win7 is not connected to the network.

Three network modes for 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.