In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces how to achieve spanning Tree Protocol PVST+ to prevent line encirclement and backup lines, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to know about it.
First, the experimental requirements:
Different VLAN are interconnected. The traffic of the VLAN10 to which the PC1 belongs is forwarded through SW2, and the traffic of the VLAN20 to which the PC2 belongs is forwarded through SW3.
Second, the required equipment:
One layer 3 switching, three layer 2 switching, and two PCs
Third, technical explanation:
STP (spanning tree protocol, spanning Tree Protocol) is to adapt a ring structure into a tree structure. STP protocol is used to generate a logical tree structure by blocking some ports logically through an algorithm that exists in the physical loop network.
PVST+ Cisco private protocol, PVST+ generates a spanning tree MST for each VLAN to solve the single problem of STP.
Four: experimental topology:
Five: experimental steps:
1. Turn on all devices
two。 Optimization simulator
Select the R1 router terminal and enter it in terminal privilege mode
Close the terminal, right-click the device, select IDLE PC with *, and click OK to complete the optimization.
3. Configure VLAN10 and VLAN20 of SW1, and TRUNK port
SW1 (config) # vlan 10
SW1 (config-vlan) # vlan 20
SW1 (config-vlan) # int fa1/1
SW1 (config-if) # switchport mode access
SW1 (config-if) # switchport access vlan 10
SW1 (config-if) # int fa1/2
SW1 (config-if) # switchport mode access
SW1 (config-if) # switchport access vlan 20
SW1 (config-if) # int fa1/3
SW1 (config-if) # switchport mode trunk
SW1 (config-if) # switchport trunk encapsulation dot1q
SW1 (config-if) # int fa1/4
SW1 (config-if) # switchport mode trunk
SW1 (config-if) # switchport trunk encapsulation dot1q
4. Configure Trunk for SW2
SW2#conf t
SW2 (config) # int fa 1 Compact 1
SW2 (config-if) # switchport mode trunk
SW2 (config-if) # switchport trunk encapsulation dot1q
SW2 (config-if) # int fa1/10
SW2 (config-if) # switchport mode t
SW2 (config-if) # switchport trunk encapsulation dot1q
5. Configure PVST+ in SW2
SW2 (config) # vlan 10
SW2 (config) # vlan 20
SW2 (config-vlan) # ex
SW2 (config) # spanning-tree vlan 10
W2 (config) # spanning-tree vlan 10 root primary
6. View PVST+
SW2#show spanning-tree vlan 10
7. Configure PC IP address
8. Configure PVST+ and trunk port of SW3
SW3#conf t
SW3 (config) # vlan 10
SW3 (config-vlan) # vlan 20
SW3 (config-vlan) # int fa 1 Compact 5
SW3 (config-if) # switchport mode trunk
SW3 (config-if) # switchport trunk encapsulation dot1q
SW3 (config-if) # int fa 1 Compact 10
SW3 (config-if) # switchport mode trunk
SW3 (config-if) # switchport trunk encapsulation dot1q
SW3 (config) # spanning-tree vlan 20 root primary
9. Configure M1 layer 3 switch to terminate VLAN
M1#conf t
M1 (config) # int range fa1/1-2
M1 (config-if-range) # switchport mode trunk
M1 (config-if-range) # switchport trunk encapsulation dot1q
M1 (config) # vlan 10
M1 (config-vlan) # vlan 20
M1 (config-vlan) # int vlan 10
M1 (config-if) # ip add 192.168.10.1 255.255.255.0
M1 (config-if) # no shut
M1 (config-if) # int vlan 20
M1 (config-if) # ip add 192.168.20.1 255.255.255.0
M1 (config-if) # no shut
10. Verification
Before the Shut interface
In the Shut interface
After Shut interface
Thank you for reading this article carefully. I hope the article "how to implement spanning Tree Protocol PVST+ to prevent line surround and backup lines" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.