1. Linux的802.ad需要使用到 bonding 驱动,说明可以参考
这里2. 需要一台支持 LACP 协议的交换机
Linux 配置 (CentOS 5U2):
1. 修改 /etc/modprobe.conf
alias bond0 bonding
options bond0 mode=4 miimon=100
2. 参考上面的文章修改NIC配置文件:
/etc/sysconfig/network-script/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
NETMASK= 你的掩码
IPADDR= 你的IP
GATEWAY= 你的网关
USERCTL=no
/etc/sysconfig/network-script/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
/etc/sysconfig/network-script/ifcfg-eth1
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
配置好以后执行 :
# service network restart
交换机配置 (Cisco 3560):
int range fa0/1 - fa0/2 (连接Linux服务器的端口)
channel-protocol lacp
channel-group 2 mode passive
switchport mode access
switchport access vlan x (如果有VLAN,端口都需要在通一个VLAN)
验证状态:
CISCO 交换机: show etherchannel group 2 detail
正常状态:端口均显示 "P"
Linux: cat /proc/net/bonding/bond0
阅读(1302) | 评论(0) | 转发(0) |