一:实验错误:

1、Bringing up interface eth0:  Error: Unknown connection: 0e4faef8-9838-4a5d-8d08-47ed5e4415c7.

2、Bringing up interface eth0:  /etc/sysconfig/network-scripts/ifcfg-eth0: line 7: IPADDR172.17.250.106: command not found

Error: Unknown connection: 0e4faef8-9838-4a5d-8d08-47ed5e4415c7.

二:实验:

设置静态IP后,重启网络服务时出错

[root@Centos6 ~]# service network restart

三:实验原因:

在/etc/sysconfig/network-scripts/ifcfg-eth0桥接模式的网卡中,太大意,配置的错误如下

1、BOOTPROTO=172.17.250.106           #第一次出错
2、BOOTPROTO=none
IPADDR172.17.250.106                  #在第一次出错的基础上知道BOOTPROTO写错了,改正时只添加IPADDR,而忘记加上等号了;

只记得 1、要将dhcp去掉改成静态的手工指定, 2、手动写上ip地址,结果忘记了格式,在手动指定处写上了ip, 3、后来查错时将手动指定处写上了none,并在ip直接回车到下一行,在其前面加上IPADDR后直接“:wq”保存退出了,导致启动服务时失败

四:实验改正:

BOOTPROTO=none               #使用手动配置ip
IPADDR=172.17.250.106        #ip地址(用等号相连)
[root@Centos6 ~]# service network restart                #重启网络服务就OK了
Shutting down interface eth0:  Device state: 3 (disconnected)
                                                           [  OK  ]
Shutting down interface eth1:  Device state: 3 (disconnected)
                                                           [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/12
                                                           [  OK  ]
Bringing up interface eth1:  Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/13
                                                           [  OK  ]
[root@Centos6 ~]#