TP-Link T1500-28TC TL-SL2428 T1500-28TCUN V1 Configuration Guide - Page 185
Switchconfig-if#spanning-tree, config-if#show spanning-tree interface fastEthernet
View all TP-Link T1500-28TC TL-SL2428 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 185 highlights
Configuring Spanning Tree STP/RSTP Configurations Step 4 spanning-tree common-config [ port-priority pri ] [ ext-cost ext-cost ] [ portfast { enable | disable }] [ point-to-point { auto | open | close }] Configure STP/RSTP parameters on the desired port . pri: Specify the value of port priority. The valid values are from 0 to 240, which are divisible by 16, and the default value is 128. The port with the lower value has the higher priority. In the same condition, the port with the highest priority will be elected as the root port. ext-cost: Specify the value of external path cost. The valid values are from 0 to 2000000. It is 0 by default, which means the path cost is automatically calculated according to the port's link speed. External path cost is usually a parameter configured in MSTP, which indicates the path cost of the port in CST. In STP/RSTP, it indicates the path cost of the port in the spanning tree. The port with the lowest external root path cost will be elected as the root port. portfast { enable | disable }: Enable or disable the edge Port. By default, it is disabled. The edge port can transit its state from blocking to forwarding directly. If the port is connected to an end device, like a PC, it is recommended to set the port as an edge port. point-to-point { auto | open | close }: Specify the P2P link status, with auto, open and close options. By default, it is auto. If the two ports in the P2P link are a root port and a designated port, they can transit their states to forwarding directly. Step 5 show spanning-tree interface [ fastEthernet port | gigabitEthernet port | port-channel lagid ] [ edge | ext-cost | int-cost | mode | p2p | priority | role | state | status ] (Optional) View the information of all ports or a specified port. port: Specify the port number. lagid: Specify the ID of the LAG. ext-cost | int-cost | mode | p2p | priority | role | state | status: Display the specified information. Step 6 end Return to privileged EXEC mode. Step 7 copy running-config startup-config Save the settings in the configuration file. The following example shows how to enable spanning tree function on port 1/0/3 and configure the port priority as 32 : Switch#configure Switch(config)#interface fastEthernet 1/0/3 Switch(config-if)#spanning-tree Switch(config-if)#spanning-tree common-config port-priority 32 Switch(config-if)#show spanning-tree interface fastEthernet 1/0/3 Configuration Guide 164