VM Network Settings Go

Source: Internet
Author: User

Since the system changed to Win7, my VMware6 under the virtual machine Internet has been not normal, Nat mode, often can ping the address, but is not able to surf the internet, and later changed to Birdged (bridging) mode, you can normally access, so also did not go into the drill. Recently, in order to meet the requirements of the above, so the time to the original network to make some small transformation, the education network of 10 address and the internal 192 address physical isolation, the problem follows: My VMware is not normal! Nat mode symptoms are still, bridged mode can no longer automatically obtain IP and gateway, DNS and other information. Had to pay attention to this problem again, through a toss, finally solved the problem, is now sent up, memo.

Look at the differences in VMware's 3 network models from the Web, (see http://blog.csdn.net/cuman/archive/2009/05/12/4171909.aspx), So try to use the 3rd mode (host-only) to solve the network problem, in this mode, used to communicate with the physical network card is VMnet1, because in Win7, the number of VMware virtual network card naming and has changed, so you must find VMnet1 from the network properties, Then in the real host, the network card responsible for the Internet is set to share (),

Solve the Win7 under the VMware virtual machine can not access the Internet (the following information for the online collection, the obvious comparison miscellaneous, I hope to help)-cold cloud flight-cold clouds flying

Figure "Local Area Connection 3" is the VMNET1 virtual network card

At this time, the host physical network card address will be automatically changed to "192.168.137.1", set up, the physical network card must be the IP to change back, or the real host will not be on the net!

Next set up the network address in the virtual machine, first in virtual machines settings, the network mode is changed to Hhost-only mode,

Solve the Win7 under the VMware virtual machine can not access the Internet (the following information for the online collection, the obvious comparison miscellaneous, I hope to help)-cold cloud flight-cold clouds flying

Then set the virtual network card address to 192.168.137.X (X as long as it does not conflict with the host line), the gateway is set to 192.168.137.1,dns according to the actual fill,

Solve the Win7 under the VMware virtual machine can not access the Internet (the following information for the online collection, the obvious comparison miscellaneous, I hope to help)-cold cloud flight-cold clouds flying

At this point, Win7 under the VMware can not access the problem is basically resolved, but because the host-only mode can only achieve communication with the host, so it can not access the LAN on the other computer, so there may be another 2 modes by setting Win7 Firewall and VMNET8 network card, can also be resolved, But I haven't tried it yet.

The fundamental difference between VMware three network modes
Referring to VMware people think of virtual machine technology, virtual machine technology in the recent years has been widely developed, some large network service providers have started to adopt virtual machine technology, not only saves the investment cost, but also saves energy consumption.

We know that there are several versions of VMware, and the common user is workstation, but regardless of which version we use, we can see that we choose the network mode during the installation process. The bridging mode is selected by default, but there are users who ask what other modes are used for? Sometimes you can't surf the internet after choosing another mode. Today, we will discuss with you the features and communication rules of VMware 3 network modes.






Network mode
Let's start by talking about several VMware virtual devices

VMNET0: Virtual Switch for virtual bridging network

VMNET1: Virtual Switch for Virtual Host-only network

VMNET8: Virtual Switch for virtual NAT network

VMware Network adepter vmnet1: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

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






Network connection
I. Bridging network (bridged Networking)

Bridging network refers to the local physical network card and the virtual network card through the VMNET0 Virtual switch for bridging, physical network cards and virtual network cards on the topological map on the same status (virtual network card is neither Adepter VMnet1 nor Adepter VMnet8).






Bridge network topology diagram
Then the physical network card and the virtual network card are equivalent to the same network segment, the virtual switch is the equivalent of a real-world switch. Therefore, the IP address of the two network card should also be set to the same network segment.






Physical network card IP address





Virtual network card IP address
We see that the IP address of the physical network card and the virtual network card are in the same network segment, the subnet mask, gateway, DNS and other parameters are the same. Two network cards are relatively independent in the topology.






Ping results
We ping192.168.15.96 on the 192.168.15.111 and the results show that two NICs can communicate with each other. If a DHCP server exists in the network, the virtual network card can also obtain an IP address from the DHCP server. So bridging network mode is the simplest and most straightforward mode in VMware virtual machines. It is the default option when you install a virtual machine.

Two. Nat mode

The VMware Network adepter VMnet8 Virtual network card is used in the NAT networks, and the VMware network adepter VMnet8 virtual network card on the host is connected directly to the VMNET8 virtual Switch to communicate with the virtual network card.






