转载:[推荐] ubuntu双网卡bonding配置

CPU/显卡/打印机/USB设备等硬件问题
回复
头像
yus253
帖子: 389
注册时间: 2009-05-31 20:52
联系:

转载:[推荐] ubuntu双网卡bonding配置

#1

帖子 yus253 » 2009-11-06 17:02

UBUNTU下双网卡绑定非常简单,使用以下步骤:

1.安装软件
apt-get install ifenslave



2.修改配置文件
/etc/network/interfaces
auto lo
iface lo inet loopback

iface eth0 inet dhcp
iface eth1 inet dhcp

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



3.加载模块
vi /etc/modules
bonding



完成!
The root of bioengineering is the desire to control the organic long enough to improve it. Domesticated plants and animals are examples of technos -- logic applied to life.
头像
yus253
帖子: 389
注册时间: 2009-05-31 20:52
联系:

Re: 转载:[推荐] ubuntu双网卡bonding配置

#2

帖子 yus253 » 2009-11-15 17:36

自己家里其实用不到这么强悍的配置,不过既然主板自带两个r8168网卡,那闲着也是闲着,干脆还是配置起来。

本文来自"岁月联盟"

在下面配置复杂的多网卡负载均衡在Linux下面无比简单。 WWW.SYUE.COM

首先是安装ifenslave,这个在下面就一指令:

(Syue.com)

sudo apt-get install ifenslave (www.Syue.com)

然后修改/etc/modprobe.d/arch/ 文件,如果是32位的系统,是i386,如果是64位Intel系统,是x86_64。 ["岁月联盟"]

加入以下内容: "岁月联盟"提供

alias bond0 bonding
options bond0 mode=balance-alb miimon=100 max_bonds=2 (Syue.com)

最后修改/etc/network/interfaces,把原来的eth0,eth1配置注释掉,加入下面的内容: "岁月联盟"

auto bond0
iface bond0 inet static
address 192.168.1.3
netmask 255.255.255.0
gateway 192.168.1.1
up /sbin/ifenslave bond0 eth0 eth1
down /sbin/ifenslave -d bond0 eht0 eth1 www.Syue.com

OK,重启一下,让网卡负载均衡功能启用。就这么简单了。
The root of bioengineering is the desire to control the organic long enough to improve it. Domesticated plants and animals are examples of technos -- logic applied to life.
头像
yus253
帖子: 389
注册时间: 2009-05-31 20:52
联系:

Re: 转载:[推荐] ubuntu双网卡bonding配置

#3

帖子 yus253 » 2009-11-15 17:38

The root of bioengineering is the desire to control the organic long enough to improve it. Domesticated plants and animals are examples of technos -- logic applied to life.
bugle
帖子: 94
注册时间: 2009-09-22 21:26

Re: 转载:[推荐] ubuntu双网卡bonding配置

#4

帖子 bugle » 2010-05-29 22:37

DX你能不能讲清楚点,刚接触ubuntu不是很熟悉,还有你那广告页面是空的
头像
sinoyster
帖子: 958
注册时间: 2005-10-16 13:24
来自: 四川成都
联系:

Re: 转载:[推荐] ubuntu双网卡bonding配置

#5

帖子 sinoyster » 2010-06-07 11:46

Thank you Ubuntu Team!!!!
I still can't belive this is free...
回复