[root@localhost ~]#service network restart
Shutting down interface eth5: [ OK ]
Shutting down interface loopback: [ OK ]
Bringing up interface bond0:Device bond0 does not seem to be present delaying initialization.
[ FAILED ]
Bringing up interface eth5: [ OK ]
[root@localhost ~]#
原因是没有加载bonding模块所致:
[root@localhost ~]#lsmod | grep bonding
[root@localhost ~]#
[root@localhost ~]#cd /etc/sysconfig/modules/
[root@localhost ~]#cat bonding.modules ------ bonding模块文件,需创建
modprobe bonding mode=0 miimon=100
[root@localhost ~]#
[root@localhost ~]#modprobe bonding
查看模块是否加载成功:
[root@localhost ~]#lsmod | grep bonding
bonding 138201 0
ipv6 435361 85 bonding
[root@localhost ~]#
最后,重启下network服务:
[root@localhost ~]#service network restart
Shutting down interface bond0: [ OK ]
Shutting down interface eth5: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface bond0: [ OK ]
Bringing up interface eth5: [ OK ]
[root@localhost ~]#