centos 装好之后一直无法获取IP

装了centos6.4之后没法获取IP地址,ifcfg-eth0默认就是DHCP


[root@leyunxing /]# vi /etc/sysconfig/network-scripts/ifcfg-eth0


DEVICE=eth0
HWADDR=10:78:D2:C0:42:BC
TYPE=Ethernet
UUID=007e0e80-6ef8-45b3-8312-d67a88a2e9fb
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp

==================================================================

重启网卡:
[root@localhost ~]# /etc/init.d/network stop
[root@localhost ~]# /etc/init.d/network start





你可能感兴趣的:(NetWork,start,IP地址)