NAT Network mode
The VMware network adepter VMnet8 Virtual network card is limited to communicating with the VMNET8 segment, and it does not provide routing capabilities to the VMNET8 segment, so the virtual machine is virtual to a NAT server so that the virtual network card can connect to the Internet. In this case, we can use the port mapping feature to map the requests that access the host 80 port to the 80 port on the virtual machine.

The IP address of the VMware network adepter VMnet8 Virtual network card is specified by the system when installing VMware, we do not modify this value, otherwise the host and the virtual machine will not be able to communicate.






NAT Virtual network card IP address





Physical network card IP address
Virtual network segment and NAT mode virtual network card network segment is the same, both 192.168.111.X, including the NAT server IP address is also this network segment. A virtual DHCP server is also generated after VMware is installed, assigning an IP address to the NAT server.

The VMware Network adepter VMnet8 Virtual network card is called when the host and the virtual machine are communicating, because they are in a network segment, so communication is not a problem.

In fact, the role of the VMware network adepter VMnet8 Virtual network card is to provide an interface for the communication between the host and the virtual machine, even if the host's physical network card is turned off, the virtual machine can still connect to the Internet, but the host and the virtual machine cannot exchange visits.

Three. Host-only mode

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 mode
As with NAT, the IP address of the VMware network adepter VMNET1 Virtual network card is also specified by the VMware system, and the IP address of the virtual DHCP server and virtual network card generated is located in the same segment, but the IP address of the physical network card is not the same network segment.






Host-only Virtual network card IP address





Physical network card IP address
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.

Review

In the VMware 3 network mode, the NAT mode is the simplest, basically do not need to manually configure the IP address and other related parameters. As for the bridge mode requires an additional IP address, if it is in the intranet environment is still very easy, if ADSL broadband is more troublesome, ISP is generally not generous to provide a public network IP.
After upgrading to WIN7, I found that VMware could not access the Internet through NAT, many users have encountered such problems, and has not found a good solution. In fact, as long as through the host-only way to the Internet.

Workaround, use the Host-only method to surf the internet.
1, the virtual master of the Internet mode is set to Host-only.
2, host network card settings sharing, my wireless network card, shared connection "Select VMnet1 connection".
3, set the IP address of the VMNET1, do not set up the same network segment with the host network card.
4, in the virtual machine will be the address of the network card with VMnet1 the same network segment, the gateway is set to VMnet1 address, DNS is also set to VMnet1 address

Virtual Machine Win 7 resource sharing and Internet access

Http://www.vmbest.com/school/1-vmware-school/172-virtual-machine-win-seven-resources-and-the-shared
Solve the problem of VMware virtual machines not being able to surf the internet under Win7
  

Win7 system installed VMware Virtual machine (support VMWare7.0 above version), the default is through the NAT network, but this way will cause the virtual machine can not surf the Internet or once the Thunderbolt download the phenomenon of disconnection, there are two solutions, one is the use of bridging (bridged) of the network, and the other is through the Host-o nly mode Networking (recommended), the Host-only networking method is set up as follows:



1, host physical network card settings sharing (2) Home network connection Select VMnet1 Connection:





2, set the IP address of the VMNET1, do not and the physical network card is located in the same network segment:





3, in the virtual machine will be the address of the network card with VMnet1 the same network segment, the gateway is set to VMnet1 address, DNS settings according to local conditions:





These are the solutions that VMware virtual machines cannot access online under Win7.


Virtual machine NAT After installing VMware on Win7 solution
2009-08-26 14:40

For previous versions of 6.5.2, version 6.5.3 has resolved this issue. Let's go to the new version.

To see the Internet, a mess of what methods have, with the host way and so on, too troublesome, each virtual machine has to be set alone, not reliable.

The following steps are not sure if there is any extra,
After looking to be able to surf the internet, no matter what step is useless.

btw:win7 firewall I shut down, if need to open this classmate to let himself study under what rules ...

1. Share the network card that has access to the Internet to VMware Virtual Ethernet Adapter for VMnet8 (VMnet8 IP address is assigned to 192.168.137.1 at this time)
2. VMware virtual Ethernet Adapter for VMnet8 and VMware virtual Ethernet Adapter for VMnet1 (also hook up, useful when bridging). E protocol agreement on the hook
3. Take a look at the current IP address of the VMware Virtual Ethernet Adapter for VMNET8 network card (I am here 192.168.137.1), the Edit-->virtual network in VMware Editor set VMnet8 IP address matches the current IP network segment (192.168.137.0), by the way gateway What also refers to this VMnet8 current IP address (192.168.137.1). DHCP What's also check, OK is in the 137 network segment
4. Regain the IP for the virtual machine. (The IP address of the 192.168.137.0 network segment should be obtained, and gateway DNS will point to 192.168.137.1)

