关于NATIVE_VLAN_MISMATCH 的排错分析

网络 专栏收录该内容
77 篇文章 0 订阅

核心交换机划分access模式的VLAN,二级交换机级联口设置为default模式,连接后两台交换机都提示:
00:07:05: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/3 (3), with Switch GigabitEthernet0/1 (1).

  

解决步骤:
观察核心交换机,端口设置如下

SW1#sh run int f0/3
interface FastEthernet0/3

switchport access vlan 3


switchport mode access


SW1#sh int f0/3 swi
Name: Fa0/3
Switchport: Enabled
Administrative Mode: static access
Operational Mode: static access
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: Off
Access Mode VLAN: 3 (VLAN0003)
Trunking Native Mode VLAN: 1 (default)

Administrative Native VLAN tagging: enabled
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk Native VLAN tagging: enabled
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
         
Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Appliance trust: none
----------------------------------------------------------


二级交换机上连端口如下:
Switch#sh run int 0/1
interface GigabitEthernet0/1
end
Switch#sh int g0/1 swi
Name: Gi0/1
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: static access
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)

Administrative Native VLAN tagging: enabled
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk Native VLAN tagging: enabled
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
         
Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Appliance trust: none

 

 

主要是核心交换机上:


Access模式下的NativeAccess Mode VLAN: 3 (VLAN0003)
Trunk模式下的NativeTrunking Native Mode VLAN: 1 (default)

原因:
经过查阅cisco相关资料,CiscoIOS 12.0(3)以後,已经改用CDP version 2了,增加了VTP Management Domain NameNative VLAN,以及full/half-Duplex三个特征位,链路两端的Access Mode VLAN不一致,因此交换机日志会提示”%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/3 (3), with Switch GigabitEthernet0/1 (1)”

解决办法:
解决办法就是不启用VTP version2,在全局配置模式下输入命令
Switch(config)#no cdp advertise-v2
强制交换机使用version1,通过命令再查看CDP的信息可以看到已经使用version 1进行通讯。
Switch#sh cdp traffic
CDP counters :

Total packets output: 26, Input: 50


Hdr syntax: 0, Chksum error: 0, Encaps failed: 0


No memory: 0, Invalid packet: 0, Fragmented: 0


CDP version 1 advertisements output: 26, Input: 25



CDP version 2 advertisements output: 0, Input: 25

  • 1
    点赞
  • 2
    评论
  • 4
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值