SWA:
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/1 (3), with Switch FastEthernet0/1 (1).
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/2 (4), with Switch FastEthernet0/2 (1).
#其中:Native VLAN mismatch discovered on FastEthernet0/2 (4),中括号中的4是本端vlan号;with Switch FastEthernet0/1 (1)括号中的1是对端交换机连接端口的vlan号。
SWB:
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/1 (1), with Switch FastEthernet0/1 (3).
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/2 (1), with Switch FastEthernet0/2 (4).
环境:交换机A的F0/1(access vlan 3),F0/2(acces vlan 4)与交换机B的F0/1 ,F0/2(默认设置,都属于vlan1)相连 ,两台交换机分别会有如上提示。
原因分析:
1、为什么access口还会提示native vlan不一致,不是只有trunk链路才需要设置native vlan吗?
这是因为直接相连的两个switch之间对应端口的VLAN不一致,即如果是access口,那么你要保证2端的端口vlan是一致的,这样就不会有这个报错了。
2、产生的原因是CDP惹的祸,CDP version 2的封包裡面,增加了VTP Management Domain Name、Native VLAN,以及full/half-Duplex三個欄位。換言之,當兩台switch都使用CDP version 1的時候,因為CDP封包裡面沒有native vlan的欄位,自然不會有這個警告訊息出現在log裡面了(引用自下面的文章)。
参考:
https://chenerich.blogspot.com/2007/10/cdp-4-nativevlanmismatch.html
https://zhidao.baidu.com/question/361518638417190692.html