Virtual machines communicate with physical machines in host-only mode

Source: Internet
Author: User

The physical machine IP is as follows:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7F/86/wKioL1chuwyRQr2tAAFwUdkEpQA468.jpg "title=" Physical machine Ip.jpg "alt=" Wkiol1chuwyrqr2taafwudkepqa468.jpg "/>

You can see that the VMNET1 network card is ready to use, and the IP is 192.168.248.1

Then configure the virtual machine to surf the Internet mode:

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7F/86/wKioL1chu0ODNDjYAAF1oTRAhaQ143.jpg "title=" Host mode. jpg "alt=" wkiol1chu0odndjyaaf1otrahaq143.jpg "/>

Change the virtual machine Internet mode to host mode, and then find the virtual Machine network card editing, see

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7F/87/wKioL1chu3Gyt7NhAAI6eIT1ku8726.jpg "title=" Host mode IP segment. jpg "alt=" wkiol1chu3gyt7nhaai6eit1ku8726.jpg "/>

Don't change anything, just check to meet host mode No, next Configure virtual machine IP

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7F/87/wKioL1chu7iwOtVIAADbaBZqN7I446.jpg "title=" Virtual machine ip.jpg "alt=" Wkiol1chu7iwotviaadbabzqn7i446.jpg "/>

Point the virtual machine's gateway to the Vmnet1 IP of the physical machine and change DHCP to static

So I restarted the network, because I have failed here, Found after restarting the network has been ping not through the physical machine above the vmnet1 of the ip192.168.248.1, so everywhere to check the data, found that there is no wrong IP, so after users reminded, restarted the virtual machine, found that after restarting the virtual machine can ping through, can achieve communication

Virtual machines communicate with physical machines in host-only mode

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.