Catlyst 6509核心交换告警信息处理--把trunk口配置成access。
2008-12-28 (jj)
1. 原始记录
Dec 28 07:34:47: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered . GigabitEthernet1/36 (102), with tuimeijiku FastEthernet0/12 (1).
Dec 28 07:34:49: %IP-4-DUPADDR: Duplicate address 10.1.123.193 . Vlan11, sourced by 0018.7447.8700
2. 分析 处理
2.1 告警:Dec 28 07:34:47: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered . GigabitEthernet1/36 (102), with tuimeijiku FastEthernet0/12 (1).
告警说明:是native VLAN不匹配,在G1/36端口vlan 102,与交换机tuimeijiku的F0/12的VLAN 1。
2.2 检查端口G1/36的配置
interface GigabitEthernet1/36
no ip address
switchport
switchport access vlan 102
switchport mode access
但该端口是下连的一台交换机连接,交换机的为tuimeijku。
按常规交换机之间的连接的端口应该配置为trunk。而核心交换机G1/36这个端口是配置是acces vlan 102 ,不是trunk口。进一步证实如下
2.3 检查G1/36是不是TRUNK口
ghjj_center1#show int trunk n
ghjj_center1#show int trunk (显示ghjj_center交换机所有的trunk连接)
Port Mode Encapsulation Status Native vlan
Gi1/29 . 802.1q trunking 1
Gi1/30 . 802.1q trunking 1
Gi1/37 . 802.1q trunking 1
Gi1/40 . 802.1q trunking 1
Gi1/43 . 802.1q trunking 1
Gi1/44 . 802.1q trunking 1
Gi1/45 . 802.1q trunking 1
Gi1/46 . 802.1q trunking 1
Gi2/13 . 802.1q trunking 1
Gi2/14 . 802.1q trunking 1
Gi2/15 . 802.1q trunking 1
Gi2/16 . 802.1q trunking 1
Gi2/17 . 802.1q trunking 1
Gi2/18 . 802.1q trunking 1
Gi2/19 . 802.1q trunking 1
Gi2/20 . 802.1q trunking 1
Gi2/21 . 802.1q trunking 1
Port Vlans allowed . trunk
Gi1/29 1-4094
Gi1/30 1-4094
Gi1/37 1-4094
Gi1/40 1-4094
Gi1/43 1-4094
Gi1/44 1-4094
Gi1/45 1-4094
Gi1/46 1-4094
Gi2/13 1-4094
Gi2/14 1-4094
Gi2/15 1-4094
Gi2/16 1-4094
Gi2/17 1-4094
Gi2/18 1-4094
Gi2/19 1-4094
Gi2/20 1-4094
Gi2/21 1-4094
Port Vlans allowed and active in management domain
Gi1/29 1-14,16-18,20-24,30-31,40,100-103,110-112
Port Vlans allowed and active in management domain
Gi1/30 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi1/37 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi1/40 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi1/43 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi1/44 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi1/45 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi1/46 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi2/13 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi2/14 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi2/15 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi2/16 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi2/17 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi2/18 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi2/19 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi2/20 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi2/21 1-14,16-18,20-24,30-31,40,100-103,110-112
Port Vlans in spanning tree forwarding state and not pruned
Gi1/29 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi1/30 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi1/37 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi1/40 1,40
Gi1/43 1
Gi1/44 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi1/45 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi1/46 1
Gi2/13 1
Gi2/14 1,13,40
Gi2/15 none
Gi2/16 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi2/17 1-14,16-18,20-24,30-31,40,100-103,110-112
Gi2/18 none
Gi2/19 40
Gi2/20 1,40
Gi2/21 1-14,16-18,20-24,30-31,40,100-103,110-112
ghjj_center1#
ghjj_center1#
检查结果:以上并没有G1/36在核心交换机上并不是trunk口。
2.4 检查邻居交换机信息(IP,交换机型号)
检查G1/36交换机所连接的交换机的IP地址。
ghjj_center1#show cdp n g1/36 detail
-------------------------
Device ID: tuimeijiku
Entry address(es):
IP address: 10.1.126.62
Platform: cisco WS-C2950-12, Capabilities: Switch IGMP
Interface: GigabitEthernet1/36, Port ID (outgoing port): FastEthernet0/12
Holdtime : 157 sec
Version :
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA6, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Fri 21-Oct-05 01:59 by yenanh
advertisement version: 2
Protocol Hello: OUI=0x00000C, Protocol ID=0x0112; payload len=27, value=00000000FFFFFFFF010221FF0000000000000018732F0F80FF0000
VTP Management Domain: 'sxgh'
Native VLAN: 1
Duplex: full
结果:是核心交换机的G1/36与一台C2950交换机的f0/12连接,与提示的信息符合。
TELNET 邻居交换机
telnet 10.1.126.62 结果失败。
2.5 配置G1/36端口为TRUNK (处理)
ghjj_center1(config)#int g1/36
ghjj_center1(config-if)#switchport mode trunk
再次TELNET 与核心G1/36相连接的交换机,成功。
ghjj_center#telnet 10.1.126.62
ghjj_center1#10.1.126.62
Dec 28 08:43:18: %SYS-5-CONFIG_I: Configured from console by vty2 (10.1.127.115)Open
User Access Verification
Password:
Password:
tuimeijiku>en
Password:
Password:
tuimeijiku#show run
Building configuration..
结果成功:=该故障信息不再提示。