CentOS7下已经使用ip命令代替了ifconfig
可以使用ip addr 来查找ip信息。
激活网卡:cd /etc/sysconfig/network-scripts
vi ifcfg-ens33
ONBOOT=yes
reboot