How to solve the problem that the IP address is not displayed when using the ip addr command on Linux CentOS 7 system

1. Problem: Entering the ip addr command does not display the IP address

2. Try to solve: 

Method 1. Maybe ens33 has not started. After logging in as root, enter the command you have given to restart the virtual machine.

echo ONBOOT=yes >> /etc/sysconfig/network-scripts/ifcfg-ens33

Method 2. The NetworkManager service that comes with centos may be affected. Close it.

systemctl stop NetworkManager

systemctl disable NetworkManager

Method 3. Uninstall the virtual machine and reinstall it. Perform the following operations during the installation process.

Like, collect and follow~Happy learning without getting lost~Thank you

Guess you like

Origin blog.csdn.net/qq_58424960/article/details/131803410