Detailed VMware Tutorial (below) Fu Qian --zdnet Reader
2/8/2004
URL:
Http://www.zdnet.com.cn/developer/design/story/0,1000001288,39273825,00.htm
Third, configure the network of virtual machines
It is not enough to have virtual machines, we need to communicate with virtual machines and real hosts and other virtual machines. Communication is divided into two parts, one is in the local area, and the other is connected to the public. This part is the focus, and the use of three different modes will be announced.
(1) Bridge mode:
Topology:
If your true host is in an Ethernet, this method is the easiest way to access your virtual machine to the network. The virtual machine is like a new computer, with the real host has a computer with the same physical status, bridge mode can enjoy all available services; including file services, print services, etc., and in this mode you will get the easiest How to get resources from the real host.
(2) Host ONLY mode:
Topology:
Host-Only mode is used to establish an isolated virtual machine environment. In this mode, the virtual machine is connected to the real host through the virtual private network, only the Host-Only mode and can be used in a virtual switch. Access to each other, the outside world is unable to access. Host Only mode can only be assigned by VMNet 1 using private IP, IP, GATEWAY, and DNS.
(3) NAT mode:
Topology:
The NAT (Network Address Translation) mode is actually understood that it is convenient to connect the virtual machine to the public network, and the cost is not available in bridge mode. Any virtual machine that uses the NAT structure is provided by VMNET 8, Gateway, DNS.
The specific operation is explained below.
Bridge mode:
I have mentioned in front, bridge mode is the easiest, and the relationship between virtual machines and real hosts after using bridge mode, it seems that two computers connected to a hub, wanting them to communicate, you need to configure IP addresses for both parties. And subnet mask, can be seen from the figure, if you don't configure the virtual machine, the virtual machine has no way to get the IP address of DHCP, so only 169.254 can be used. Some friends have tried to change the IP of VMNet1 and VMNet8 after installing VM in real host, which is wrong, as a driver for connecting the underlying hardware, does not need to be modified.
twenty one
Suppose the IP address on the real host NIC is configured to 192.168, the virtual machine's IP should also be equipped with the 192.168 network segment so that the virtual machine can communicate with the real host. If you want to join the Internet in bridge mode, the method is also very simple, you can install a dial-up directly on the virtual machine, as shown
twenty two
After the dialing is successful, you can go to the Internet, don't think that the virtual machine is fake dialing is also fake, this time you are already spending online! Of course, if you want to get online through ICS, NAT or agent, the practice is not different from the normal computer.
Host ONLY mode:
Host Only mode and bridge mode are not large, and Host Only mode will be provided by VMNET 1 DHCP Server to provide IP, Gateway, DNS.
twenty three
If you try to use a manual assignment fixed IP, you will find that even if you put an IP address and a real host, you can't contact the real host, this is the restriction of VMNet 1 on you, so use VMNet 1 to you The IP provided is a unique choice.
twenty four
If you want to access the Internet in Host Only mode, you can only use ICS and proxy, because only two ways can be internet access online.
NAT mode:
First of all, you should clearly know that NAT and Windows NT in VMware, NAT is not there, there is no impact between them. The main benefit of using NAT mode under VMware is that it is very convenient to hide the topology of the virtual machine and on the Internet. NAT mode provides IP, Gateway, and DNS by DHCP Server, VMNET 8.
25
As in Host Only mode, if you try to use manual assignment fixed IP, you cannot communicate with the real host due to the restriction of VMNET 8. However, in the NAT mode is very simple, you don't need any configuration, you only need to connect the virtual machine after connecting to the Internet, you can access the Internet.
26
VMware's NAT features still don't stop these, it can also do port mapping and TCP, UDP blocking!
Don't you think it is still a shortcoming? Yes, there is an important feature that has not yet been said, and the reason why it is because this is the most complicated, that is ...
27
Virtual network settings
This part of the function I think that the general user has been used, because its role is to use VM's highly scalable network model to build a very complex LAN, I believe this is the essence of the new VMware.
Twist
This is an example of a complex topology of VMware. It customizes VMNet 2 and VMNet 3 to define DHCP and NAT that define each VMNET, in short, it is very complicated, and this is only very large in the virtual cluster. It is used.
Ok, the introduction to VMware is here. If everyone is in English, then in its help, you will find the content of this article, in fact, as a virtual machine software, it brings us It is not only able to virtualize a single system, but it is possible to virtualize a large and complex network. This article just touches the fur. Of course, if friends pay attention to VMware deeper features, I am also very willing to discuss this.