Cisco 交换机vtp中继配置 下载本文

内容发布更新时间 : 2024/5/2 21:10:22星期一 下面是文章的全部内容请认真阅读。

配置 VLAN 中继协议(VTP)

1. 在 VLAN 数据库模式下:在 Cisco IOS 软件中,您可以在 VLAN 配置模式下配置 VTP 域名、 VTP 模式和 VLAN。在 EXEC 模式下,发出以下命令以进入 VLAN 配置模式:

Router#vlan database

!--- Issue this command in privileged EXEC mode, !--- not in global configuration mode. Router(vlan)# !--- This is VLAN configuration mode.

发出以下命令以设置 VTP 域名:

Router(vlan)#vtp domain domain-name

发出此命令为了设置VTP模式:

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

发出 exit 命令以退出 VLAN 配置模式。注意: end 和 Ctrl-Z 命令在此模式下不起作用。

Router(vlan)#end

Router(vlan)#^Z

% Invalid input detected at '^' marker. Router(vlan)# Router(vlan)#exit APPLY completed. Exiting.... Router#

2. 在全局配置模式下:在 Cisco IOS 软件全局配置模式下,您可以使用 Cisco IOS 软件命令配置所有的 VTP 参数。命令格式如下:

Router(config)#vtp ?

domain Set the name of the VTP administrative domain. file Configure IFS filesystem file where VTP configuration is stored. interface Configure interface as the preferred source for the VTP IP updater

address.

mode Configure VTP device mode

password Set the password for the VTP administrative domain pruning Set the administrative domain to permit pruning version Set the administrative domain to VTP version

3. 发出以下命令以监控 VTP 操作和状态:

Router#show vtp status

Router#show vtp counters

Catalyst 4500/4000、5500/5000 或 6500/6000 系列 CatOS

完成这些步骤:

1. 发出以下命令以设置域名:

set vtp domain name

注意: 配置新交换机时,应该先配置 VTP 域名,然后再创建任何非默认的 VLAN。 2. 发出以下命令以设置模式:

set vtp mode [server | client | transparent]

3. 发出以下命令以监控 VTP 操作和状态:

show vtp domain

show vtp statistics

Catalyst 2900XL、3500XL、2950 和 3550

完成这些步骤:

1. 在 VLAN 数据库模式下发出以下命令:注意: 这类似于运行 Cisco IOS 软件的 Cisco 6500 系列交换机的方法。

vtp [client | server | transparent] vtp domain name

2. 在启用模式下,发出以下命令以监控 VTP 操作:

show vtp counters show vtp status

注意: 安装了 Cisco IOS 软件 11.2(8)SA4 及更高版本的 Catalyst 2900XL 系列交换机支持 VTP 协议。Cisco IOS 软件 11.2(8)SA3 及更早版本代码不支持 Catalyst 2900XL 系列交换机上的 VTP 协议。

Catalyst Express 500 系列交换机

Catalyst Express 500 系列交换机仅支持 VTP 透明模式。当前不支持 VTP 客户端或 VTP 服务器模式。用户必须手动配置在交换机上使用的所有 VLAN。

打开 Switch Management,选择 Configure > VLAN > Create,并填写可用字段以在 Catalyst Express 500 系列交换机上配置 VLAN。

有关详细信息,请参阅自定义的创建、修改和删除 VLAN 部分。