汇聚层交换机上行和下行分别绑定Eth-Trunk,接入层交换机无法Ping通网关的故障案例涉及产品和版本框式交换机 V200R007 以及之后版本组网情况如图1T所示,ME60为SwitchB的网关,SwitchA做二层透传SwitchA上行通过Eth-Trunk52 与 ME60 相连,下行通过 Eth-Trunk24 与 SwitchB 相连图1-1汇聚层交换机上行和下行分别绑定Eth-Trunk,接入层交换机无法Ping通网关 的故障案例组网图现象描述SwitchB 无法 Ping 通网关 ME60原因分析广播到同板和其他单板的非已知单播报文,将VLAN作为Eth-Trunk HASH因子选路时, 同板取的是原始报文里的VLAN,跨板取得是经过VLAN转换后的VLAN,这样导致算出来的 HASH key值不一致,出现Et h-Trunk出口多包或者少包的情况处理步骤步骤 1在SwitchA上配置对ARP报文的流量统计从下面的报文统计信息可以发现,SwitchB的 ARP 广播请求报文没有转发到 ME60 上[SwitchA] display traffic policy statistics interface Eth-Trunk 24 inbound verbose rule-baseInterface: Eth-Trunk24Traffic policy inbound: Qos-ZhuanXianRule number: 1Current status: successStatistics interval: 300Classifier: arp operator andBehavior: arpif-match l2-protocol arpif-match source-mac 4846-fbeb-f3baif-match destination-mac ffff-ffff-ffffBoard : 2Passed | Packets: 127| Bytes: 8,636Rate(pps): 0Rate(bps): 0Dropped| Packets:0| Bytes:0| Rate(pps):0| Rate(bps):0Board : 3Passed| Packets:0| Bytes:0| Rate(pps):0| Rate(bps):0Dropped| Packets:0| Bytes:0| Rate(pps):0| Rate(bps):0Board : 4Passed| Packets:1| Bytes:68| Rate(pps):0| Rate(bps):0Dropped| Packets:0| Bytes:0| Rate(pps):0| Rate(bps):0[SwitchA] display traffic policy statistics interface Eth-Trunk 52 outbound verbose rule-baseInterface: Eth-Trunk52Traffic policy outbound: arp Rule number: 1Current status: successStatistics interval: 300Classifier: arp operator andBehavior: arp1if-match l2-protocol arpif-match source-mac 4846-fbeb-f3baif-match destination-mac ffff-ffff-ffffBoard : 2PassedPackets:0Bytes:0| Rate(pps):0| Rate(bps):0Dropped| Packets:0| Bytes:0| Rate(pps):0| Rate(bps):0Board : 4Passed| Packets:0| Bytes:0| Rate(pps):0| Rate(bps):0Dropped| Packets:0| Bytes:0| Rate(pps):0| Rate(bps):0Board : 5Passed| Packets:0| Bytes:0| Rate(pps):0| Rate(bps):0Dropped| Packets:0| Bytes:0| Rate(pps):0| Rate(bps):0Board : 6Passed| Packets:0| Bytes:0| Rate(pps):0| Rate(bps):0Dropped| Packets:0| Bytes:0| Rate(pps):0| Rate(bps):0步骤 2 查看下行口 Eth-trunk24 与上行口 Eth-trunk52 的配置:Eth-trunk24 的配置如下:#interface Eth-Trunk24undo port hybrid vlan 1port hybrid tagged vlan 80 300 500 534 to 535 900 932 to 933 1957 to 1958 1999 28432923 to 2926port hybrid tagged vlan 2931 to 2934 2950 2973 to 2974 3018 3041 to 3042 3090 31013194 3204 to 3206 3265port hybrid tagged vlan 3355 3465 to 3469 3651 3683 3725 3729 3786 3828 3838 3848 to 3849port hybrid tagged vlan 4017port hybrid untagged vlan 150port vlan-stacking vlan 151 stack-vlan 150port vlan-stacking vlan 152 stack-vlan 150port vlan-stacking vlan 189 stack-vlan 150port vlan-stacking vlan 279 stack-vlan 150traffic-policy Qos-ZhuanXian inboundtraffic-policy 3333 outboundurpf loose#[SwitchA] display eth-trunk 24Eth-Trunk24's state information is:WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIPLeast Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8Operate status: up Number Of Up Port In Trunk: 3StatusUpUpUpWeight111PortNameGigabitEthernet2/0/5GigabitEthernet4/0/17GigabitEthernet3/1/17Eth-Trunk52 的配置如下# interface Eth-Trunk52port link-type trunkundo port trunk allow-pass vlan 1to 2002 2146 2187 3355 4001port trunk allow-pass vlan 150 2001traffic-policy arp outboundmode lacp#[SwitchA] display eth-trunk 52Local:LAG ID: 52Preempt Delay: Disabled System Priority: 32768 Least Active-linknumber: 1 Operate status: upEth-Trunk52's state information is:WorkingMode: LACPHash arithmetic: According to SIP-XOR-DIPSystem ID: 68a8-284d-59d0Max Active-linknumber: 8Number Of Up Port In Trunk: 8ActorPortNameStatusPortTypePortPriPortNoPortKeyPortStateWeightGigabitEthernet4/0/20Selected1GE327685713361101111001GigabitEthernet2/0/20Selected1GE327685813361101111001GigabitEthernet5/0/4Selected1GE327685913361101111001GigabitEthernet6/0/4Selected1GE327686013361101111001GigabitEthernet5/0/5Selected1GE327686113361101111001GigabitEthernet5/0/6Selected1GE327686213361101111001GigabitEthernet6/0/5Selected1GE327686313361101111001GigabitEthernet6/0/6Selected1GE327686413361101111001Partner:ActorPortNameSysPriSystemIDPortPri PortNo PortKey PortStateGigabitEthernet4/0/2032768e435-c888-2e6a327682181710111100GigabitEthernet2/0/2032768e435-c888-2e6a327681781710111100GigabitEthernet5/0/432768e435-c888-2e6a327681881710111100GigabitEthernet6/0/432768e435-c888-2e6a327682281710111100。