Tp-Link T1600G-28PS (TL-SG2424P) [238/754] Gi1 0 3 enable 32 auto auto no no auto n a n a lnkdwn

Tp-Link T1600G-28PS (TL-SG2424P) [238/754] Gi1 0 3 enable 32 auto auto no no auto n a n a lnkdwn
Configuration Guide 216
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 end
Return to privileged EXEC mode.
Step 6 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 gigabitEthernet 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 gigabitEthernet 1/0/3
Interface State Prio Ext-Cost Int-Cost Edge P2p Mode Role Status
----------- --------- ---- -------- -------- ---- --------- ----- ----- -------
Gi1/0/3 Enable 32 Auto Auto No No(auto) N/A N/A LnkDwn
Switch(config-if)#end
Switch#copy running-config startup-config

Содержание

Похожие устройства

Скачать