Centos7重启不能自动联网解决方法

执行
ifconfig 查看网卡名称
使用vim编辑该文件
vim /etc/sysconfig/network-scripts/ifcfg-网卡名称

找到 ONBOOT=no
改为 ONBOOT=yes
ESC
:wq
保存退出

 

点赞

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.