Understanding three network connection modes under vmwarevm

Source: Internet
Author: User
Article Title: Understanding three network connection modes under vmwarevm. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Many of my friends use vmware to test different systems. I will discuss my understanding of network settings based on my experience. please correct me if I am not correct.

Bridge:

Screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. style. cursor = 'hand'; this. alt = 'click here to open new window \ nCTRL + Mouse wheel to zoom in/out';} "onclick =" if (! This. resized) {return true;} else {window. open ('HTTP: // Linux.chinaitlab.com/UploadFiles_7565/200709/20070913112003592.gif');} "src =" http://Linux.chinaitlab.com/UploadFiles_7565/200709/20070913112003592.gif "onload =" if (this. width> screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. alt = 'click here to open new window \ nCTRL + Mouse wheel to zoom in/out';} "border = 0>

This method is the easiest. You can directly bridge the virtual network card to a physical network card. It is similar to binding two different addresses to the next network card in linux. In fact, you can set the network card to the hybrid mode, this allows you to listen on multiple IP addresses.

In this mode, the network card (for example, eth0 in linux) inside the virtual machine is directly connected to the network where the physical network card is located. It can be imagined that the virtual machine and the host machine are in the same status, the network relationship is equal, and no one is behind it.

This method is easy to use, provided that you can get more than one address. It is not suitable for anyone who wants to conduct various network experiments, because you cannot control the network of the virtual machine and it goes out directly.

Nat mode:

Screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. style. cursor = 'hand'; this. alt = 'click here to open new window \ nCTRL + Mouse wheel to zoom in/out';} "onclick =" if (! This. resized) {return true;} else {window. open ('HTTP: // Linux.chinaitlab.com/UploadFiles_7565/200709/20070913112004638.gif');} "src =" http://Linux.chinaitlab.com/UploadFiles_7565/200709/20070913112004638.gif "onload =" if (this. width> screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. alt = 'click here to open new window \ nCTRL + Mouse wheel to zoom in/out';} "border = 0>

In this way, a virtual Nic vmnet8 (by default) appears inside the host. If you have experience as a nat server, the vmnet8 here is equivalent to a network adapter connected to the Intranet, the Virtual Machine itself is equivalent to a machine running on the Intranet, and the NIC (eth0) in the virtual machine is independent of vmnet8.

In this way, the dhcp service provided by vmware is loaded to the vmnet8 interface by default, so that the virtual machine can use the dhcp service. More importantly, vmware comes with the nat service, which provides address translation from vmnet8 to the Internet. Therefore, a real nat server is running, it is only for virtual machines.

Obviously, this method is suitable if you only have one Internet address.

[1] [2] Next page

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.