Mac VMWare Fusion configures Mac and Win7 virtual machines to access each other

Source: Internet
Author: User
Tags vmware fusion

Demand

    1. Mac and Win7 virtual machines access each other and can ping the

    2. Win7 virtual machines can surf the internet


Method:

The virtual machine requires two NICs (the default is a piece), a piece of internet via NAT, a piece of communication with the Mac host via Hostonly.

1. Add a NIC

2, configuring NAT

And then

3, Configuration Hostnoly

First, configure the second NIC connection hostonly in the virtual machine settings,

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/networking  VERSION=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.20.0    # Hostonly The network address, configure the virtual machine win7 IP address in this section. answer vnet_1_virtual_adapter yesanswer vnet_1_virtual_adapter_addr 10.10.20.100      #宿主机的IP地址 (the default is 10.10.20.1), our requirement is that the IP address of the virtual machine Win7 can ping the address with the 

My configuration file is as follows:

version=1,0answer vnet_1_dhcp noanswer vnet_1_dhcp_cfg_hash  cf4750c74a3a405eaf29d066784b85bcc9048fdfanswer vnet_1_hostonly_netmask 255.255.255.0answer  vnet_1_hostonly_subnet 10.10.20.0answer vnet_1_virtual_adapter yesanswer vnet_1_ virtual_adapter_addr 10.10.20.100answer vnet_8_dhcp yesanswer vnet_8_dhcp_cfg_hash  826b24d0dffa3f55597502cc65fe2e6a413fed11answer vnet_8_hostonly_netmask 255.255.255.0answer vnet _8_hostonly_subnet 192.168.248.0answer vnet_8_nat yesanswer vnet_8_virtual_adapter  Yes 

save exit, exit VMware Fusion, reopen vmware Fusion, using Ifconfig view, will find that Mac has more Vmnet1 and vmnet8 above the configuration file definition, as follows

4, configure the virtual machine's IP address.

configuration of the first block (automatically available)

second block of configuration

win7 on ipconfig check

test

win7 ping hostonly IP on Mac is pass

But in turn ping Win7 's hostonly ip:10.10.20.2 on Mac is not a pass!!!!!!!!!!!!

!!!!! 1 shutting down the firewall!!!!!!!

Then ping the Win7 IP from the Mac to get through, pit daddy.

Mac VMWare Fusion configures Mac and Win7 virtual machines to access each other

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.