Virtual machine VMware12.0 Install CentOS 6.5--virtual Machine network mode differentiate

Source: Internet
Author: User
Tags configuration settings

Before the steps all the way next, there is a set of memory size according to the machine configuration settings can be.

The place to be aware of,

Here are the steps to set up for a simplified version

Virtual Machine Network mode

1. Bridging mode

In bridging mode, a system in a VMware virtual machine is like a standalone host in a LAN that can access any machine in the same network segment, which can ping each other.

In bridging mode, you need to manually configure the virtual system with an IP address, subnet mask, and a 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 an independent host system in the LAN, it can manually configure its Ip,dns server, gateway and other information, to realize the gateway through the LAN or through the switch to access the extranet.

So when we want to use a virtual machine on the LAN, to provide services to other local area network PCs, such as FTP, provide SSH, provide HTTP services, then choose the bridge mode.

2. NAT

NAT is the network address translation abbreviation, that is, the translation of networks addresses, which is done by the NAT service, which in VMware Rimmer considers the VMNET8 Virtual switch, which translates the IP address of the virtual system Cheng the IP address of the host, thus borrowing the host to access other hosts. With NAT mode, the virtual system can also access the public network through the network on which the host machine resides.

In NAT mode, the virtual machine is allowed to access the public network by means of a NAT (network address translation) function, which is located on the network hosting the machine.

In NAT mode, the network of the virtual machine's NIC and the physical NIC, not the same network, the virtual machine's NIC, is a virtual network provided in VMware.

Comparison of Nat and bridging:

(1) Nat mode and bridge mode virtual machine can be Sisu network.

(2) because the NAT network in a virtual network provided by VMware, so the other host network is unable to access the virtual machine, and the host can access the virtual machine, the virtual machine can access all the hosts of the local area network, because the real LAN relative to the NAT virtual network, is the network of NAT virtual network, People who don't understand can check the knowledge of NAT.

(3) In bridge mode, multiple virtual machines can access each other, and in NAT mode, multiple virtual machines can also access each other.

If you build a virtual machine, just give yourself to use, do not need to give other people to the LAN, then you can choose NAT, after all, the NAT mode of the virtual system's TCP/IP configuration information is provided by the VMNET8 (NAT) virtual network DHCP server, as long as the network configuration of the virtual machine is DHCP, Then you do not need to do any other configuration, only the host machine can access the Internet, you can let the virtual machine network.

For example, if you want to build multiple virtual machine clusters for testing purposes, the host may be a notebook and IP is not fixed. This scenario, we need to adopt the NAT mode, but we have to consider a problem, the virtual machine is required to exchange visits, the default DHCP, the virtual machine IP each reboot, IP is not fixed, so we need to manually set the IP address of the virtual machine.

But we don't know anything about the virtual network where the virtual machine card is located, such as the routing address and subnet mask of the virtual machine network, so we need to check the information of the NAT virtual network first.

3, Host-only

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 VMware Network adepter VMnet1 virtual network card.

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 need to use RRAS instead 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, then the host and the virtual machine will not be able to communicate.

So

Nat mode is the simplest, basically do not need to manually configure the IP address and other related parameters. As for bridging mode requires an additional public IP address, ISP is generally not so generous, so in the LAN is very suitable.

Virtual machine VMware12.0 Install CentOS 6.5--virtual Machine network mode differentiate

Related Article

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.