[root@localhost~]#vim/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:0C:29:87:9D:1D
TYPE=Ethernet
UUID=3efbea06-751a-4add-bec7-13db4d19bc0d
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
有伴侣一定是会急着往启动网卡办事了,CentOS5下不会报错,可是在CentOS6下收集办事重启后,ip设置产生了毛病!本来CentOS6下的网卡的主设置文档中,默许下有NM_CONTROLLED=yes这么一行,这意味着网卡eth0得有NetworkManager托管,这行中的yes|no的开关把持项的修正是立即失效的,你能够改成no保留后,当即能够办理上述成绩!上面我们来修正一下!
[root@localhost~]#vim/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:0C:29:87:9D:1D
TYPE=Ethernet
UUID=3efbea06-751a-4add-bec7-13db4d19bc0d
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=dhcp
[root@web~]#servicenetworkrestart
Shuttingdowninterfaceeth0:[OK]
Shuttingdownloopbackinterface:[OK]
Bringinguploopbackinterface:[OK]
Bringingupinterfaceeth0:
DeterminingIPinformationforeth0...done.
[OK]
[root@web~]#