在两个 VTP 服务器之间共享 VTP 信息

网络工程 思科 局域网 树干 以太通道 虚拟机
2022-02-03 04:45:10

我试图在两个 vtp 服务器之间共享信息,这些 vtp 服务器是使用 Etherchannel 连接的他们所有的端口都已经处于中继模式

我无法注意到我是否遗漏了什么。

VTP 服务器 1(左)配置

S1#show running-config 
Building configuration...

Current configuration : 913 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname S1
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface Port-channel1
!
interface GigabitEthernet0/1
!
interface GigabitEthernet1/1
 switchport mode trunk
 channel-group 1 mode active
!
interface GigabitEthernet2/1
 switchport mode trunk
 channel-group 1 mode active
!
interface GigabitEthernet3/1
 switchport mode trunk
 channel-group 1 mode active
!
interface GigabitEthernet4/1
 switchport mode trunk
 channel-group 1 mode active
!
interface GigabitEthernet5/1
 switchport mode trunk
!
interface GigabitEthernet6/1
 switchport mode trunk
!
interface GigabitEthernet7/1
!
interface GigabitEthernet8/1
!
interface GigabitEthernet9/1
!
interface Vlan1
 no ip address
 shutdown
!
!
!
!
line con 0
!
line vty 0 4
 login
line vty 5 15
 login
!
!
!
end

VTP 服务器 2(右)配置

S2#show running-config 
Building configuration...

Current configuration : 867 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname S2
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface Port-channel1
!
interface GigabitEthernet0/1
!
interface GigabitEthernet1/1
 switchport mode trunk
 channel-group 1 mode active
!
interface GigabitEthernet2/1
 switchport mode trunk
 channel-group 1 mode active
!
interface GigabitEthernet3/1
 switchport mode trunk
 channel-group 1 mode active
!
interface GigabitEthernet4/1
 switchport mode trunk
 channel-group 1 mode active
!
interface GigabitEthernet5/1
!
interface GigabitEthernet6/1
!
interface GigabitEthernet7/1
!
interface GigabitEthernet8/1
!
interface GigabitEthernet9/1
!
interface Vlan1
 no ip address
 shutdown
!
!
!
!
line con 0
!
line vty 0 4
 login
line vty 5 15
 login
!
!
!
end

VTP 服务器 1 显示 VTP 状态

S1#show vtp status 
VTP Version                     : 2
Configuration Revision          : 0
Maximum VLANs supported locally : 255
Number of existing VLANs        : 11
VTP Operating Mode              : Server
VTP Domain Name                 : ccna
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0x4A 0xB4 0xC6 0x2E 0xB9 0x70 0x21 0x58 
Configuration last modified by 0.0.0.0 at 3-1-93 00:07:42
Local updater ID is 0.0.0.0 (no valid interface found)

VTP 服务器 2 显示 VTP 状态

S2#show vtp status
VTP Version                     : 2
Configuration Revision          : 0
Maximum VLANs supported locally : 255
Number of existing VLANs        : 5
VTP Operating Mode              : Server
VTP Domain Name                 : ccna
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0x24 0x66 0x6C 0x45 0x8F 0xDE 0x06 0xEB 
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Local updater ID is 0.0.0.0 (no valid interface found

这是我的环境

谢谢你。

1个回答

好的。你有几个问题。

首先,您需要确保通道是中继。VTP 仅适用于中继。在两个开关上:

interface Port-channel1
 switchport mode trunk
!

接下来,您在两台交换机上确实没有相同的 VTP 密码。您可以这样说,因为每个交换机上的 MD5 哈希值都不同:

开关 1:

MD5 digest                      : 0x4A 0xB4 0xC6 0x2E 0xB9 0x70 0x21 0x58 

开关 2:

MD5 digest                      : 0x24 0x66 0x6C 0x45 0x8F 0xDE 0x06 0xEB

show VTP password您可以使用该命令验证每个交换机上的密码。请记住,密码开头或结尾的空格之类的内容实际上算作密码的一部分,即使您看不到它。确保密码相同的最佳方法是从记事本(或任何文本编辑器)复制密码文本,并将其粘贴到两个开关上,以便您确定它是相同的。如果两者的密码相同,则 MD5 哈希值将匹配。