1. 进入目录
cd /etc/sysconfig/network-scripts/
编辑网卡的配置文件,多网卡会对应多个配置文件, 均以ifcfg-开头
vi ifcfg-enp0s3
把onboot=no改为yes
保存 :wq
2. 重启网络服务
service network restart
1. 进入目录
cd /etc/sysconfig/network-scripts/
编辑网卡的配置文件,多网卡会对应多个配置文件, 均以ifcfg-开头
vi ifcfg-enp0s3
把onboot=no改为yes
保存 :wq
2. 重启网络服务
service network restart