How does "Linux" solve the problem of Linux virtual machines not connected to the extranet on VMware?

Source: Internet
Author: User
Tags ping network

>>> Failure Phenomena:
Virtual machine not connected to extranet?

>>> Failure Background:

Centos7.4 Release version:

Both the virtual machine and The VM software are NAT modes:

Note Here the default VMware DHCP service is turned on: (But the IP of its own virtual machine is manually configured)

Virtual machine IP, no gateway configured, no DNS configured as follows:

>>> resolution Process:

1. After configuring the gateway, the Ping network IP is available, but does not make the domain name resolution?

2. Then configure DNS:

The wonderful is: After the NIC configuration file is configured with DNS, it will not take effect under/etc/resolve.conf;

In this case, you need to configure DNS in the graphical interface to take effect: (pay special attention to this)

However, the server will generally turn off the graphical, then how to deal with this problem?

Restart the network;

The/etc/resolve.conf file takes effect:

>>> result output:

At this point, the virtual machine can be online:

How does "Linux" solve the problem of Linux virtual machines not connected to the extranet on VMware?

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.