Home > Article > Operation and Maintenance > What should I do if CentOS cannot obtain IP?
What should I do if CentOS cannot obtain the ip?
Problem: Log in to the CentOS operating system, enter ip addr, or enter ifconfig to view the ip, and find There is no inet attribute in the ens33 directory.
Recommended learning: Linux video tutorial
##Solution:
1. Check the network card configuration of ens33: vi /etc/sysconfig/network-scripts/ifcfg-ens332. Change the ONBOOT item to yes, 3. Then restart the network service: sudo service network restart4. Enter the ip addr command to view the ip. For more CentOS related tutorials andjQuery video tutorials, please pay attention to the PHP Chinese website!
The above is the detailed content of What should I do if CentOS cannot obtain IP?. For more information, please follow other related articles on the PHP Chinese website!