Chinaunix首页 | 论坛 | 博客
  • 博客访问: 198816
  • 博文数量: 124
  • 博客积分: 7051
  • 博客等级: 少将
  • 技术积分: 1425
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-20 13:21
文章分类

全部博文(124)

文章存档

2008年(124)

我的朋友

分类: LINUX

2008-04-23 18:39:42

   
Debian和Ubuntu上的多网卡绑定

实验环境Ubuntu 6.06 Dadder,内核版本2.6.15-23 server

首先安装
ifenslave
#apt-get install ifenslave-2.6

编辑
/etc/network/interfaces

auto lo bond0 eth0 eth1
iface bond0 inet static
address 10.31.1.5
netmask 255.255.255.0
network 10.31.1.0
gateway 10.31.1.254
up /sbin/ifenslave bond0 eth0
up /sbin/ifenslave bond0 eth1

iface lo loopback

iface eth0 inet static
address 10.1.1.101
netmask 255.255.255.0

iface eth1 inet static
address 10.1.1.102
netmask 255.255.255.0


再编辑 /etc/modprobe.d/arch/i386

加上两行:
alias bond0 bonding
options bonding mode=0 miimon=100

最后重启网络即可
/etc/init.d/networking restart
阅读(338) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~