文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>NIC bonding with Ubuntu

NIC bonding with Ubuntu

时间:2010-04-14  来源:coolper

Network interfaces can be bonded to provide fault-tolerant operation. Here’s how to do it in Ubuntu. I will assume the interfaces to be bonded are eth0 and eth1.

First, install the ifenslave package. The ifenslave tool will be used to actually bond the interfaces.

apt-get install ifenslave

Create file /etc/modprobe.d/bonding with the following contents:

alias bond0 bonding
options bonding mode=0 miimon=100

Load the bonding module:

modprobe bonding

Add a bonded interface into /etc/network/interfaces:

auto bond0
iface bond0 inet static
address 192.168.0.1
gateway 192.168.0.254
netmask 255.255.255.0
pre-up modprobe bonding
up ifenslave bond0 eth0 eth1
pre-down ifenslave bond0 -d eth0 eth1
post-down rmmod bonding

Restart networking:

/etc/init.d/networking restart

That’s it! The bonded interface should come up automatically after a reboot as well.

相关阅读 更多 +
排行榜 更多 +
阿克里危机手机版下载

阿克里危机手机版下载

飞行射击 下载
贪婪洞窟重生手游下载

贪婪洞窟重生手游下载

角色扮演 下载
贡贡托儿所手机版下载

贡贡托儿所手机版下载

休闲益智 下载