Ativando o domínio vtp
Switch(config)#vtp domain CISCO
Switch(config)#vtp password CCNP
vtp domain CISCO
vtp password CCNP
Switch#sh vtp status
VTP Version capable : 1 to 3
VTP version running : 1
VTP Domain Name :
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : aabb.cc80.4000
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)
Feature VLAN:
--------------
VTP Operating Mode : Server
Maximum VLANs supported locally : 1005
Number of existing VLANs : 5
Configuration Revision : 0
MD5 digest : 0x57 0xCD 0x40 0x65 0x63 0x59 0x47 0xBD
0x56 0x9D 0x4A 0x3E 0xA5 0x69 0x35 0xBC
Switch#sh vtp status
*Jul 5 23:58:01.158: %SYS-5-CONFIG_I: Configured from console by console
Switch#sh vtp status
VTP Version capable : 1 to 3
VTP version running : 1
VTP Domain Name : CISCO
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : aabb.cc80.4000
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)
Feature VLAN:
--------------
VTP Operating Mode : Server
Maximum VLANs supported locally : 1005
Number of existing VLANs : 5
Configuration Revision : 0
MD5 digest : 0x30 0x98 0x2F 0x87 0x2D 0x22 0x4D 0xD9
0xEE 0xE1 0x13 0x51 0x62 0xB8 0x96 0x64
r1 e r2 auto
configurando os trunks, e configurando o encapsulamento via dot1q
conf t
interface range eth0/0, eth0/2, eth0/1
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#switchport trunk
Criando vlans no r1 e definindo-o como root da topologia e r2 como secundário do STP
Switch#CONF T
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# vlan 100
Switch(config-vlan)#name USUARIOS
Switch(config-vlan)#EXIT
Switch(config)# vlan 200
Switch(config-vlan)#name RH
Switch(config-vlan)#EXIT
Switch(config)#spanning-tree vlan 100 root primary
Switch(config)#spanning-tree vlan 200 root primary
Switch(config)#
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#spanning-tree vlan 100 root secondary
Switch(config)#spanning-tree vlan 200 root secondary
SWITCH01#sh spanning-tree vlan 200
VLAN0200
Spanning tree enabled protocol rstp
Root ID Priority 24776
Address aabb.cc00.1000
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 24776 (priority 24576 sys-id-ext 200)
Address aabb.cc00.1000
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Et0/1 Desg FWD 100 128.2 Shr
Et0/2 Desg FWD 100 128.3 Shr
SWITCH01#sh spanning-tree vlan 100
VLAN0100
Spanning tree enabled protocol rstp
Root ID Priority 24676
Address aabb.cc00.1000
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 24676 (priority 24576 sys-id-ext 100)
Address aabb.cc00.1000
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Et0/1 Desg FWD 100 128.2 Shr
Et0/2 Desg FWD 100 128.3 Shr
SWITCH01#