OK to surf the internet.

Well... The third step is relatively brief, a little groping down the bar ...

VMware Tutorials
2010-05-25 14:10

Windows 7 is the next generation of Microsoft's operating system after Vista, which is somewhat less functional and compatible, with most users playing Windows 7 through virtual machines, but the sharing of resources through virtual machines and the Windows 7 Internet problem are a bit stumped. Today we invite you to follow the author to play the Virtual machine Win 7 resource sharing.

Virtual machine: Virtual Machine Blackstone--Virtual machine download
One, network access stumped users:
After installing Windows 7 with a virtual machine, by default we find that we cannot access the external network at all, and the page opens with an error "the page cannot be displayed." (1)
Virtual machines

In general, after the virtual machine is installed, the virtual system communicates with the external network in several modes, including bridge bridging, Nat address translation, and so on. The local host should have a local connection to the virtual machine after installation, but the author does not see the corresponding option at the local host's network connection.
After the author investigation found that the original VMware Network Service did not start, to start the service we need to enter the VMware installation directory to run the Install.cmd program, and then select the service project to install, where the fifth item "virtual network card 1-local network" and the third item " DHCP and NAT shared Internet "is the key to resolving Windows 7 networking. While installing, we will see the newly discovered network in the local system firewall, this is the virtual network which is formed by the virtual machine and the actual system, we choose "Allow sharing". (2)
Vmware

Once installed, the network connection to the local system is re-entered, and we can see that the virtual network interface VMware Virtual Ethernet exists. (3)
Xuniji

Next we go into VMware to make changes to the network configuration, double-click on the lower right corner of the two small computer icons to open the network adapter, where we choose the NAT address conversion mode networking or bridged bridge connectivity is OK, after the Click OK button to determine. (4)
Vm

Setup is complete in the virtual machine's Windows 7 system can be a smooth network access to http://www.it168.com, through Ipconfig can query the virtual system to obtain the IP address, this address is a private network address, through the actual host and the outside world for data communication. Of course, this is the effect of NAT address translation networking, if the use of bridged bridge networking, we can see that the virtual system obtains the IP and the native IP will be in a network segment, the gateway address is the same. (5)
Virtual machines

Second, how to more flexible resource sharing:
How does a virtual machine use the Windows 7 operating system to share resources with the native computer? As far as the author's experience is concerned, there are two effective methods, and we introduce each one.
(1) Network access sharing method:
Another way to realize resource sharing is to access it through the network, just like our traditional means. When we establish the connection between the virtual system and the local system through the virtual network, the two systems are within the same network segment. We can see the two hosts we have searched through the network in the Control Panel. (6)
Vmware

(2) Shared directory method:
By default, because we can only select a single hard disk when we install the virtual machine, the system is installed in this partition, which is still a virtual partition, and it is just a VM file that exists in the actual system. We can only see the C drive when we open the Windows 7 Disk Management. (7)
Virtual machines

To realize the sharing of virtual machines and native machines we can go through the VMware menu "Vm->settings" and then click the Options tab, where there is a Shared Folders sharing directory option, via the right "ADD" Button We can add the directory to be shared, and remember to select always enable on the above for sharing. (8)
Vm-seting

If you want to set up access to a shared directory, we can also click the Properties Property button of the shared directory and select the shared directory path (browser button selection) and read and Write permissions (click Read-only). (9)
Virtual Machine host-only

After setting up, we open the Windows 7 system's local hard disk (my Computer) can see the existence of the shared directory, through this directory we can easily realize the resource sharing function with native.
Virtual Machine resource Sharing

Tips:
To implement the Autodiscover endpoint feature, we need to turn on the Autodiscover feature in the network interface.
When we share and set permissions on the shared resources on this machine, you can see the shared resources by entering the correct user name and password when you double-click the destination host you want to access in the virtual machine's network interface. The operation of the resource is very simple, copy and paste can realize the sharing of the virtual machine and the local system.

Three, Summary:
This article introduced the Virtual Machine Win 7 resource sharing method, through this paper can realize the sharing of network and data, so as to facilitate users to better use the virtual machine to play Windows 7 this new operating system. If you want to learn more virtual machines and virtual technology, you can click on the virtual machine Blackstone, this site to let more friends understand the virtual machine.

VM Network Settings Go

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.