A problem occurred when configuring a cluster. Originally, all three virtual machines could ping the external network, but suddenly only one could ping the external network. The three virtual machines could ping each other. I looked at many methods and compared the relevant network configurations in Answer link 1: https://geekflare.com/no-internet-connection-from-vmware-with-centos-7/ Answer link 2: https://stackoverflow.com/questions/22010904/cannot-connect-centos-vm-to-internet-nat-connection The second answer link is from stackoverflow. Simply put, use the command That is, re-obtain the IP address. The first answer first describes the problem: the IP address cannot be obtained using the ifconfig command (I personally installed the mini version, which does not have this command installed. If you are in the same situation as me, you can install it. Of course, if you can't connect to the external network like me, then hehehe) The author gives possible reasons for the problem: the network adapter is not enabled, or it cannot obtain a DHCP IP address. The answer 1 also gives the method of automatic startup: Open Create a file #!/bin/bash # Solution for "No Internet Connection from VMware" # ### BEGIN INIT INFO # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 ### END INIT INFO dhclient -v After saving, change the permissions Set up auto-start Then reboot Summarize The above is what I introduced to you to solve the problem of not being able to ping the external network after installing Centos7 in VMware. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: JS interview question: Can forEach jump out of the loop?
>>: Javascript combined with Vue to achieve automatic path finding for any maze image
1. Why set maxPostSize? The tomcat container has ...
// It took me a whole afternoon to install this, ...
1. Problem introduction Assume a scenario where a...
Generate SSL Key and CSR file using OpenSSL To co...
This article uses examples to illustrate the usag...
The drag function is mainly used to allow users t...
Preface The most common task after we install a L...
Think big and small, then redirect. Sometimes Lin...
First: First, confirm whether the server hardware ...
If you are using the latest Ubuntu Server version...
Preface Some of the earlier codes on Github may r...
When building a website, HTML language may seem un...
Preface This article mainly introduces the releva...
Defining an array in Bash There are two ways to c...
Table of contents queueMicrotask async/await Mess...