北京北大青鳥校區(qū)學術部提供:
相關閱讀:STP與VTP實驗一
步驟三、測試vtp狀態(tài)及創(chuàng)建vlan
sw3的狀態(tài):(北大青鳥北京,北大青鳥校區(qū))
sw3#show vtp status 顯示vtp狀態(tài)
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 0.0.0.0 at 0-0-00 00:00:00
(北大青鳥北京,北大青鳥校區(qū))
創(chuàng)建vlan:
sw3(config)#vlan 10 創(chuàng)建VLAN10
sw3(config-vlan)#name aa 命名為aa
sw3(config-vlan)#exit 應用配置
sw3(config)#vlan 20 創(chuàng)建VLAN20
sw3(config-vlan)#name bb 命名為bb
sw3(config-vlan)#exit
sw3(config)#
(北大青鳥北京,北大青鳥校區(qū))
sw3的狀態(tài):
sw3#show vtp status 在sw3顯示vtp的狀態(tài)
VTP Version : 2
Configuration Revision : 2 server的修訂號
Maximum VLANs supported locally : 254
Number of existing VLANs : 7 vlan也已經(jīng)增加
VTP Operating Mode : server
VTP Domain Name : cisco
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x98 0x31 0xCF 0xA0 0xA7 0x17 0x73 0x66
Configuration last modified by 0.0.0.0 at 3-1-93 00:52:05
(北大青鳥北京,北大青鳥校區(qū))
sw2的狀態(tài):
sw2#show vtp status
VTP Version : 2
Configuration Revision : 2 已經(jīng)同步了server
Maximum VLANs supported locally : 254
Number of existing VLANs : 7
VTP Operating Mode : Client
VTP Domain Name : cisco
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x98 0x31 0xCF 0xA0 0xA7 0x17 0x73 0x66
Configuration last modified by 0.0.0.0 at 3-1-93 00:52:05
(北大青鳥北京,北大青鳥校區(qū))
sw1的vlan信息:
sw1#show vlan 顯示vlan信息
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/23, Fa0/24
10 aa active 已經(jīng)同步了vlan的信息
20 bb active
(北大青鳥北京,北大青鳥校區(qū))
步驟四、配置PVST
sw3(config)#spanning-tree vlan 1 root primary 設置為vlan1的根橋
Sw1(config)#spanning-tree vlan 10 priority 4096 設置為vlan10的根橋
Sw2(config)#spanning-tree vlan 20 priority 4096 設置為vlan20的根橋
(北大青鳥北京,北大青鳥校區(qū),未完待續(xù))