I. Mô hình
1. Mô hình
2. Yêu cầu:
- Đảm bảo tất cả các SW chạy Per VLAN Rapid Spanning Tree
- Tạo VLAN 10,20,30 trên các SW
- Thay đổi port-priority để e0/3 của SW3 được ưu tiên kết nối đến root-bridge của VLAN 10
- Đảm bảo e1/0 trên các SW được coi là một edge port for PVRST
II. Triển khai
1. Cấu hình
- Enable tính năng PVRST, tạo VLAN, port trunk và root bridge
- Trên SW1
- Trên SW2
- Trên SW3
2. Kiểm tra
- SW1 làm root-bridge cho VLAN 10
- Tương tự SW2 làm root bridge cho VLAN 20
- SW3 làm root-bridge cho VLAN 30
1. Mô hình
2. Yêu cầu:
- Đảm bảo tất cả các SW chạy Per VLAN Rapid Spanning Tree
- Tạo VLAN 10,20,30 trên các SW
- SW1 làm root-bridge cho VLAN 10
- SW2 làm root-bridge cho VLAN 20
- SW3 làm root-bridge cho VLAN 30
- Thay đổi port-priority để e0/3 của SW3 được ưu tiên kết nối đến root-bridge của VLAN 10
- Đảm bảo e1/0 trên các SW được coi là một edge port for PVRST
II. Triển khai
1. Cấu hình
- Enable tính năng PVRST, tạo VLAN, port trunk và root bridge
- Trên SW1
SW1(config)#spanning-tree mode rapid-pvst SW1(config-vlan)#vlan 10 SW1(config-vlan)#vlan 20 SW1(config-vlan)#vlan 30 SW1(config-if)#int e0/0 SW1(config-if)#switchport trunk encapsulation dot1q SW1(config-if)#switchport mode trunk SW1(config-if)#int e0/1 SW1(config-if)#switchport trunk encapsulation dot1q SW1(config-if)#switchport mode trunk SW1(config-if)#int e0/2 SW1(config-if)#switchport trunk encapsulation dot1q SW1(config-if)#switchport mode trunk SW1(config-if)#int e0/3 SW1(config-if)#switchport trunk encapsulation dot1q SW1(config-if)#switchport mode trunk SW1(config)#spanning-tree vlan 10 root primary |
SW2(config)#spanning-tree mode rapid-pvst SW2(config-vlan)#vlan 10 SW2(config-vlan)#vlan 20 SW2(config-vlan)#vlan 30 SW2(config-if)#int e0/0 SW2(config-if)#switchport trunk encapsulation dot1q SW2(config-if)#switchport mode trunk SW2(config-if)#int e0/1 SW2(config-if)#switchport trunk encapsulation dot1q SW2(config-if)#switchport mode trunk SW2(config-if)#int e1/2 SW2(config-if)#switchport trunk encapsulation dot1q SW2(config-if)#switchport mode trunk SW2(config-if)#int e1/3 SW2(config-if)#switchport trunk encapsulation dot1q SW2(config-if)#switchport mode trunk SW2(config)#spanning-tree vlan 20 root primary |
SW3(config)#spanning-tree mode rapid-pvst SW3(config-vlan)#vlan 10 SW3(config-vlan)#vlan 20 SW3(config-vlan)#vlan 30 SW3(config-if)#int e0/2 SW3(config-if)#switchport trunk encapsulation dot1q SW3(config-if)#switchport mode trunk SW3(config-if)#int e0/3 SW3(config-if)#switchport trunk encapsulation dot1q SW3(config-if)#switchport mode trunk SW3(config-if)#int e1/2 SW3(config-if)#switchport trunk encapsulation dot1q SW3(config-if)#switchport mode trunk SW3(config-if)#int e1/3 SW3(config-if)#switchport trunk encapsulation dot1q SW3(config-if)#switchport mode trunk SW3(config)#spanning-tree vlan 30 root primary |
- SW1 làm root-bridge cho VLAN 10
Code:
SW1#[B]sh spanning-tree vlan 10[/B]
VLAN0010
[I][COLOR=#ff0000]Spanning tree enabled protocol rstp[/COLOR][/I]
Root ID Priority 24586
Address aabb.cc00.0100
[COLOR=#ff0000]This bridge is the root[/COLOR]
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 24586 (priority 24576 sys-id-ext 10)
Address aabb.cc00.0100
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Et0/0 Desg FWD 100 128.1 Shr
Et0/1 Desg FWD 100 128.2 Shr
Et0/2 Desg FWD 100 128.3 Shr
Et0/3 Desg FWD 100 128.4 Shr
Code:
SW2#[B]sh spanning-tree vlan 20[/B]
[COLOR=#ff0000]VLAN0020[/COLOR]
Spanning tree enabled protocol [I][COLOR=#FF0000]rstp[/COLOR][/I]
Root ID Priority 24596
Address aabb.cc00.0200
[COLOR=#ff0000] This bridge is the root[/COLOR]
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 24596 (priority 24576 sys-id-ext 20)
Address aabb.cc00.0200
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Et0/0 Desg FWD 100 128.1 Shr
Et0/1 Desg FWD 100 128.2 Shr
Et1/2 Desg FWD 100 128.7 Shr
Et1/3 Desg FWD 100 64.8 Shr
Code:
SW3#[B]sh spanning-tree vlan 30[/B]
[COLOR=#ff0000]VLAN0030[/COLOR]
Spanning tree enabled protocol [I][COLOR=#FF0000]rstp[/COLOR][/I]
Root ID Priority 16414
Address aabb.cc00.0300
[COLOR=#ff0000] This bridge is the root[/COLOR]
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 16414 (priority 16384 sys-id-ext 30)
Address aabb.cc00.0300
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Et0/2 Desg FWD 100 128.3 Shr
Et0/3 Desg FWD 100 128.4 Shr
Et1/2 Desg FWD 100 128.7 Shr
Et1/3 Desg FWD 100 128.8 Shr