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

Spanning tree principle

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

Share

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

What is a spanning tree?

# spanning tree is generally used in redundant links, that is, in a network, in order to prevent physical failure of the link, the loop is logically disconnected

/ / if there are no redundant links in a network, there will be no loops and spanning trees will not be used.

Definition: in a redundant link, in order to prevent broadcast storms, open the loop

# function: in a switched network, in the case of redundant links, the forwarding of layer 2 logical loops is prevented

The working process of 2stp

# determine the switch role

Determine the port role

Determine the port statu

# the roles of the switch are as follows:

# switches: one and only one in the entire network

Non-root switch: the remaining switches are non-root switch

# determine the role of the port

# root port: on a non-root switch, the nearest port to the root switch is the root port

Designated port: all ports on the root switch are designated ports

Non-designated port: all other ports are non-designated port

Election principle: usually compare priority first. If the priority is the same, then compare mac, / / priority and mac address. The smaller the value, the better.

Non-designated ports are subdivided into:

Alternate port

Backup port

The status of # port is:

Down

Listening

Learning

Forwarding

Blocking

# Type of spanning tree:

# stp

Rstp

Mstp

# Note: Cisco's spanning tree is a vlan, a tree, while Huawei's is a switch and a tree

However, Huawei's switch can create an area, create an instance in the area, and then set the priority to the instance / / set the priority of the instance, which is equivalent to a vlan and a tree in Cisco.

# examples:

If I want to do vlan 10, vlan 20 as the primary root and vlan30,vlan40 as the secondary root / / Huawei

# Prime Minister creates vlan 10, vlan 20, vlan 30 vlan 40 on the switch

# and add the corresponding port to the corresponding vlan / / omit

# create an area

Stp religon-configuration

Religon-name test / / give the created area a name

Instance 1 vlan10 vlan20 / / create instance 1, and add vlan10 and vlan20 to the instance

Active religon-configuration / / Activation

Stp instance 1 prirority 0 / / set priority to the instance-equivalent to setting priority for vlan within Cisco

# above is Huawei's switch settings spanning tree

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