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

How to check IP in centos (picture and text)

藏色散人
Release: 2020-10-27 13:55:06
forward
9859 people have browsed it

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
Copy after login

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
Copy after login

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!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template