Demand:
Virtual machine two block network card, a piece through the NAT Internet, a piece through hostonly and Mac host communication.
Configuration method:
1. Configure NAT
NAT configuration is simple, directly in the virtual machine's network card settings can be configured,
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/70/17/wKioL1WxsbzSuO-aAAdzZ9PROFE514.jpg "title=" Netconfig-1.png "alt=" Wkiol1wxsbzsuo-aaadzz9profe514.jpg "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/70/17/wKioL1Wxsf6S4aa0AAM-GgHxeZE524.jpg "title=" Netconfig2.png "alt=" Wkiol1wxsf6s4aa0aam-gghxeze524.jpg "/>
2. Configure Hostnonly Network
First, configure the second NIC connection hostonly in the virtual machine settings,
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/70/1B/wKiom1WxsK2SOKc9AAOLE3_UGv8674.jpg "title=" Netconfig3.png "alt=" Wkiom1wxsk2sokc9aaole3_ugv8674.jpg "/>
Then, modify the configuration file, turn off DHCP for the Hostonly network, and use a fixed IP for easy connection to the virtual machine:
sudo vi/library/preferences/vmware\ fusion/networkingversion=1,0answer vnet_1_dhcp no #关闭dhcpanswer VNET_1_DHCP_CFG_ HASH 9503e18413cde50a84f0d124c42535c62df8193banswer vnet_1_hostonly_netmask 255.255.255.0 #hostonly网络子网掩码answer Vnet_1_hostonly_subnet 10.10.10.0 #hostonly网络地址answer vnet_1_virtual_adapter yesanswer vnet_1_virtual_adapter_addr 10.10.10.1 #宿主机的IP地址
Save exit, exit VMware Fusion, reopen, configure the virtual machine's IP address.
This article is from "Sharing is a pleasure" blog, please make sure to keep this source http://gladiator.blog.51cto.com/2313511/1677871
Configure network adapter for VMware Fusion virtual machine under Mac