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