VTP域名配置

网络工程 虚拟机
2021-07-18 20:01:45

我相信配置 VTP 域的唯一方法是通过 CLI。无论如何,当我们配置从交换机 A(位于 VTP 域(例如 cisco)中)到另一个不属于任何 VTP 域的交换机 B 的中继时,我听说过。,第二个交换机自动分配给交换机 A(VTP 域),是这样吗?我在任何地方都找不到这个。,

2个回答

这是对的!

当 Cisco 实施 VTP 时,正是出于这个原因,他们留下了一个“空”值。如果具有空域的 VTP 客户端或服务器接收到填充了域的 VTP 消息,它将假定接收到的消息的域并将适用的 VLAN 添加到其数据库中。

您可以在这里找到更多信息:

Catalyst 6500 系列交换机 Cisco IOS 软件配置指南 - 配置 VTP

这是真的。第二个交换机将从第一个交换机分配域。

一个快速测试来证明它。

快速输出: running-configs 没有 vtp 配置。

!
Switch#show run
Building configuration...
.
.
.
hostname Switch
!
!
!
!
spanning-tree mode pvst
!
interface FastEthernet0/1
!
.
.
.
!
interface Vlan1
 no ip address
 shutdown
!
!
line con 0
!
line vty 0 4
 login
line vty 5 15
 login
!
!
end


Switch#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                 : HK***
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0xC2 0x79 0x35 0xAE 0x48 0x96 0xB9 0xE0 
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)
Switch#