Many of my friends are using vmware to test different systems, combined with his experience I talk about the understanding of the network settings, wrong, please correct me.
In this way the simplest and most direct would be a virtual network adapter from the bridge above the physical network adapter, and a network card linux bind two different addresses are quite similar, in fact, is the NIC set to promiscuous mode, so as to achieve a number of IP's ability to listen .
In this mode, the virtual machine within the LAN (for example, under linux the eth0) directly to the physical network card is located, it is conceivable for the virtual machine and host machine is on an equal relationship in the network are equal, No one in the question of who is behind.
The use of this method is very simple premise that you can be more than one address. The network would like to conduct various experiments for a friend not because of the virtual machine you can not control the network, it has a direct out.
nat by:
This way there is a host within a virtual network adapter vmnet8 (by default), if you do nat have the experience of the server here on vmnet8 network equivalent to connect to the network card, and the virtual machine itself is equivalent to running machines, including the Internet, a virtual machine within the LAN (eth0) is independent of the vmnet8.
You will find in this way, vmware own dhcp by default to load into vmnet8 interface so that you can use a virtual machine on the dhcp service. More importantly, vmware own a nat services provided from outside the network vmnet8 to address translation, so this is a real nat server running, but is used for the virtual machine.
Obviously, if you have only one outside the network address, in this way is appropriate.
hostonly:
This should be the most flexible way, is interested in it can be a variety of network experiments. And nat the only difference is that in this way, there is no address translation services, recognition mode, the virtual machine can only access the host, this is the meaning of the name of hostonly.
By default, there will be a load to the dhcp service on vmnet1. Vmnet1 this to connect to the virtual machine can still be set to dhcp, easy system configuration.
Is it this way there is no way to connect to outside networks, of course, is not, in fact, more flexible this way, you can use in their own way, so as to achieve the most desirable configuration, such as:
a. Dhcp service to use their own: First of all to quit the vmware own dhcp service dhcp service so that more consistent.
b. To use their own nat, firewall easy to join. windows host can do a lot of nat way, the simple, such as the internet sharing windows xp, windows server, such as the complex's nat service.
c. to use their own firewall. Because you can completely control vmnet1, you can join (or test) vmnet1 and outside the firewall in the network between the network card.
As can be seen from the above, hostonly of this model and the general nat server network with the whole situation in a similar line, so you can easily carry out the related experiments, such as setting fire strong.
I have specific network settings on the other two articles
(linux host + windows guest
http://bbs.chinaunix.net/forum/viewtopic.php?t=367907&highlight=yunqing
And
windows host + linux guest
http://bbs.chinaunix.net/forum/viewtopic.php?t=374483&highlight=yunqing
) Is also based on this configuration.
good
Wednesday, July 29, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment