VirtualBox four network connections [turn]

VirtualBox network 4 has connections:

  1. NAT
  2. Bridged Adapter
  3. Internal
  4. Host-only Adapter

There are three VMWare, VMWare fact, he and the network connection is the same concept, but more Internal way than VMWare.

Make yourself (or others) to understand the profound, method is to do the comparison and analogy, comparing the differences and similarities between, things get familiar analogy. First to a map, by this picture it is easy to see the difference between these four ways:

(Note: This diagram direct access to Finalbug's Blog , thanked)

Come in words to do a detailed explanation (in fact, boils down to the top of the picture is):

1、NAT

NAT: Network Address Translation, Network Address Translation

NAT mode is the easiest way to implement a virtual machine access to the Internet, you can interpret it this way:

Guest network access to all data is provided by the host, Guest does not exist in the real network, host and any machine in the network can view and access to the presence of Guest of.

Guest can access a host can have access to all the network, but for other machines on the host and the host network, Guest is not visible, even the host is also not visit Guest.

The relationship between the virtual machine and the host: only one way to access virtual machine can access through the network to the host, the host can not access the virtual machine to the network.

VM relationship with other hosts in the network: only one way to access virtual machine can access the network to other hosts, other hosts can not be accessed over a network to a virtual machine.

The relationship between virtual machines and virtual machines: each other can not access the virtual machine and each virtual machine completely independent from each other can not access each other over the network.

2, Bridged Adapter (Bridge mode)

Bridge mode, you can interpret it this way:

It is through the host network card, set up a bridge, directly connected to the network. Therefore, it makes virtual function is assigned to a network independent of IP, all network functions and completely real machine on the network of the same.

Virtual machine under the bridge mode, you think of it as a real computer on the line.

The relationship between the virtual machine and the host: can access each other, because the virtual machine has independent network segments in real IP, host and virtual machines in the same network segment, they can access each other with each other through their respective IP.

Virtual machine in relation to other hosts in the network: access to each other, the same as the virtual machine has independent network segments in real IP, virtual machine network with all other hosts in the same network segment, they can access each other through their respective IP.

The relationship between virtual machines and virtual machine: you can visit each other, for the same reason.

3, Internal (network model)

Intranet mode, as the name suggests is the internal network modes:

Virtual machines and external networks completely disconnected, the internal network to achieve only the virtual machine model between the virtual machine.

The relationship between the virtual machine and the host: can not visit each other, do not belong to each other on the same network can not access each other.

VM relationship with other hosts in the network: can not access each other, ditto.

The relationship between virtual machines and virtual machine: you can visit each other, provided that when setting up the network, set up two virtual machines on the same network name. FIG configured as described above, the name intnet.

4, Host-only Adapter (host mode)

Host mode, this is a more complex model, the network needs to have more solid fundamentals to Fun. It can be said in front of several models features implemented in this mode, it can be achieved by setting up virtual machines and network card.

We can be understood as Guest Host simulate out a card specifically for the use of virtual machines, virtual machines are all connected to the card, we can browse the Internet and many other features by setting this card, such as (NIC sharing, LAN bridges, etc.).

The relationship between the virtual machine and the host: Default can not visit each other, the two sides do not belong to the same IP segment, host-only network card segment 192.168.56.X default IP subnet mask of 255.255.255.0, and the back of the virtual machine is assigned to be It is this segment. By sharing network card, network card and other bridges, can visit each virtual machine on the host.

The relationship between virtual machines and network host: Default can not visit each other, for the same reason, by setting, you can achieve mutual visits.

The relationship between virtual machines and virtual machines: Default can visit each other, all in the same network segment.

The above text on these four connections explanation, basically copied from to (turn) VirtualBox Detailed network settings and applications (graphic + text) of this article, but did not find the original source of this article.

About these types of connections, understanding the three network connection modes of VMWare (bridged, NAT, host-only ) in the interpretation of the words to express just changed, though it looks repeat, but in order to understand, simply wrote these two Blog .

Update: I just installed VirtualBox time on all network connections have been tried, but between virtual machines and virtual machine just can not visit each other, both Ping Ping nowhere, I would like to do the VirtualBox network settings so complicated it, later, the problem is not thought firewall of Windows XP, the closed, everything is normal, Fuck!

References:

  1. VirtualBox 4 network connection mode Compare
  2. (Rpm) is provided with a network application VirtualBox Detailed (Scheme text +

 

VMware supports three types of networks: NAT, Bridged, Host-only.

NAT

In this manner, the virtual machine's NIC is connected to a host VMnet8. At this point the system VMWare NAT Service is acting as a service on the router, is responsible for issuing to the actual network after the virtual machine to send packets VMnet8 address translation, and then return to the actual network packets sent by the address translation VMnet8 to the virtual machine. VMWare DHCP Service is responsible for providing DHCP services to virtual machines.

 

 

Bridged

In this way, the virtual machine is like a real computer, like, directly connected to the actual network, without any contact with the host.

 

Host-only

这种方式下,虚拟机的网卡连接到宿主的 VMnet1 上,但系统并不为虚拟机提供任何路由服务,因此虚拟机只能和宿主机进行通信,而不能连接到实际网络上。

 

转自:https://www.cnblogs.com/york-hust/archive/2012/03/29/2422911.html

Guess you like

Origin www.cnblogs.com/ricklz/p/12216715.html