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 understanding of Cisco Packet Tracert

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

Experimental environment:

Experimental purpose:

1. Simply describe the spanning tree.

2. Observe which switch belongs to the root bridge.

3. Observe the switch that is not the root bridge, which port is "blocked".

4. Set the server port to spanning-tree protfast.

5. Set Switch2 as the root bridge; modify the priority of the spanning tree, the fewer the number, the higher the priority.

Procedure:

1. Simply describe the spanning tree.

A: the default CISCO switch enables spanning Tree Protocol and automatically calculates the root bridge, which port should be disabled, and so on.

2. Observe which switch belongs to the root bridge.

3. Observe the switch that is not the root bridge, which port is "blocked".

4. Set the fa0/4 of the server to spanning-tree protfast.

CoreSW#conf t

Enter configuration commands, one per line. End with CNTL/Z.

CoreSW (config) # int fa0/4

CoreSW (config-if) # spanning-tree portfast

% Warning: portfast should only be enabled on ports connected to a single

Host. Connecting hubs, concentrators, switches, bridges, etc... To this

Interface when portfast is enabled, can cause temporary bridging loops.

Use with CAUTION

% Portfast has been configured on FastEthernet0/4 but will only

Have effect when the interface is in a non-trunking mode.

The reasons for setting protfast are as follows:

By default, after the switch starts, it takes at least 30 seconds for the port to provide data forwarding to the user because of STP.

For a

There is no need for STP calculation when the port of the host or server is connected, because even if such a port is directly

Forwarding data does not create a loop, and 30 seconds is long for hosts or servers that need to pass data immediately, so such ports can be configured to skip STP calculations.

5. Set Switch2 as the root bridge; modify the priority of the spanning tree, the fewer the number, the higher the priority.

Switch (config) # spanning-tree vlan 1 priority 4096

Switch (config) # exit

Switch#show spanning-tree

VLAN0001

Spanning tree enabled protocol ieee

Root ID Priority 4097

Address 0090.214B.DA35

This bridge is the root

Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 4097 (priority 4096 sys-id-ext 1)

Address 0090.214B.DA35

Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Aging Time 20

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

Network Security

Wechat

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

12
Report