Home>Article>Operation and Maintenance> What should I do if I can’t see the IP address on centos?

What should I do if I can’t see the IP address on centos?

王林
王林 Original
2020-05-23 13:35:08 3654browse

What should I do if I can’t see the IP address on centos?

First edit the /etc/sysconfig/network-scripts/ifcfg-eth0 or ifcfg-ens33 file

vi /etc/sysconfig/network-scripts/ifcfg-eth0

or

vi /etc/sysconfig/network-scripts/ifcfg-ens33

and change the file, Change ONBOOT="no" to ONBOOT="yes"

What should I do if I can’t see the IP address on centos?

Then press ESC, enter: wq to save and exit, restart the network card

service network restart

Finally enter again You can view the ip with the ifconfig command

What should I do if I can’t see the IP address on centos?

Recommended tutorial:centos tutorial

The above is the detailed content of What should I do if I can’t see the IP address on centos?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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