VMware Virtual machine bridging and real-world host sharing internet access

Source: Internet
Author: User
Tags virtual environment

  • First, there are three ways to introduce VMware network settings:

    VMware offers three modes of operation, Host-only (host mode), NAT (network address translation mode), bridged (bridging mode).

    1.host-only (host mode) in some special network debugging environment, how to require the real environment and virtual environment isolation, then you can use Host-only mode. In host-only mode, all virtual systems can communicate with each other, but virtual systems and real networks are isolated, and VMware virtual machines do not have access to the Internet. Note: In host-only mode, the virtual system and the host machine system can communicate with each other, which is equivalent to the two machines connected by twisted pair wires. In host-only mode, the TCP/IP configuration information (such as IP address, gateway address, DNS server, etc.) of the virtual system is dynamically allocated by the DHCP server of the VMNET1 (host-only) virtual network. If you want to use VMware to create a virtual system that is isolated from other machines in the network, you can choose Host-only mode for some special network debugging work.

    2.NAT (network address translation mode)

    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 a virtual system with NAT mode will not be able to 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, you do not need to do any other configuration, only the host machine can access the Internet, the virtual machine can access the Internet.

    3.bridged (bridging mode) in this mode, the VMware virtual operating system is like a separate host in the LAN, which can access any machine in the network. 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 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. The relationship between a virtual system using bridging mode and a host machine is like two computers connected to the same hub. To make them communicate with each other, you need to configure the IP address and subnet mask for the virtual system, or you will not be able to communicate.

    If you are LAN network mode, virtual machine using bridge connection mode, as long as the virtual machine is set to the IP address of the same network segment, subnet, gateway, DNS and the same computer can achieve the Internet, but also access to local area network.

    If you are dial-up access, the virtual machine using this method of connection, it is necessary to establish a broadband connection in the virtual machine system, dial-up internet access, but and host can not simultaneously internet.

    Second, the virtual machine bridge settings are as follows:

    1. vmware-Edit-Virtual network editor

    Select the host network adapter, this is the choice is the local connection network card, as follows:

    2, set up the network connection mode: Bridge

    3. Red Hat IP Settings

    # vi/etc/sysconfig/network-scripts/ifcfg-eth0device= "eth0" hwaddr= "00:0c:29:d5:5d:ce" nm_controlled= "yes" ONBOOT= " Yes "Bootproto=dhcp

    Set IP for DHCP auto-GET, save the configuration file, with the command "Sevice network restart" Restart the network card, and then use "ifconfig" want to see the IP address has been obtained, as follows:

Extended reading:
    • 1. Use vcenter orchestrator to automate tasks for VMware vsphere
    • 2. Changes in resolution of RHEL5 under VMware
    • 3. Install Vmware-tools under VM virtual machine Redhat Linux 9.0
    • 4. Use NAT network in VMware to connect on virtual machine Linux
    • 5. Resolution Adjustment of VMware Virtual RedhatEL4
    • 6. VMWare RedHat Resolution settings
    • 7. Dual-Machine debug with VMware virtual machine via WinDbg
    • 8, CentOS6.2 installation Vmwaretools tools

Http://www.it165.net/os/html/201403/7384.html

VMware Virtual machine bridging and real-world host sharing internet access

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.