实验一、配置STP与VTP
环境:三台交换机,形成一个全互连结构,sw3为2950,sw1和sw2为2900xl;
要求:设置sw3为VTP server,设置sw1和sw2为VTP client,域名为cisco,密码为:ciscterface fa0/23
sw2(config-if)#switchport trunk encapsulation dot1q
sw2(config-if)#switchport mode trunk
sw2(config)#interface fa0/24
sw2(config-if)#switchport trunk encapsulation dot1q
sw2(config-if)#switchport mode trunk
步骤三、测试vtp状态及创建vlan
sw3的状态:
sw3#show vtp statusà显示vtp状态
VTP Version : 2
Configuration Revision : 0à配置修订号
Maximum VLANs supported locally : 254
Number of existing VLANs : 5
VTP Operating Mode :server àvtp模式
VTP Domain Name : ciscoàvtp域名
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x3F 0x17 0xC8 0xB8 0x5A 0xE3 0x01 0x66
Configuration last modified by at 0-0-00 00:00:00
创建vlan:
sw3(config)#vlan 10à创建VLAN10
sw3(config-vlan)#name aaà命名为aa
sw3(config-vlan)#exità应用配置
sw3(config)#vlan 20à创建VLAN20
sw3(config-vlan)#name bbà命名为bb
sw3(config-vlan)#exit
sw3(config)#
sw3的状态:
sw3#show vtp statusà在sw3显示vtp的状态
VTP Version : 2
Configuration Revision : 2àserver的修订号
Maximum VLANs supported locally : 254
Number of existing VLANs : 7àvlan也已经增加
VTP Operating Mode : server
VTP Domain Nam
CCNA实验配置VTP与STP 来自淘豆网m.daumloan.com转载请标明出处.