CentOS can't connect to external network

Using the bridge mode of the Desktop version of VMWare can basically ping the internal and external networks.

But if you use the mini version, then you will find that the usual configuration is no problem, but you ca n't access the external network? , Baidu spent several hours, and finally successfully found a breakthrough point. By default, there is a problem with the gateway configuration of this version. One configuration solves:

cd /etc/sysconfig/network-scripts
touch route-eth0
add the gateway content you want to configure via 192.168.7.1

I have been looking for this bug for a long time, and most of the personal tests on the Internet are invalid. Welcome to forward it to prevent others from falling into the pit. . .

If the cloned mini is magically unable to connect (it can ping the internal network), you need to do 2 things at this moment:
1. Modify the host name, remember to reboot after the change
2. Repair the network card, modify the IP and try to ping internal gateway

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326684124&siteId=291194637
Recommended