Home >Operation and Maintenance >CentOS >Unable to ping the external network under centos7
Problem:
After the installation of the CentOS system was completed, I found that the system did not automatically assign an IP, and the external network was not accessible.
Cause:
This is because the network card is not activated. Just edit the ifcfg_ens33 file to activate it.
Solution:
1. Enter the network card configuration directory
cd /etc/sysconfig/network-scripts/
2. Open the network card configuration file
vi ifcfg-ens33
3. Change ONBOOT=no to ONBOOT=yes, save and exit.
4. Restart the network service
service network restart
Recommended related tutorials: centos tutorial
The above is the detailed content of Unable to ping the external network under centos7. For more information, please follow other related articles on the PHP Chinese website!