[Posts] VirtualBox network mode

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: HTTPS: //xiaoyu.blog.csdn.net/article/details/53197447
----------------
Disclaimer: This article is CSDN blogger original article "dingdingfish" of follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //xiaoyu.blog.csdn.net/article/details/53197447

Network Address Translation (NAT)
default mode, the virtual machine only as a client, which is the only access to the outside, but does not allow access inwards.
Virtual machine by DHCP address acquisition, all of the virtual machine addresses are 10.0.2.15.
Guest OS routed through the gateway 10.0.2.2 to Host OS (for example: 192.168.1.107), then outside access. Other virtual machine and the host can not see its existence.
In the VPN connection can not connect Host OS, can resolve Internet address, but can not connect.
When not enabled VPN, you can connect Host OS, you can connect to the Internet

Bridged Networking
bridged network mode, the virtual network card bridged to the physical NIC, Guest OS as a server role, status equivalent to the Host OS.
The default setting for the DHCP to automatically obtain an IP address from my external wireless router, such as 192.168.1.109.
The disadvantage is that the address may be exhausted, and require the network administrator.
In VPN connection, you can access the Internet, but can not access internal network. Host OS and Guest OS different from each other.
When not enabled VPN, you can connect to the Internet, you can access the Host OS and between each other. When accessed from the Host OS Guest OS, pay attention to close Host OS firewall.

In this mode, Guest OS can access the Host on two mutually. ! ! !

Internal Networking
no DHCP service, the address must be configured manually. Network limited to the host, can not access the Internet.

Host-only Networking
is similar to Internal Networking, difference is that the Host OS can provide DHCP service, and can communicate with the Guest OS.
----------------
Disclaimer: This article is CSDN blogger "dingdingfish 'original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement. .
Original link: https: //xiaoyu.blog.csdn.net/article/details/53197447

Guess you like

Origin www.cnblogs.com/jinanxiaolaohu/p/11917915.html