相比主备端口而言,LAG
模式有如下的一些优点:
1. 采用LAG
模式时,不需要配置多个AP-Manager 的地址,因为系统中只有一个逻辑接口
2. 采用LAG
模式时,不需要为每个接口配置主备端口
3.
采用LAG模式时,单个链路中断时不会用户流量造成影响
4.
采用LAG模式时,可以在多个链路上实现负载均衡
但采用LAG模式后,端口镜像、配置多个不打标记的VLAN接口都将被禁止。
(LAG模式在440X,5508系列的控制器中默认是禁用的,而在Wism等集成的控制器模块中默认是开启的;
4400 Series、WiSM1、3750G、WiSM2-->>Catalyst
switches is src-dest-ip
“LAG on 5508 and 2504 (2504 LAG Support introduced in 7.4 code) WLC's
does not require src-dst-ip. Any load balacing
method will work.”
2504 7.4版本后支持LAG技术;)
当WLC
被配置使用LAG模式时,可以将上联线分别连接到模块化交换机的不同模块上或堆叠阵列
的不同交换机上,并依靠邻接交换机上配置端口聚合来提供第二层的网络流量负载均衡。

==============================
Configuring Link
Aggregation (GUI)
Step 1 Choose
Controller > General to open the General page.
Step 2 Set the LAG
Mode on Next Reboot parameter to Enabled.
Step 3 Save the
configuration.
Step 4 Reboot Cisco
WLC.
Step 5 Assign the
WLAN to the appropriate VLAN.
-------------------------
Configuring Link
Aggregation (CLI)
Step 1 Enter the
<config lag enable> command to enable LAG.
Enter the <config lag disable>
command if you want to disable LAG.
Step 2 Enter the
<save config> command to save your settings.
Step 3 Reboot Cisco
WLC.
-------------------------
Verifying Link
Aggregation Settings (CLI)
To verify your LAG
settings, enter this command:
<show lag
summary>
Information similar
to the following appears:
LAG Enabled
-------------------------
The controller’s
neighbor devices must also be properly configured to support LAG.
• Each neighbor port
to which the controller is connected should be configured as follows:
interface GigabitEthernet <interface
id>
switchport
channel-group <id> mode on
no shutdown
• The port channel
on the neighbor switch should be configured as follows:
interface port-channel <id>
switchport
switchport trunk encapsulation dot1q
switchport trunk native vlan <native
vlan id>
switchport trunk allowed vlan <allowed
vlans>
switchport mode trunk
no shutdown
下面是如何验证以太网通道负载平衡机制的命令:
Switch#show
etherchannel load-balance
EtherChannel
Load-Balancing Configuration:
src-dst-ip
EtherChannel
Load-Balancing Addresses Used Per-Protocol:
Non-IP: Source XOR
Destination MAC address
IPv4: Source XOR
Destination IP address
IPv6: Source XOR
Destination IP address
下面是如何更改交换机配置(IOS)的命令:
Switch(config)#port-channel
load-balance src-dst-ip
------------------------------------------------以下是实例D02-WXHX-3750-02相应配置;
interface
GigabitEthernet 1/0/20
description To_D02-WXKZ-KF-5508-01_PORT1
channel-group 1 mode on
no shutdown
!
interface
GigabitEthernet 1/0/21
description To_D02-WXKZ-KF-5508-02_PORT2
channel-group 2 mode on
no shutdown
!
interface
GigabitEthernet 2/0/20
description To_D02-WXKZ-KF-5508-02_PORT1
channel-group 2 mode on
no shutdown
!
interface
GigabitEthernet 2/0/21
description To_D02-WXKZ-KF-5508-01_PORT2
channel-group 1 mode on
no shutdown
!
interface
port-channel 1
description
LAG(Gi1/0/20+Gi2/0/21)_To_D02-WXKZ-KF-5508-01
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 26,27
switchport mode trunk
no shutdown
!
interface
port-channel 2
description
LAG(Gi2/0/20+Gi1/0/21)_To_D02-WXKZ-KF-5508-02
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 26,27
switchport mode trunk
no shutdown
------------------------------------------------以上是实例D02-WXHX-3750-02相应配置;
===========================================================================================
-
除非无线控制器的所有端口连接的交换机一侧使用相同的第2层配置参数,否则不要使用链路聚合LAG)。
例如,避免在某个端口过滤某些VLAN,而在其他端口不过滤。
-
当使用LAG,流量必须到达同一个数据平面。无线控制器依靠交换机上对流量的负载平衡决策。
无线控制器期望属于一个无线接入点的流量总是在同一数据平面上进入。
5500系列无线控制器为单个数据平面,流量将始终在同一数据平面上到达。
-
WISM2和8500无线控制器有两个数据平面,流量需要在同一数据平面上到达。
通常,有足够的带宽来传送数据平面之间的帧。当然如果存在有限的带宽,通信可能会被丢弃。
-
思科IOS软件版本12.2(33)SXH6及以上有一个选项为PFC3C模式机箱配置不带VLAN的负载分布。
使用port-channel load-balance src-dst-ip
exclude vlan命令实现。此功能可确保属于无线接入点的流量进入同一个端口。
-
当LAG与VSS、堆叠交换机(3750/2960)或Nexus的VPC一起使用,应该保证IP包的分片被发送到相同的端口。
如果与多个交换机一起部署,关于负载均衡决策,端口必须属于同一个L2“实体”。
-
连接无线控制器到不止一台交换机,你必须禁用LAG并为每个物理端口创建无线接入点管理接口。这提供了冗余性和可扩展性。
-
避免为无线接入点管理接口创建一个备份端口,即使它在旧版本的软件中是允许的。冗余是由多个无线接入点管理接口实现的。
参考连接:
http://www.cisco.com/c/en/us/td/docs/wireless/controller/8-0/configuration-guide/b_cg80.html
《Cisco Wireless LAN Controller Configuration Guide, Release 8.0》-"Configuring
Link Aggregation章节"
http://www.cisco.com/c/en/us/td/docs/wireless/controller/7-0/configuration/guide/c70/c70mint.html
《Cisco Wireless LAN Controller Configuration
Guide, Release 7.0.98.0》
https://supportforums.cisco.com/document/95971/wlc-lag-and-catalyst-6500-etherchannel-load-balancing-considerations
“WLC LAG and Catalyst 6500 Etherchannel Load
Balancing Considerations”--“...4400 Series、WiSM1、3750G、WiSM2-->>Catalyst
switches is src-dest-ip...LAG on 5508 and 2504 (2504 LAG Support introduced in 7.4 code) WLC's
does not require src-dst-ip. Any load balacing
method will work.”
http://networkengineering.stackexchange.com/questions/1644/does-2504-wlc-support-lag <<<<" Does 2504 WLC support LAG?"
http://networkengineering.stackexchange.com/questions/2455/cisco-wlc-use-lag-or-not <<<<"CISCO WLC: use LAG or not?"
https://www.reddit.com/r/Cisco/comments/32y4zg/new_cisco_5508_wlcs_giving_me_tons_of_problems/
<<<<对于LAG提问;
未看,仅作补充:http://what-when-how.com/deploying-and-troubleshooting-cisco-wireless-lan-controllers/lag-cisco-wireless-lan-controllers/
未看,仅作补充:http://www.ciscozine.com/configuring-link-aggregation-with-etherchannel/
特别提醒:
本文档为自行翻译理解,能力有限不能保证绝对性。
如果您使用的是真实网络,请确保您已经了解所有命令的潜在影响。