Linux Learning Path-vmware virtual machine three ways of networking

Source: Internet
Author: User

Source: Three ways to connect VMware virtual machines (detailed commentary)

VMware three network mode networking

Let's start by talking about several VMware virtual devices

When a VMware virtual machine is installed, two more virtual network cards are created in the Network Connections dialog box.

VMNET0: Virtual Switch for virtual bridging network

VMNET1: Virtual Switch for Virtual Host-only network

VMNET8: Virtual Switch for virtual NAT network

VMware Network adeptervmnet1:host Virtual network card for communication with host-only virtual networks

VMware Network adepter vmnet8:host Virtual network card for communication with NAT virtual networks

Currently installed in the virtual machine is RedHatEnterpriseServer6.2, the host is Win7 flagship version

1. Bridge

In this mode, the VMware virtual operating system is like a separate host in the LAN, which can access any machine in the network. The virtual system needs to be manually configured with the IP address, subnet mask, and the host machine in the same network segment, so that the virtual system can communicate with the host machine. At the same time, because this virtual system is a separate host system in the LAN, it is possible to manually configure its TCP/IP configuration information to enable access to the Internet through a LAN gateway or router.

First set up network mode in VMware Select Bridge,vmware--->VM--->setting--->networkadapter

Select Bridge adapter in VMware: VMware--->edit--->virtualnetworkeditor

Then view the host's IP information

Then configure the IP address information for the Redhat in the virtual machine

System---> Preferences---> Network connections---> select Eth4, edit

Remote control redhat system with Xshell

Connect the host and campus intranet are no problem, because in the bedroom Internet need to login drcom client, so redhat to Sisu network also must install Linux version of drcom.

Such as:

2. NAT

Using NAT mode, the virtual system uses the NAT (network address translation) function to access the public network through the network where the host machine resides. In other words, the use of NAT mode enables access to the Internet in virtual systems. The TCP/IP configuration information for a virtual system in NAT mode is provided by the DHCP server of the VMNET8 (NAT) virtual network and cannot be modified manually, so the virtual system cannot communicate with other real hosts on the local area network. The biggest advantage of using NAT mode is that virtual system access to the Internet is very simple, no need to do any other configuration, only the main machine can access the Internet. In this case, the host can ping the virtual machine, and the virtual machine can ping the host.

First set the network mode for selecting the virtual machine to nat,vmware--->vmàsetting--->networkadapter

Then set the IP address of the VMNET8 and the gateway VMware--->edit--->virtualnetworkeditor

Select DHCP setting in the lower right to set

Set the IP for Redhat to Automatic (DHCP)

Then the virtual machine can connect to the Sisu network.

3, Hostonly

In host-only mode, the virtual network is a fully enclosed network, and the only access to it 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. Communication between the host and the virtual machine is achieved through the VMWARENETWORKADEPTERVMNET1 virtual network card. At this point, if you want the virtual machine on the extranet, you need host networking and network sharing.

First set the network mode for selecting the virtual machine to host-only,vmware--->VM--->setting--->networkadapter

Then let the host share the network: Local Area Connection---> Sharing

At this point the IP address of the VMNET1 is automatically selected 192.168.137.1

Then set the virtual machine Redhat IP address with VMNET1 in the same network segment

Now the virtual machine can communicate with the host and the outside network.

Such as:

Summarize

Shared connection mode and NAT mode, can realize virtual machine and host, virtual machine and Internet communication, the NAT mode is easy to set up, and can realize simultaneous access to multiple physical network cards. Bridge mode can realize virtual machine and host, virtual machine and Internet communication, if virtual machine as server, only this way is feasible. However, a separate IP is required for the virtual machine, and if the physical network card is disconnected, the virtual machine and the host cannot connect. The Host-only method only implements the virtual machine host communication, which is generally not used alone.

Linux Learning Path-vmware virtual machine three ways of networking

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.