3 Way (RPM) for VMware Network settings

Source: Internet
Author: User

Three ways to set up a VMware network

1 host-only Connection mode
The virtual machine has a separate IP address that differs from the host, but it is in a different network segment than the host host, and a new IP address is added to the host, and the IP address is guaranteed to be in the same network segment as the virtual machine IP address. The end result is a new LAN composed of all the virtual machine and host host, but the LAN and the host host itself in the existing LAN is independent of each other, if no additional routing settings, the two LAN is not connected, so the new LAN can be considered as a separate from the current host host private network , whose members are the current host host and all associated virtual machines, which is also the origin of host-only naming.
From the network technology is equivalent to the host host to add a virtual network card, so that the host host becomes a dual-NIC host (Host network card + virtual network card). At the same time, a virtual switch is added to the host host backend, which makes the host host and all virtual institutions into another virtual LAN. Because of the dual network card, the host host can participate in two LAN (existing host LAN + new virtual local area network), but by default, two LAN is not connected.

2 Bridge (bridging) connection mode
Having a virtual machine with a separate IP address different from the host, but staying on the same network segment as the host, the end result is that all the VMs are joined to the local area network where the host host is located, which is no different from the effect of adding other host hosts to the LAN.
The network technology is equivalent to the host host in the front end of a virtual switch, and then the host host and all virtual machines to share the switch, or simply understand the host host to make a point enhancement, so that it has a switch (of course, virtual) function for the host host and other virtual machines in the network segment to use.

3 NAT Connection mode
Although from the surface phenomenon, the virtual machine does not have its own IP address, but the IP address of the shared host host, but the technology is essentially based on the host-only way (that is, the virtual machine or has its own independent IP address, but actually not put into use), as in the Host-only way, Host host becomes a dual-NIC host, while participating in the existing host local area network and the new virtual local area network, but because of the addition of a virtual NAT server, so that virtual LAN inside the VM in the external access, completely "run" host IP address, so from the external network, can only see the host host, The newly created virtual local area network is completely invisible.

Two summary

=========================
(1) Bridged Way
In this way, the IP of the virtual system can be set to the same network segment as the native system, and the virtual system is equivalent to one within the network. Independent machine, with the machine in a hub, other machines in the network can access the virtual system, virtual system can also access other machines within the network, of course, and the local system of two-way access is .
(2) Nat Mode
This approach also enables two-way access to the native system and the virtual system. However, other machines within the network cannot access the virtual system, and the virtual system can access other machines in the network through the NAT protocol of the native system.
Nat IP Address configuration method: The virtual system first use DHCP to automatically obtain an IP address, the Local System Ware services will assign a virtual system IP, and then if you want to start each time with a fixed IP, in the virtual system directly set the IP.
(3) Host-only mode
As the name implies, the network communication between the virtual machine and the host can only be carried out, the virtual system cannot be accessed by other machines in the network, and the virtual system cannot access other machines.

Three examples

1, bridge mode (everything is the same as host, only IP cannot be the same as host)

IP 192.168.39.222
netmask:255.255.252.0
gateway:192.168.39.254
Primary nameserve:192.168.39.252

2. Nat Mode
First, view the VMnet8 IP (e.g. 192.168.255.1) in host. Start VMware, click Edit Virtual Network Setting ..., and pop up the Virtual Network Editor dialog box ; View the Nat tab, log Nat's
Gateway IP address:192.168.255.2
In config, fill in: ip:192.168.255.5 (different address with 192.168.255.1 in the same network segment)
netmask:255.255.255.0 (same as 92.168.255.1 's hidden code)
Gateway IP: Complete the NAT Gateway in VMware 192.168.255.2
Primary nameserver: Fill in the same gateway as the host 192.168.39.252, so you can surf the Internet. If you fill in the 192.168.255.1, you cannot connect to the SISU network. It's not going to stop here, but I can't write the wrong address.

3. Hostonly mode
(1) Check the properties of your network card, select "Advanced" tab, set to allow sharing, and set the allowed network interface to VMNET1

(2) Plug in the properties of your VMnet1 and look at the settings of the TCP/IP protocol, and you find that it has been automatically set to: 192.168.0.1/255.255.255.0,

(3) The settings under Windows are completed and transferred to the virtual machine running Linux. Set the IP address of your eth0 to static (if not selected at the time of installation).
Press the Red Hat icon-> System Settings-> Network (or other methods you know)
ip:192.168.0.2 (or other address on this network segment)
netmask:255.255.255.0
Default gateway:192.168.0.1 (VMnet1 's address)
DNS: Enter your own DNS (DNS in host)
Save the settings. If you haven't set the host name yet:

Cd/etc/sysconfig
VI Network

Edit hostname

Cd/etc
VI hosts

Join:

192.168.0.2 Yourhostname

Restart Service

Su
/sbin/service Network Restart

(4) test
Gateway: Ping 192.168.0.1
Dns:ping DNSServer


Reference:

Host for Linux, Windows to implement VMware three ways to surf the Internet: http://linuxme.blog.51cto.com/1850814/389691

Linux Internet settings in virtual machines: http://linuxme.blog.51cto.com/1850814/346514

Four types of network connections from VMware: http://www.linuxany.com/archives/369.html

Http://www.cnblogs.com/itech/archive/2011/02/12/1952836.html

3 Way (RPM) for VMware Network settings

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.