首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在两个VTP服务器之间共享VTP信息

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

Network Engineering用户
提问于 2018-05-10 23:57:17
回答 1查看 713关注 0票数 1

I试图在两个vtp服务器之间共享信息--这些vtp服务器使用Etherchannel连接--我在服务器模式下配置了这两个服务器,使用相同的域和密码,但正确的一个没有从VTP服务器1(左)获得信息,Etherchannel正在工作,它们的所有端口都处于主干模式。

我没注意到我是不是漏了什么东西。

VTP服务器1(左)配置

代码语言:javascript
复制
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(右)配置

代码语言:javascript
复制
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状态

代码语言:javascript
复制
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状态

代码语言:javascript
复制
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

谢谢。

EN

回答 1

Network Engineering用户

回答已采纳

发布于 2018-05-11 00:37:13

好的。你有几个问题。

首先,您需要确保通道是一个主干。VTP只在树干上工作。在这两个开关上:

代码语言:javascript
复制
interface Port-channel1
 switchport mode trunk
!

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

开关1:

代码语言:javascript
复制
MD5 digest                      : 0x4A 0xB4 0xC6 0x2E 0xB9 0x70 0x21 0x58 

开关2:

代码语言:javascript
复制
MD5 digest                      : 0x24 0x66 0x6C 0x45 0x8F 0xDE 0x06 0xEB

您可以使用show VTP password命令验证每个交换机上的密码。请记住,密码开头或结尾处的空格实际上是密码的一部分,即使您看不到它。确保密码相同的最佳方法是从记事本(或其他文本编辑器)复制密码文本,并将其粘贴到两个开关上,以便您知道密码文本是否相同。当两种密码都具有相同的密码时,MD5哈希将匹配。

票数 2
EN
页面原文内容由Network Engineering提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://networkengineering.stackexchange.com/questions/50451

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档