1. Enter the /etc/sysconfig/network-scripts/ directory
cd /etc/sysconfig/network-scripts/
2. Edit the ifcfg-ens33 configuration file
vim ifcfg-ens33
3. Change ONBOOT=no to ONBOOT=yes
##4. Finally, execute the following command to restart the network serviceservice network restart
The above is the detailed content of What should I do if the centos7 network cannot ping?. For more information, please follow other related articles on the PHP Chinese website!