Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed introduction of MSTP protocol

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Overview of MSTP

MSTP is a multi-spanning tree protocol, which allows multiple spanning trees to run in a switching environment, each spanning tree is called an instance. MSTP prunes the routing loop network into a loop-free tree network to avoid broadcast storms. At the same time, it also provides multiple redundant paths for data forwarding to achieve load balancing of VLAN data in the process of data forwarding. MSTP is also compatible with STP and RSTP.

The basic principle of MSTP

(1) the network level of MSTP

A layer 2 switching network can be divided into multiple MSTI domains, each spanning tree domain can be divided into multiple MST domains, and multiple MST domains can be mapped in each instance.

(2) MST domain

MST domain is a multi-spanning tree domain, which is composed of network segments between multiple switches in a local area network. there can be multiple MST domains in a local area network, and the MST domains are physically directly or indirectly connected.

(3) MSTI

Multiple MSTI,MSTI can be run in a MSTI domain independently of each other, and MSTI can correspond to one or more VLAN, but a VLAN can only correspond to one MSTI.

(4) Port role

The main roles in MSTP are root port, designated port, backup port, backup port and edge port. Except for edge port, other port roles are involved in the calculation of MSTP.

(5) Port status of MSTP

There are three main types:

Forwarding: forwarding statu

Learning: learning statu

Discarding: blocking statu

The following is an experimental case study.

The gateways of the two clients are the IP of two ports of the router.

1. Configure the IP address of the client and router R1 as follows

two。 Configure VLAN and Trunk

The SW1 configuration is as follows:

S2 is configured as follows:

S3 is configured as follows:

3. Configure MSTP

[S1] stp mode mstp / / configure the switch to MSTP mode

[S1] stp region-configuration / / enter MSTP configuration mode

[S1-mst-region] region-name asd / / configure the domain name as asd

[S1-mst-region] revision-level 1 / / configuration version level 1

[S1-mst-region] instance 1 vlan10 / / add vlan10 to instance 1

[S1-mst-region] instance 2 vlan20 / / add vlan20 to instance 2

[S1-mst-region] active region-configuration / / Activation configuration

[S1-mst-region] quit

[S1] stp instance 1 root perimary / / configure this switch as the primary root of instance 1

[S2] stp instance 2 root secondary / / configure this switch as the backup root of instance 2

S2 is configured as follows

R3 is configured as follows:

4. Verification

Use the display stp brief command on S3 to view STP interface role and status information

You can also use pc1 to access pc2

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report