虚拟机bridged, NAT and host-only网络区别

In Linux, a network of each type is created when running vmware-config.pl. In Windows, they are automatically created. If you didn't create them the first time vmware-config.pl was run, you can re-run it.

 

Comparison of the network types
TypeBridged

NAT
(Network Address Translation)

Host-only
Description

The VM appears as if it was
a physical host on the network.

The VM hides behind the IP address of the VMware host. Other VMs in the same NAT network can access it directly.The VM can only access the VMware host and other VMs in the same host-only network
IP addressThe VM requires it's own IP address from the network it is supposed to  belong to.The VM can have any private IP configured on the VMware host. 
Accessibility from networkSame as a physical hostHides behind NAT, so port forwarding on the VMware host required if external access requiredNot accessible from external network unless routed via another VM with access to both external network and the same host-only network
Use cases An always-on server hosted on VMware, or a virtual router or firewall VMs intended for testing, or cases when the amount of IP addresses in the external network is limited.VMs intended for testing with no need to access the network, or VMs which will be protected by a firewall in another VM.
OtherKnown to have problems with some wireless chipsets especially with Linux, also with Windows Vista.NAT is really a host-only network with a default gateway (on the VMware host) that routes and NATs. 

转载于:https://www.cnblogs.com/zaric/p/3746956.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值