1、打开 vi /etc/sysconfig/network-scripts/ifcfg-eth0(每个机子都可能不一样,但格式会是“ifcfg-eth数字”),把ONBOOT=no,改为ONBOOT=yes 2、重启网络:service network restart如果还不好,就操作下面步骤。 1、打开 vi /etc/resolv.conf,增加 nameserver 8.8.8.8 2、重启网络: service network restart