无法建立交换机连接

网络工程 思科 转变 交换 虚拟机 切换模式
2022-02-06 04:47:27

我试图在站点中建立一个旧交换机,但 VTP 无法正常工作。

Show cdp neighbor 

使用此命令获得下一个开关。

型号:WS-C2960-24TC-L 版本:12.2(53)SE2

我尝试添加管理 VLAN 并为其提供 IP 地址。

如何调试连接?

version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname Switch
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$49nA$xGugzBL.MidsIvXB.
!
no aaa new-model
system mtu routing 1500
authentication mac-move permit
ip subnet-zero
!
spanning-tree mode pvst
spanning-tree etherchannel guard misconfig
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
interface FastEthernet0/1
!
interface FastEthernet0/24
switchport mode trunk
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2 
!
interface Vlan1
no ip address
no ip route-cache
!
interface Vlan150
ip address 10.10.150.50 255.255.255.0
no ip route-cache
!
ip default-gateway 10.10.150.1
ip http server
ip http secure-server
ip sla enable reaction-alerts
!
line con 0
line vty 0 4
password 7 08974A351F8G5K483956
login
line vty 5 15
login
!
end

我尝试了另一个开关,它工作正常。

Switch#sh vtp sta
VTP Version capable             : 1 to 3
VTP version running             : 1
VTP Domain Name                 : ABC
VTP Pruning Mode                : Disabled
VTP Traps Generation            : Disabled
Device ID                       : xxxx.xxxx.xxxx
Configuration last modified by 0.0.0.0 at 3-1-93 00:04:03

Feature VLAN:
--------------
VTP Operating Mode                : Client
Maximum VLANs supported locally   : 255
Number of existing VLANs          : 6
Configuration Revision            : 1
MD5 digest                        : 0xB9 0x07 0xEE 0xE3 0x27 0xEC 0xF7 0x33
                                    0x98 0x81 0x0A 0xA3 0x32 0xE9 0xD2 0xDF
  • 试图重置开关
  • 更换另一个开关,它工作正常。

工作开关 VTP STATUS

SW04#sh vtp sta
VTP Version capable             : 1 to 3
VTP version running             : 1
VTP Domain Name                 : ABC
VTP Pruning Mode                : Disabled
VTP Traps Generation            : Disabled
Device ID                       : xxxx.xxxx.xxxx
Configuration last modified by xxx.xxx.xxx.xxx at 5-17-16 09:33:54

Feature VLAN:
--------------
VTP Operating Mode                : Client
Maximum VLANs supported locally   : 1005
Number of existing VLANs          : 12
Configuration Revision            : 16
MD5 digest                        : 0x39 0x28 0x36 0x47 0xDE 0xDC 0xBE 0x26
                                    0x6E 0x16 0xD9 0x56 0xCC 0x4D 0xF8 0x7B
2个回答

您的问题是 VTP 密码不匹配。

在非工作开关上:

MD5 digest                        : 0xB9 0x07 0xEE 0xE3 0x27 0xEC 0xF7 0x33
                                    0x98 0x81 0x0A 0xA3 0x32 0xE9 0xD2 0xDF

在工作开关上:

MD5 digest                        : 0x39 0x28 0x36 0x47 0xDE 0xDC 0xBE 0x26
                                    0x6E 0x16 0xD9 0x56 0xCC 0x4D 0xF8 0x7B

show vtp password您可以通过在每个交换机上使用命令来验证这一点。

VTP 配置指南

本节为在网络中配置 VTP 提供了一些指导。

  • 所有交换机都具有相同的 VTP 域名,除非网络设计坚持使用不同的 VTP 域。注意:中继协商不能跨 VTP 域工作。有关详细信息,请参阅 VLAN 中继协议 (VTP) 故障排除的 VTP 域之间的数据流量阻塞部分。

  • VTP 域中的所有交换机必须运行相同的 VTP 版本。VTP 域中的所有交换机都具有相同的 VTP 密码(如果有)。

  • 所有 VTP 服务器交换机都应该具有相同的配置
    修订号,并且它也应该是域中最高的。

  • 当您将交换机的 VTP 模式从透明移动到服务器时,
    在 VTP 透明交换机上配置的 VLAN 应该存在于服务器交换机上。

    switch#vlan database

    switch(vlan)#vtp domain domain-name

    switch(vlan)#vtp {client | server | transparent}