The following column centos Getting Started Tutorial will introduce to you the method of checking IP in centos (pictures and texts). I hope it will be helpful to friends in need!
1. Phenomenon:
When searching for IP through ip addr, it is found that there is no inet attribute in ens33, as shown below:
2. Solution
Open the network card configuration file /etc/sysconfig/network-scripts/ifcfg-ens33 and modify ONBOOT to yes.
vi /etc/sysconfig/network-scripts/ifcfg-ens33
From the configuration file, centos7 does not start the network card by default.
Change to yes and save.
Restart the network service:
sudo service network restart
Then check:
The above is the detailed content of How to check IP in centos (picture and text). For more information, please follow other related articles on the PHP Chinese website!