>>> 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?