简单,可复制

点点滴滴,尽在文中

  :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

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

4. 重启

5.检查 

cat /proc/net/bonding/bond0

完成!

 

转自 http://www.gaojinbo.com/ubuntu%E5%8F%8C%E7%BD%91%E5%8D%A1bonding%E9%85%8D%E7%BD%AE.html

posted on 2012-11-01 20:18  ggjucheng  阅读(4520)  评论(0编辑  收藏  举报