Step1:
cd /etc/sysconfig/network-scripts/
[img]http://dl2.iteye.com/upload/attachment/0103/5234/30bea692-4577-36ee-a324-74d183c37256.png[/img]
Step2:修改文件ifcfg-eth0內容(vi ifcfg-eth0)爲:
DEVICE=eth0
HWADDR=00:0C:29:70:C8:AD
TYPE=Ethernet
UUID=79bd4984-2a54-404a-9807-6bb88cc09f87
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
[img]http://dl2.iteye.com/upload/attachment/0103/5240/06f4ad06-d436-3b2e-853e-a9b071dd1f4c.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0103/5238/8ed42d7c-a100-39a0-9fea-ecfb069ae8cf.png[/img]
Step3:重啓網絡
/etc/init.d/network restart
[img]http://dl2.iteye.com/upload/attachment/0103/5246/7ec42e85-4814-3da7-8241-c5c089c8b4a1.png[/img]
Step4:查看IP
ifconfig
[img]http://dl2.iteye.com/upload/attachment/0103/5244/d799e23b-19d3-3a5e-bbe4-e87dca279ba0.png[/img]
Step5:Ping測試
ping baidu.com
[img]http://dl2.iteye.com/upload/attachment/0103/5248/4f5f06b2-e442-3c3c-9826-31b876073c3a.png[/img]