VMware 9.0 安装CentOS 6.5 设置网络

VMware中安装完CentOS 6.5后,默认网卡ech0并没有开启,需要手动进行配置后才可进行上网。
Step1:
cd /etc/sysconfig/network-scripts/

   
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

   
   
Step3:重启网络
/etc/init.d/network restart

   
Step4:查看IP
ifconfig

   
Step5:Ping测试
ping baidu.com

   

猜你喜欢

转载自blob-lihe.iteye.com/blog/2159276