由于没有创建外层VLAN导致S5300交换机接口不能学习MAC表项

发布时间:  2013-04-25 浏览次数:  131 下载次数:  4
问题描述
该问题与版本无关,割接后发现接口GE0/0/4接口不能学习任何MAC表项,但是从display interface的结果中看,是有单播流量计数增长的。
涉及配置如下:

#
interface GigabitEthernet0/0/4
description HK CSL (MN08000325)
qinq vlan-translation enable
port hybrid untagged vlan 1232 to 1235
port vlan-stacking vlan 428 stack-vlan 1232
port vlan-stacking vlan 429 stack-vlan 1233
port vlan-stacking vlan 430 stack-vlan 1234
port vlan-stacking vlan 431 stack-vlan 1235
stp disable
traffic-limit inbound acl name any_traffic rule 5 cir 100000 pir 100000 cbs 256000 pbs 256000
traffic-limit outbound acl name any_traffic rule 5 cir 100000 pir 100000 cbs 256000 pbs 256000
traffic-filter inbound acl name MN08000325 rule 0
traffic-filter inbound acl name MN08000325 rule 1
traffic-filter inbound acl name MN08000325 rule 2
traffic-filter inbound acl name MN08000325 rule 3
traffic-filter inbound acl name MN08000325 rule 100
undo ntdp enable
undo ndp enable
undo negotiation auto
speed 100
multicast-suppression 5
broadcast-suppression 5
#
acl name MN08000325 4999
rule 0 permit vlan-id 428
rule 1 permit vlan-id 429
rule 2 permit vlan-id 430
rule 3 permit vlan-id 431
rule 100 deny

#
acl name any_traffic 4998
rule 5 permit
告警信息
处理过程
 1.查看STP,发现设备没有使能stp,排除STP问题;
2.将S5300使用旧的ZTE设备代替,发现MAC学习正常,对比了ZTE和5300上接口下的配置,没有发现区别;
3.对于GE0/0/4接口,MAC学习是基于外层VLAN的,怀疑VLAN没有创建,导致无法学习到对应的MAC;
排查配置后,发现果然没有创建外层VLAN。
#
vlan batch 1 9 to 12 99 to 102 201 301 401 501 to 509 908 to 911 920 to 923 928 to 931
vlan batch 952 to 955 976 to 979 1001 to 1005 1020 to 1023 1040 to 1043 1060 to 1063 1080 to 1083 1100 to 1103 1424 to 1427 1521 to 1522
vlan batch 1565 1573 to 1574 1621 to 1622 1665 1673 to 1674 2001 2005 to 2008 2012 to 2013 2015 2018 to 2019
vlan batch 2023 2025 2029 to 2032 2036 to 2045 2049 to 2050 2052 to 2053 2059 to 2065 2070 to 2076 2079 2081
vlan batch 2084 to 2088 2090 to 2092 2095 2099 2106 2123 to 2124 2126 to 2127 2132 to 2133 2139 2149
vlan batch 2163 2175 to 2177 2180 to 2192 2199 to 2204 2221 3001 3500 to 3502 4090 to 4093 
根因
 1.怀疑使能了STP,接口被discarding;
2.配置有其问题,导致MAC不能正常学习; 
建议与总结
1.对于QinQ接口,MAC学习是基于外层VLAN的;
2.对于不能学习到MAC表项的问题,除考虑STP之外,还要注意要创建对应的VLAN。
3.向研发确认了一下,业界产品都是vlan未创建端口就能加vlan的。

END