解決方法:
ip addr

編輯網卡文件:
cd /etc/sysconfig/network-scripts/
ls

vi ifcfg-enp0s3
把ONBOOT=no,改為yes,並保存

重啟網絡:
service network restart
最后安裝:
yum install net-tools
ifconfig

源:https://blog.csdn.net/blackmai666/article/details/91347214
