centos7 view ip address to start the network card

centos7 view ip command

ip addr



There is no ip address, this is because the centos7 network card is turned off by default

Edit the file and change the default setting to On

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

 

 Then restart the network service

service network restart

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326173165&siteId=291194637