Chinaunix首页 | 论坛 | 博客
  • 博客访问: 442331
  • 博文数量: 96
  • 博客积分: 4594
  • 博客等级: 上校
  • 技术积分: 1130
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-30 19:56
文章分类
文章存档

2012年(8)

2011年(49)

2010年(18)

2009年(21)

分类: LINUX

2011-02-05 19:21:49

以太网信道绑定:负载均衡,整合带宽,防止集群单点故障。
1.说明/etc/modprobe.conf的读取顺序
先加载模块,才会读取modprobe.conf
2.实现
#vim /etc/modprobe.conf
alias bond0 bonding
options bond0(绑定后的虚拟网卡名字) mode=1 miimon=100 use_carrier=0
选项说明:mode=1 容错
          mode=0 负载均衡
          miimon每隔多少毫秒监听链路状态
#vim /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
IPADDR=192.168.1.254
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
ONBOOT=YES
BOOTPROTO=static
#vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
MASTER=bond0
SLAVE=yes
ONBOOT=yes
BOOTPROTO=static
#vim /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
MASTER=bond0
SLAVE=yes
ONBOOT=yes
BOOTPROTO=static
 
 
3.modinfo查看模块信息
 
 
4.注意HBA卡冗余
 
阅读(2060) | 评论(0) | 转发(0) |
0

上一篇:switch-单臂路由

下一篇:认识操作系统

给主人留下些什么吧!~~