1、进入终端
cd /etc/sysconfig/network-scripts
2、vi打开对应网卡配置文件,centos默认网卡为ens33,其它系统大多为enth0
vi ifcfg-ens33
3、将ONBOOT=no改为ONBOOT=yes
wq保存
重启系统,你将发现网卡已随开机启动
时间:2026-02-11 22:59:33
1、进入终端
cd /etc/sysconfig/network-scripts
2、vi打开对应网卡配置文件,centos默认网卡为ens33,其它系统大多为enth0
vi ifcfg-ens33
3、将ONBOOT=no改为ONBOOT=yes
wq保存
重启系统,你将发现网卡已随开机启动