今天有个客户提了一个需求如何在存储NETAPP上配置网卡聚合,想实现存储NETAPP实现网卡聚合实现链路的负载均衡。虽然NETAPP是基于linux实现的,但是NETAPP还是封装了自己的命令,linux下的聚合命令是不可用的。那么如何在NETAPP上配置网卡聚合呢?
在这里我举例说明如何配置LACP模式的网卡聚合,拓扑如下:NETAPP 双网卡与交换机两端口对接。
在NETAPP端配置如下:
-
- Fas3210B> ifconfig e1a down //首先将两个需要聚合的物理端口down掉,否则会提示加入错误
- Fas3210B> ifconfig e1b down
-
- Fas3210B> ifgrp create lacp vif1 -b ip e1a e1b //创建vif1接口配置为lacp模式,两个物理口加入vif接口
- Fas3210B> ifconfig vif1 10.1.1.3 netmask 255.255.255.0 //给vif1接口配置IP,否则无法up接口提示出错
-
- Fas3210B> ifconfig e1a up //将两个需要聚合的物理端口和vif1 up
- Fas3210B> ifconfig e1b up
- Fas3210B> ifconfig e1b up
在交换机端配置如下:
-
- interface Port-channel 1 //在CISCO上创建port channel端口
- description NetApp
-
- switchport access vlan 1
- switchport mode access
-
- interface-range Gi1/1-2 //和NETAPP相连的端口加入port channel,并配置为lacp模式
-
- description netapp
- switchport mode access
-
- speed 1000
- duplex full
- channel-protocol lacp
- channel-group 1 mode active
最后查看一下NETAPP的LACP模式的网卡聚合状态如下:
-
- Fas3210B> vif status
- ifgrp: command "vif" is deprecated in favor of command "ifgrp"
-
- default: transmit 'IP Load balancing', Ifgrp Type 'multi_mode', fail 'log'
-
- vif1: 1 link, transmit 'IP Load balancing', Ifgrp Type 'lacp' fail 'default'
- Ifgrp Status Up Addr_set up: //vif1 lacp模式状态UP,说明协商成功
-
- e1a: state up, since 01Jun2012 10:43:54 (00:00:19) //两个物理端口也是UP状态
- e1b: state up, since 01Jun2012 10:43:54 (00:00:19)
-
- mediatype: auto-10g_sr-fd-up
- flags: enabled
-
- active aggr, aggr port: e1b
- input packets 4, input bytes 496
-
- input lacp packets 4, output lacp packets 6
- output packets 16, output bytes 1196
-
- up indications 2, broken indications 0
- drops (if) 0, drops (link) 0
- indication: up at 01Jun2012 10:43:54
- consecutive 0, transitions 2
需要注意的是在NETAPP Fas3210 web页面上network---add virture interface下并没有可以配置lacp模式的选项,只有命令行支持这个模式。
以上是这次分享NETAPP如何配置LACP模式网卡聚合,同时交换机也开启lacp模式,进行链路负载均衡。

DC Farm小程序二维码
扫一扫添加博客小程序
2012年6月4日 下午2:24 沙发
含金量的博文~
2012年6月4日 下午4:15 板凳
虽然神马也不懂,但看起来很牛×的样子
2012年8月16日 下午3:29 地板
port channel 配置为什么模式呢?
2012年8月16日 下午3:29 4楼
Server不用配置bond吗?
2012年8月16日 下午3:43 1层
@douglas 交换机也要配置 lacp模式。这样才能正常协商,才能正常使用。