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

王林
Release: 2020-05-23 13:35:08
Original
3739 people have browsed it

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

or

vi /etc/sysconfig/network-scripts/ifcfg-ens33
Copy after login

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

What should I do if I cant see the IP address on centos?

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

service network restart
Copy after login

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

What should I do if I cant 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!

Related labels:
source:php.cn
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