1、交换机端口聚合(AP)的流量平衡
1)AP可以根据报文的源MAC地址、目的MAC地址,源MAC地址+目的MAC地址、源IP地址,目的IP地址以及源IP地址+目的IP地址等特征值把流量平均地分配到AP的成员链路中。您可以用aggregateport
load-balance设定流量分配方式;
2)流量平衡算法,缺省为src-mac;
3)源MAC地址流量平衡是根据报文的源MAC地址把报文分配到AP的各个成员链路中。不同源MAC的报文,根据源MAC地址在各成员链路间平衡分配;相同源MAC的报文,固定从同一个成员链路转发。所以同样一个流,转发的端口是固定不变的;
4)其他流量算法同上述的原则类似,只有hash算法的因素改变了,以上所有平衡模式都适用于二层AP和三层AP;
5)有时候会出现AP成员端口上的流量,带宽分配不平衡,可以通过调整算法来使之更平均。
2、如何修改AP聚合口的流量平衡方式
使用如下命令来进行设置:
Ruijie#show aggregatePort
load-balance
Load-balance : Source MAC and Destination MAC
//默认的AP流量平衡方式
Ruijie#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie(config)#aggregateport load-balance ?
dst-ipDestination IP address
dst-macDestination MAC address
src-dst-ip Source and
destination IP address
src-dst-mac Source and
destination MAC address
src-ip Source IP
address
src-macSource MAC address
Ruijie(config)#aggregateport load-balance
dst-ip //更改AP流量平衡方式为dst-ip
Ruijishow aggregatePort load-balance
Load-balance : Destination IP
3、S86产品是否支持跨线卡的端口聚合AP
S8600系列支持AP成员口分布在多个线卡上,对线卡没有要求,配置上与普通AP没有区别,推荐版本10.4(3b17)及以后。
4、哪些设备堆叠后不支持跨堆叠AP聚合
S20系列,及S23系列交换机堆叠不支持跨堆叠AP聚合(跨堆叠AP聚合指AP的成员口分布在堆叠组的不同设备上),其他系列交换机均支持跨堆叠AP聚合。
5、S2100系列端口聚合的注意点
S2100最大支持的6个AP,每个AP最多包含8个端口。6号AP只为模块1和模块2保留,其它端口不能成为该AP的成员,模块1和模块2也只能成为6号AP的成员。
6、S5750交换机与HP服务器无法AP聚合成功
HP服务器网卡聚合一般使用动态LACP协议,故我司S5750交换机上也需要配置动态LACP聚合,如果不是10.3(5b1)版本或10.4(3) 117920及之后版本,需要升级至相应版本。
7、我司交换机与cisco交换机AP动态链路聚合配置案例
拓扑:cisco---------SW
cisco 关于AP配置如下:
interface port-channel 1
switchport mode access
interface FastEthernet0/1
switchport mode access
channel-group 1 mode active
interface FastEthernet0/2
switchport mode access
channel-group 1 mode active
我司交换机关于AP配置如下:
interface FastEthernet 0/1
port-group 1 mode active
interface FastEthernet 0/2
port-group 1 mode active
interface
AggregatePort 1
8、交换机配置三层AP聚合时提示报错
交换机配置三层AP聚合,按照如下配置时提示报错
Ruijie(config)#int g0/1
Ruijie(config-if-GigabitEthernet 0/1)#port-group 1
Ruijie(config-if-GigabitEthernet 0/1)#int g0/2
Ruijie(config-if-GigabitEthernet 0/2)#port-group 1
Ruijie(config-if-GigabitEthernet 0/2)#exit
Ruijie(config)#int aggregateport 1
Ruijie(config-if-AggregatePort 1)#no switchport
AP containing
members can not change layer!
Ruijie(config-if-AggregatePort
1)#exit
Ruijie(config)#
正确配置是先创建AP口,然后设置AP口为三层口,再把三层物理口加入聚合组,应该按如下顺序配置
Ruijie(config)#int aggregateport 1
Ruijie(config-if-AggregatePort 1)#no switchport
Ruijie(config-if-AggregatePort 1)#ip add
192.168.1.1 255.255.255.0
Ruijie(config-if-AggregatePort 1)#exit
Ruijie(config)#int g0/1
Ruijie(config-if-GigabitEthernet 0/1)#no
switchport //需要先将端口设置为三层口,在加入AP
Ruijie(config-if-GigabitEthernet 0/1)#port-group 1
Ruijie(config-if-GigabitEthernet 0/1)#int g0/2
Ruijie(config-if-GigabitEthernet 0/2)#no
switchport
Ruijie(config-if-GigabitEthernet 0/2)#port-group 1
Ruijie(config-if-GigabitEthernet 0/2)#exit
Ruijie(config)#
9、交换机配置AP后发现,聚合后的端口bandwidth显示的是1000M,而不是2000M
之前老些的版本,都是这样,例如S5750 10.3(5b1)版本,做AP聚合后,bandwidth显示的是1000000
Kbit,而不是2000000 Kbit,但是这不影响使用,属于正常现象:
Ruijie#show int aggregateport 1
Index(dec):25 (hex):19
AggregatePort 1 is UP , line protocol is UP
Hardware is Aggregate Link AggregatePort, address
is 00d0.f8ad.a3ac (bia 00d0.f8ad.a3ac)
Interface address is: 192.168.1.1/24
ARP type: ARPA,ARP Timeout: 3600 seconds
MTU 1500 bytes, BW 1000000 Kbit
Encapsulation protocol is Ethernet-II,
loopback not set
Keepalive interval is 10 sec , set
Carrier delay is 2 sec
RXload is 1 ,Txload is 1
Queueing strategy: FIFO
Output queue 0/0, 0 drops;
Input queue 0/75, 0 drops
Switchport attributes:
最新发布的10.4(3)的版本都有进行更改,显示会变成2000000
kbit
Ruijie#show
interfaces aggregateport 1
Index(dec):26 (hex):1a
AggregatePort 1 is UP , line protocol is UP
Hardware is Aggregate Link AggregatePort
Interface address is: no ip address
MTU 1500 bytes, BW 2000000 Kbit
Encapsulation protocol is Bridge,
loopback not set
Keepalive interval is 10 sec , set
Carrier delay is 2 sec
Rxload is 1/255, Txload is 1/255
Switchport attributes:
interface's description:""
admin medium-type is Copper, oper medium-type is Copper
lastchange time:5 Day: 4 Hour:35 Minute: 4 Second
Priority is 0
admin duplex mode is AUTO, oper duplex is Full
admin speed is AUTO, oper speed is 1000M
flow receive control admin status is OFF, flow send control admin status
is OFF
flow receive control oper status is OFF, flow send control oper status is
OFF
Storm Control: Broadcast is OFF, Multicast is OFF, Unicast is OFF
Port-type: trunk
Native vlan: 1
Allowed vlan lists: 1-4094
Active vlan lists: 1-3
Aggregate Port Informations:
Aggregate Number: 1
Name: "AggregatePort 1"
Refs: 2
Members: (count=2)
GigabitEthernet 0/1Link Status: Up
GigabitEthernet 0/2Link Status: Up
10、S6810E,24sfp线卡上配置AG(端口聚合),报% Error: Switch does
not support this function
1)现象
TSG_S6810E#sh run
System software version : 2.42(5) Build Feb 2 2007Rel
version 1.0
install 1 2xenpak
install 2 24sfp
install 5 msc
install 8 24gt/8sfp
interface GigabitEthernet 2/12
no
switchport
!
interface GigabitEthernet 2/13
no
switchport
TSG_S6810E(config)#int gigabitEthernet 2/13
TSG_S6810E(config-if)#port-group 2
TSG_S6810E(config-if)#exit
TSG_S6810E(config)#int gigabitEthernet 2/12
TSG_S6810E(config-if)#port-group 2
% Error: Switch does not support this function
interface GigabitEthernet 2/12
no
switchport
!
interface GigabitEthernet 2/13
no
switchport
port-group 2
!
2)原因
24SFP线卡由两块芯片构成,前12口一块,后12口一块,g2/12属于芯片1,g2/13属于芯片2,如果将12,13口做AG,是跨芯片了的AG,68系列不支持
3)解决方案
更改镜像口,例如13-14口做AG
11、S2026F端口聚合的限制
S2026F硬件,截止到10.2(5)软件版本,对端口聚合的限制为,最大只支持三组AP,AP组号1-2用于百兆口聚合,组号3用于千兆口聚合,每组AP里面最多支持4个端口。
!
interface FastEthernet 0/1
port-group 1
!
interface FastEthernet 0/2
port-group 1
!
interface FastEthernet 0/3
port-group 1
!
interface FastEthernet 0/4
port-group 1
!
interface FastEthernet 0/5
port-group 2
!
interface FastEthernet 0/6
port-group 2
!
interface FastEthernet 0/7
port-group 2
!
interface FastEthernet 0/8
port-group 2
!
interface FastEthernet 0/9
!
interface FastEthernet 0/10
!
interface FastEthernet 0/11
Ruijie#conf
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie(config)#int f0/9
Ruijie(config-if-FastEthernet 0/9)#port-group 2
Ap member count reach maxium 4.
Add to AggregatePort 2 fail.//每组最多支持4个成员口
Ruijie(config-if-FastEthernet 0/9)#port-group 3
Add to AggregatePort 3 fail.
Ruijie(config-if-FastEthernet 0/9)#port-group ?
<1-3> Aggregate port
group number//AP组3只能用于千兆端口的聚合
12、S3760 配置端口聚合报错,Failed: Operation conflicts with
configs: Security Acl/...
故障现象:
客户需要把两个的access口,做端口聚合,同时配置成trunk口,在配置端口聚合的时候,报以下错误
S3760(config-FastEthernet
0/47)#ip access-group 100 in
S3760(config)#int f0/47
S3760(config-FastEthernet 0/47)#port-group 1
Failed: Operation conflicts with configs: Security
Acl/...
主要原因:
当接口有下发ACL时,配置端口聚合会存在冲突,可以检查该物理接口或是SVI口是否有配置ACL
解决方法:
建议客户做如下步骤配置:
1、取消SVI下或物理口下的的ACL调用
2、把两个物理端口加入聚合组
3、在聚合组中配置trunk属性
4、重新在聚合组或SVI下调用ACL
S3760(config)#int f0/47
S3760(config-FastEthernet 0/47)#port-group 1
S3760(config)#int aggregateport 1
S3760(config-if-AggregatePort 1)#ip access-group 100
in
13、S18系列聚合口是否可以直接连接服务器
S18系列支持聚合口的主要有三款:S1824GT-E、S1824GT-EA、S1824GT-ES
1)其中S1824GT-E、S1824GT-EA最后两个23、24是固定只能做聚合口使用,在不做聚合口使用的时候,23、24口只能使用其中一个来连接终端或者设备,另外一个端口必须闲置;
2)S1824GT-ES最后两个23、24口是有AP聚合按钮的,在需要聚合的时候开启聚合功能,不需要的时候可以关闭,通过按钮切换,这样两个口都可以同时用。
14、LACP超时时间是多少,是否支持时间修改
截止 2015.3.21, 我司交换机10.X设备LACP默认发送间隔是30S,超时时间是90S。且不支持时间修改。
15、我司交换机是否支持逐报的负载均衡方式?
截止15.6.10,当前软件版本都不支持逐个数包负载均衡。
假设客户环境有两条链路聚合。所谓逐报的负载均衡,即是同一个用户发送过来的数据报文,一个走A线路,一个走B线路,依次循环。
而我司当前只支持基于流的负载方式。
端口速率 | Interface | IEEE 802.1d (short) | IEEE 802.1t (long) | IEEE 802.1t (long standard) |
10M | 普通端口 | 100 | 2000000 | 2000000 |
Aggregate Link | 95 | 1900000 | | |
100M | 普通端口 | 19 | 200000 | 200000 |
Aggregate Link | 18 | 190000 | | |
1000M | 普通端口 | 4 | 20000 | 20000 |
Aggregate Link | 3 | 19000 | | |
10000M | 普通端口 | 2 | 2000 | 2000 |
Aggregate Link | 1 | 1900 | |
17、10.X设备,若聚合口中的成员口UP/DOWN,为何没有日志显示?
10.x设备,聚合口中成员口UP/DOWN的日志是默认不显示的,需要通过配置命令开启该日志显示,命令如下:Ruijie(config)#aggregateport member linktrap //开启后成员口UP/DOWN日志才会显示。