如何修改S7800交换机的链路聚合负载分担方式?

发布时间:  2012-12-13 浏览次数:  151 下载次数:  0
问题描述
 

如何修改S7800交换机的链路聚合负载分担方式?

处理过程
 

1、只有版本为受限版本S7800-VRP520-F6307L01版本及以上的F系列版本时才有命令支持修改链路聚合负载分担方式,R系列版本目前不支持该命令:

[S7800]link-aggregation load-sharing mode ?根据需要选择参数即可

 destination-ip   Destination IP address

 destination-mac  Destination MAC address

 destination-port Socket destination port

 ingress-port     Ingress port

 source-ip        Source IP address

 source-mac       Source MAC address

 source-port      Socket source port

2、如果现网S7800为R系列版本,没有命令修改链路聚合负载分担方式,需要通过修改寄存器的方法来实现

3、首先进入诊断模式:

<S7800>sys                                                              

System View: return to User View with Ctrl+Z.                                  

[S7800]en

4、然后查看trunk组状态,例如现网S7800的3槽位为业务槽位,并且该槽位单板仅一个交换芯片,实际操作中注意需要对所有单板的所有交换芯片执行下述操作,具体一块单板有几个交换芯片,在以下命令里,输出槽位号3后打问号即可得知该单板有几个交换芯片:

[S7800-diagnose]bcm 3 0 trunk/show-------查看3槽位0芯片trunk组状态,看看有几组trunk组(trunk组128属于内部trunk组,除外)被下发到该芯片,并且观察各trunk组的分流方式是哪种,具体数字代表什么方式,下面有说明。                                   

Device supports 130 trunk groups:                                              

 128 front panel trunks, 8 ports/trunk                                        

 2 fabric trunks, 4 ports/trunk                                               

trunk 0: (front panel, 2 ports)=ge5,ge4 dlf=any mc=any

ipmc=any psc=srcdestip (0x6)                                                

trunk 0: egress ports=cpu,ge0-ge3,ge6-ge23,hg                                  

trunk 1: (front panel, 2 ports)=ge3,ge2 dlf=any mc=any

ipmc=any psc=srcdestip (0x6)                                                  

trunk 1: egress ports=cpu,ge0-ge1,ge4-ge23,hg                                  

trunk 128: (fabric, 4 ports)=hg0,hg1,hg2,hg3 dlf=any mc=any

ipmc=any psc=srcdestip (0x6)

5、修改链路聚合负载分担方式

[S7800-diagnose]bcm 3 0 trunk/psc/id=0/rtag=4-------从以上查看的结果显示该芯片有0和1两个trunk组,id号为trunk号,对应链路聚合组

[S7800-diagnose]bcm 3 0 trunk/psc/id=1/rtag=4-------从以上查看的结果显示该芯片有0和1两个trunk组,id号为trunk号,对应链路聚合组

6、修改后查看                                                  

[S7800-diagnose]bcm 3 0 trunk/show------修改后查看,除trunk 128以外的trunk组输出信息 “psc=srcip(0x6)” 变成 “psc=srcip(0x4)” 说明修改成功         

Device supports 130 trunk groups:                                              

 128 front panel trunks, 8 ports/trunk                                        

 2 fabric trunks, 4 ports/trunk                                               

trunk 0: (front panel, 2 ports)=ge5,ge4 dlf=any mc=any

ipmc=any psc=srcip (0x4)

trunk 0: egress ports=cpu,ge0-ge3,ge6-ge23,hg                                  

trunk 1: (front panel, 2 ports)=ge3,ge2 dlf=any mc=any

ipmc=any psc=srcip (0x4)

trunk 1: egress ports=cpu,ge0-ge1,ge4-ge23,hg                                  

trunk 128: (fabric, 4 ports)=hg0,hg1,hg2,hg3 dlf=any mc=any

ipmc=any psc=srcdestip (0x6)  

7、“psc=srcip(0x6)” 变成 “psc=srcip(0x4)”说明聚合链路的负载分担方式由基于源+目的ip该为基于源ip,参数意义如下:1源mac 2目的mac 3源+目的mac 4源IP 5目的IP 6源+目的IP
根因
解决方案

END