Running Linux under a virtual machine communicates with the host computer via NAT mode and connects to the external network

Source: Internet
Author: User

First: Open the Virtual Network Editor under the Edit menu of the virtual machine and check VMnet8 NAT mode. Obtain the gateway IP through the NAT settings and obtain a configurable IP range via DHCP. Also, change the network adapter in the Settings option for the virtual machine's virtual Machine menu to NAT mode. Can!

Open Linux, edit the network manually add IP and gateways in the IPV4 settings, so you can ping the physical host and Linux in the virtual machine.

Note: When pinging a physical host under Linux, you can stop by crtl+c or crtl+d.

However, Linux is still unable to access the Internet, you need to set DNS domain name.

This thing can get through the ipconfig/all in the physical host!!

If Linux is not online yet, reconnect the network. Can!!

Running Linux under a virtual machine communicates with the host computer via NAT mode and connects to the external network

Related Article

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.