Home >Operation and Maintenance >CentOS >How to check IP in centos (picture and text)

How to check IP in centos (picture and text)

藏色散人
藏色散人forward
2020-10-27 13:55:069855browse

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!

How to check IP in centos (picture and text)

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!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete