命令下启动网卡/开机启动

ifup eth0

开机启动

/etc/sysconfig/network-scripts/ifcfg-eth0,打开之后,将ONBOOT=no,改为ONBOOT=yes,(如果没有,手动添加ONBOOT=yes),保存退出,重启服务。

原文地址:https://www.cnblogs.com/aliblogs/p/5493775.html