安装的时候忘了设置网络
cd /etc/sysconfig/network-scripts/ vi ifcfg-eth0
按如下设置
DEVICE=eth0 HWADDR=00:0C:29:2E:37:F0 TYPE=Ethernet UUID=69cd9740-184f-49b7-857f-e397e57f265b ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=dhcp
ping一下,如果发包收包正常即可
ping www.baidu.com
cd /etc/sysconfig/network-scripts/ vi ifcfg-eth0
DEVICE=eth0 HWADDR=00:0C:29:2E:37:F0 TYPE=Ethernet UUID=69cd9740-184f-49b7-857f-e397e57f265b ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=dhcp
ping www.baidu.com