《VMware中ubuntu虚拟机通过NAT方式上网.docx》由会员分享,可在线阅读,更多相关《VMware中ubuntu虚拟机通过NAT方式上网.docx(3页珍藏版)》请在三一办公上搜索。
1、VMware中ubuntu虚拟机通过NAT方式上网1、进入虚拟机的vm-settings点击networkAdapter中上网方式选为NAT。2、在虚拟机的菜单中点击Edit-virtual network editor,点击VMnet8NameTypeExternal ConnectionHost Connection| DHCPSubnet AddressVMnetOBridgedAuto-bridging-VMnetlHost-onlyConnecisdEnabled192.168.160.0VMnetZCustom192.168.196.0VMnet3Custom192.168.149
2、.0VMnet4Custom192.168.28.0VMnet5Custom192.168.44.0VMnet6Custom192.168.229.0VMnet?Custom192.168.124.0|VMnet8NATNATConnectedEnabled192.168.174.0VMnet9Custom-192.168.37.0VMnet InformationO Bridged (connect VMs directly to the external network)O Host-only (connect VMs internally in a private network)0 C
3、onnect a host virtual adapter to this networkHost virtual adapter name: VMware Network Adapter VMnetQ(1)修改subnet IP,将其设为与主机windows不在同一网段,但前两位必须相同。如 windows 的为 192.168.174.1,则 subnet IP 为 192.168.xx.xx。(2)点NAT Setting,修改Gateway IP,必须与subnet IP在同一网段,如设为192.168.174.2(3)点 DHCP Setting,修改 Start IP Addres
4、s 和 End IP Address 与 subnet IP 在 同一网段,如分别设为 192.168.174.128, 192.168.174.254。Nebvork:vmnetSSubnet IP:192.168.174.0Subnet mask:255.255.255.0Default lease time:DHCP Settingsuil auui us.6.启动ubuntu虚拟机,编辑Auto eth0;1 Toolw Devices NetworEdit HelpK TOOLSDevices Ping Netstat Traceroute Port Scan Lookup Fing
5、er WhoisNetwork device: 画 Ethernet Interface (etho) ; XConfigureIP InFormationProtocolIP AddressNetmask/PrefixBroadcastScopeIPv6Fe8O:2Oc:29ff:fe3e:cO2564LinkIPv4192.168.174.233255.255.255.0Interface InformationInterFace StatisticsHardware address: 00:0c:29:3e:c0:25Transmitted bytes:63.3 KiBMulticast
6、:EnabledTransmitted packets: 515MTU:1500Transmission errors:0Link speed:not availableReceived bytes:174.5 KiBState:ActiveReceived packets:2011Reception errors:0Collisions:0Irlla. Network ConnectionsWired I WirelessMobile BroadbandVPNDSLNameLast UsedAdd |Auto etho4 minutes agoEditDeleteCloseAddress 为 Start IP Address 和 End IP Address 与 subnet IP 之间的网段;Gateway 设为 VMware 中的 Gateway IP, DNS 设为 windows 主机的 DNS.点击“ Configure”,好了,通过以上设置,ubuntu虚拟机可以上网了。