资源描述
实验报告—vtp 配置
一、 实验要求
如图
二 、配置交换机的域名及模式
以switch0 为例
1】 先设置域名为ts227
Switch(config)#vtp domain ts227
Changing VTP domain name from NULL to ts227
2】设置模式为 server
Switch(config)#vtp mode server (client 、 transparent)
Device mode already VTP SERVER.
(同理设置 switch 1、2) (1为透明模式 2为客户模式)
三、 配置服务器 添加 vlan 2、3 (则客户模式的交换机自动学习vlan 里的配置)
Switch(config)#vlan 2
Switch(config-vlan)#ex
Switch(config)#vlan 3
检查 vlan
Switch#show vlan b
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/24
2 VLAN0002 active
3 VLAN0003 active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
Switch#
则在客户机中 查看 也可以学习的到 (此时 客户模式的交换机是不允许建vlan 的)
会报告消息 为
Switch(config)#vlan 23
VTP VLAN configuration not allowed when device is in CLIENT mode.
给switch 1 透明模式 添加vlan 4 、5(此模式只在本地生效不学习 vtp消息 传播消息)
四、给服务器设置vtp 密码
(好处是即使客户模式的交换机不能在学习到 服务器中vlan的配置)
Switch(config)#vtp password 123
Setting device VLAN database password to 123
(只有客户端在配置与服务器相同的密码后才可继续学习了)
五、 在客户模式的交换机里 开启修剪
Switch(config)#vtp prunning(由于版本不支持 可能没有此命令)
六 、修改版本号
Switch(config)#vtp version 1
VTP mode already in V1
七、 查看vtp 的配置信息.
Switch#show vtp status
VTP Version : 2
Configuration Revision : 2
Maximum VLANs supported locally : 255
Number of existing VLANs : 7
VTP Operating Mode : Server
VTP Domain Name : ts227
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x0D 0xCC 0xFB 0x19 0xEE 0x2D 0x7B 0x49
Configuration last modified by 0.0.0.0 at 3-1-93 01:02:27
Local updater ID is 0.0.0.0 (no valid interface found)
展开阅读全文