一般情况下,最小安装都是有dhcp包的。
1、检查dhcp包安装情况:#rpm -qa | grep dhcp
2、查看eth0的配置情况:#cat /etc/sysconfig/network-scripts/ifcfg-eth0
3、NM_CONTROLLED = no
ONBOOT = yes
BOOTPROTO = dhcp
最后保留DEVICE HWADDR,NM_CONTROLLED , ONBOOT,BOOTPROTO这五项,其余全注释掉#
4、最后重启网络:#/etc/init.d/network restart
5、可以测试一下:ping