#修改配置文件 vi /etc/sysconfig/network-scripts/ifcfg-eth0 #找到选项ONBOOT ONBOOT=YES|NO #将ONBOOT设置为YES ONBOOT=YES #重启 reboot