Network types in VMware workstation

Source: Internet
Author: User

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/71/9C/wKiom1XUWUiTZcPbAAGQq-ZyiEY143.jpg "title=" 1.jpg " alt= "Wkiom1xuwuitzcpbaagqq-zyiey143.jpg"/>

First, brigde-- Bridge Connection:

Default UsageVMnet0 1, principle:BridgeBridge"is a host, this machine has two network cards, respectively in two LAN, while in"Bridge", run the program, let the LANAall packets in an intact flowB, and vice versa. In this way, the LANAand theBIt is seamlessly connected at the link layer, and when bridging,Vmwarethe NIC and the physical network card should be in the sameIpNetwork segment of course to ensure that two local area network is not a conflictIp. VmwareBridge is the same reason, but, originally as a piece of hardware network card, now byVmwarethe software is virtual! When bridging is used,VmwareA virtual network card and a real physical network card will be bridged, so that all the packets sent to the physical network card to theVmwarevirtual machines, while theVmwarethe sent packets are also sent through the bridge from the end of the physical network card. Therefore, if the physical network card can be connected to the Internet, then the bridge of the soft network card is no problem, this is the principle of bridging the Internet. 2, networking method: This kind of networking is the simplest, in the LAN, your host is how to network, you in the virtual machine how to connect the network. Think of the virtual machine as another computer in the LAN! Tip: The host network card is in an accessibleInternetNetwork, the virtual machine canBridgeAccessInternet.

Second, nat-- Network Address translation:

Default UsageVMnet8 1, principle:Natis aNetwork Address Translatefor short. NatTechnology Applications inInternetgateways and routers, such as192.168.0.123This address is to be accessedInternet, its packet is going through a gateway or router, and the gateway or router has an accessInternetof theIpaddress, such gateways and routers are required to send and receive data packetsIpthe protocol layer data is changed (that is,Nat) to allow the host of the private segment to access it smoothlyInternet. This technology solves theIpthe problem of scarcity of addresses. The same privateIpcan gatewayNatInternet access. Vmwareof theNatInternet is also the same reason, it between the host and virtual machine with software forged a network card, this network card and virtual machineIpin an address segment. At the same time, the network interface between this NIC and the hostNat. Each packet sent by the virtual machine goes through the virtual network card, and thenNat, which is then emitted by the host's interface. Virtual network card and virtual machine in an address segment, virtual machine and host different address segment, the host is equivalent to the virtual machine gateway, so the virtual functionPingto the host'sIp, but the hostPingless than the virtual machine'sIp. 2, networking approach: Methods1, DynamicIpaddress. Host is staticIpor DynamicIp, it doesn't matter, set the virtual machine to useDhcpways to surf the internetWindowsunder Select“automatically getIP ",Linuxunder OpenDhcpservice can be. (This method is the simplest, not too many settings, butVmwareconducted in“Edit→Virtual network Settings”and WillNatand theDhcpit's all open. GeneralNatenabled by default,Dhcpdefault off) method2, StaticIpaddress. If you do not want to useDhcp, or you can set it manually:IpSettings andVmnet8Same network Segment,Gateway is set toVmnet8the gateway (in“Virtual network Settings”in theNettab to findGateway) is usuallyXxx.xxx.xxx.2. Subnet mask settings andVMnet8Same (set goodIpaddress, the subnet mask is automatically generated)Dnsthe settings are the same as the host. For example: HostIpis a10.70.54.31,set up a virtual machineIpto be10.70.54.22. Netmask,gateway,dnsis the same as the host to implement the virtual machine<--->Host Virtual Machine<---->Internet communication. Tip: UseNattechnology, the host can access the Internet, the virtual machine can accessInternet. Note: According to my experience, if the LAN is not usedBridgemethod while using theNatmode, then the virtual function may appearPingNetwork, but not the phenomenon of Internet (web andQqcan not be on). Specific reasons, I am not clear.

Third,host-only-- private network shared host:

Default UsageVMnet1 1, principle: Provide the host and the virtual machine between the network visits. Just want to have data exchange between the virtual machine and the host instead of having the virtual machine accessInternet, this setting should be used. Host-onlyunder the conditions ofVmwarein the realWindowssystem, a soft network card is established. This NIC can be seen in the network connection, which is usuallyVMNET1, the function of this network card is to makeWindowsSee the virtual machine'sIp. 2, Networking methods: Methods1, DynamicIpaddress. Open as aboveDhcp, the virtual machine is automatically acquired directlyIpAddress andDns. Can be connected with the host. Of course, there are some local area network sharing operation, here no longer repeat. Method2, StaticIpaddress. You can also manually set the virtual machineIpSettings andVMnet1Same network Segment,Gateway is set toVMnet1of theIpthe rest of the settingsVMnet1sameDnsthe settings are the same as the host. For example:VMnet8 ip:172.16.249.1 gateway:172.16.249.2then the virtual machineip:172.16.249.100gateway:172.16.249.2this way, the virtual machine<--->hosts can communicate but, virtual machines<--->Internet Unable to communicate prompt:Host-onlytechnology is only used for host and virtual machine visits, to accessInternetirrelevant.



My humble humble opinion, if there is any mistake, please correct me.

Thank you!


Network types in VMware workstation

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.