双网卡bonding配置,实现负载均衡

仅供存放个人的配置文件,不要在本版发问。
头像
sinoyster
帖子: 958
注册时间: 2005-10-16 13:24
来自: 四川成都
联系:

#16

帖子 sinoyster » 2007-09-28 9:27

多网卡绑定的好处:
1。能实现负载均衡
2。减少故障率,避免单点故障
Thank you Ubuntu Team!!!!
I still can't belive this is free...
头像
sinoyster
帖子: 958
注册时间: 2005-10-16 13:24
来自: 四川成都
联系:

#17

帖子 sinoyster » 2007-09-28 9:31

Jennal 写了:重点是这段吧?
auto bond0
iface bond0 inet static
address 64.0.177.20
netmask 255.255.255.0
gateway 64.0.177.254
up ifenslave bond0 eth0 eth1
down ifenslave -d bond0 eth0 eth1
不过不是很明白,能不能解释一下每一句的意思?是通用的吗?
auto bond0
iface bond0 inet static
address 64.0.177.20
netmask 255.255.255.0
gateway 64.0.177.254
上面这几句和普通网卡一样我就不说了
up ifenslave bond0 eth0 eth1
up就是在网卡up的时候执行 ifenslave bond0 eth0 eth1 (ifenslave 自己man)
down ifenslave -d bond0 eth0 eth1
在网卡down的时候执行 ifenslave -d bond0 eth0 eth1
Thank you Ubuntu Team!!!!
I still can't belive this is free...
JustPS
帖子: 122
注册时间: 2007-09-17 12:09

#18

帖子 JustPS » 2007-09-28 10:28

缺省状态下Linux是不允许两块网卡同时上网的?同样网段的话。
Orang-color
帖子: 33
注册时间: 2007-10-25 18:35

为什么不能使用ifenslave

#19

帖子 Orang-color » 2007-11-20 18:59

代码: 全选

color@color:/etc/network$ sudo ifup eth1
/etc/network/interfaces:20: misplaced option
ifup: couldn't read interfaces file "/etc/network/interfaces"
这个是什么原因,由于interfaces文件不可用造成不能上网

20行和21行就是:

代码: 全选

up ifenslave bond0 eth0 eth1
down ifenslave -d bond0 eth0 eth1
头像
borisbsr
帖子: 7
注册时间: 2009-05-09 17:08

Re: 双网卡bonding配置,实现负载均衡

#20

帖子 borisbsr » 2010-12-17 20:00

来个总结性的吧。。。。。。。。实在是看不懂啊。。。。。。。。一会出来一个一会又来一个解释,或者介绍一个什么软件吧,稍微方便一些的。。。。
jietian123
帖子: 10
注册时间: 2012-03-20 13:19

Re: 双网卡bonding配置,实现负载均衡

#21

帖子 jietian123 » 2012-03-24 2:08

半夜看帖,先收下了,慢慢来学习,linux比Windows强大啊
disme.chen
帖子: 148
注册时间: 2008-05-13 17:50

Re: 双网卡bonding配置,实现负载均衡

#22

帖子 disme.chen » 2013-03-07 22:33

看来双无线网卡可以绑定一起上网了
你希望在你的葬礼上放什么歌曲
-------------------------------------------------------------------------
1.国歌,起来~~
2.其实不想走~~
3.解脱~~
4.常回家看看~~
暗夜婚
帖子: 5
注册时间: 2014-12-01 11:56
系统: ubuntu 14.04

Re: 双网卡bonding配置,实现负载均衡

#23

帖子 暗夜婚 » 2014-12-01 12:00

你好,楼主,请问我现在有4块网卡,想绑定到俩个bond 该怎么操作,请教 ,谢谢 :em01
回复