1.编辑network配置
vim /etc/sysconfig/network-scripts/ifcfg-eth0
1
2
3
4
5
6
7
|
DEVICE=eth0 HWADDR=00:0C:29:4E:B7:C9 TYPE=Ethernet UUID=a3d55d06-78fe-4542-a44a-d95cb5667cd6 ONBOOT=no NM_CONTROLLED= yes BOOTPROTO=dhcp |
修改ONBOOT值为yes
2.重启network服务
service network restart
centos6 mini :
网络配置文件:/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
UUID=6a3feebd-b843-428d-96a6-8971640c7b6c
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
HWADDR=00:0C:29:86:57:54
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"