- 论坛徽章:
- 0
|
说明,根据论坛中的原贴,有修改.原方法不可行了.
环境: CentOS5.1
1. #cd /etc/sysconfig/network-scripts
# cp ifcfg-eth0 ifcfg-bond0
编辑eth0与eth1的启动属性
#vi ifcfg-eth0(eth1也一样)
ONBOOT=no
BOOTPROTO=none
----------------------------------------------------------------
2 #vi ifcfg-bond0
将第一行改成 DEVICE=bond0,特别注意去掉mac地址,否则启动时候会提示出错.
----------------------------------------------------------------
3 # vi /etc/modprobe.conf
加入两行
alias bond0 bonding
options bonding miimon=100 mode=1
----------------------------------------------------------------
4 # vi /etc/rc.d/rc.local
加入两行
ifenslave bond0 eth0 eth1
route add -net 192.168.0.0 netmask 255.255.255.0 bond0 添加路由的
----------------------------------------------------------------
5 reboot
重启会看见:
................
Bringing up interface bond0 OK
................
---------------------------------------------------------------- |
评分
-
查看全部评分
|