修改/etc/sysconfig/network-scripts/ifcfg-eth0 ,把ONBOOT="no"改为ONBOOT="yes"
ifconfig eth0 up
dhclient
修改/etc/sysconfig/network-scripts/ifcfg-eth0 ,把ONBOOT="no"改为ONBOOT="yes"
ifconfig eth0 up
dhclient
转载于:https://www.cnblogs.com/phper-martin/p/3440191.html