Set up VMware to use host wireless network connection via Bridge (ZZ)

Source: Internet
Author: User

Environment: WIN7 flagship, desktop, u disk wireless Internet card.

Virtual software: VMware9.0, virtual system: CentOS6.4

Virtual machines need to be implemented to work as standalone machines and to surf the Internet.

Three ways to introduce VMware network settings first

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.

Description

(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.

Here the use of bridging (bridged) way, a lot of information on the web said the configuration is simple: Disable Vmnet1 and Vmnet8, as long as the physical network card and bridged (virtual machine) network card in the same network segment and two IP can be connected to the Internet, but there is a step in the middle of the key is that need in the virtual network , to bridge to your Internet network card, if it is wired, bridge to Wired, if it is wireless, bridge to wireless.

Settings are as follows:

1.vmware-> Editor, Virtual network editor

Select the host network adapter, here is the choice of a USB flash drive wireless Internet card.

2. Set the network connection mode as: Bridging

IP Settings in 3.CentOS:

The IP address, subnet mask, default gateway, DNS settings, and host are in the same network segment.

So to truly realize the virtual machine's Internet, I wish you good luck, configuration can be successful!

Set up VMware to use host wireless network connection via Bridge (ZZ)

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.