|
系统:fc2
双网卡:eth0 eth1
1.加载bonding模块
# modprobe bonding
2.
在/etc/modules.conf里加上
alias bond0 bonding
options bond0 miimon=100 mode=0
3.建立:/etc/sysconfig/network-scripts/ifcfg-bond0
cat > /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
USERCTL=no
ONBOOT=yes
BOOTPROTO=none
4.
修改/etc/sysconfig/network-scripts/ifcfg-eth0如下:
DEVICE=eth0
USERCTL=no
ONBOOT=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
5.修改/etc/sysconfig/network-scripts/ifcfg-eth1如下:
DEVICE=eth1
USERCTL=no
ONBOOT=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
6.
建立2个adsl拨号
一个是ppp0,一个是ppp1
两个的网络设备全部选择:bond0
然后启动adsl
adsl-start /etc/sysconfig/network-scripts/ifcfg-eth0
adsl-start /etc/sysconfig/network-scripts/ifcfg-eth1
7.
检查:ifconfig
出现bond0,eth0,eth1,ppp0,ppp1,lo
这时候2个网卡灯都闪!
8.
当你随便拔掉一根网线后,如果拔掉eth0的上的网线A,网络没断!然后把网线A插回去,接着拔掉eth1上的网线B,网络仍然没断!
这里说明bonding起到了作用!
9.
问题:我下载怎么没有快起来呢?
哪位达人有经验指导下,谢谢! |
|