
19-114
Example:
Configure the border port mode as BPDU guard, the recovery time as 60s.
Switch(config)#interface ethernet 1/2
Switch(Config-If-Ethernet1/2)#spanning-tree portfast bpduguard recovery 60
Switch(Config-If-Ethernet1/2)#
19.1.27 spanning-tree port-priority
Command:
spanning-tree port-priority
<port-priority>
no spanning-tree port-priority
Function:
Set the port priority; the command “
no spanning-tree port-priority
” restores the default setting.
Parameter:
<port-priority>
sets port priority. The valid range is from 0 to 240. The value should be the multiples of 16, such as 0,
16, 32, 48…240.
Command mode:
Port Mode
Default:
The default port priority is 32768.
Usage Guide:
By setting the port priority to designated port. The lower the value of the port priority is, the higher the priority is.
Example:
Set the port priority as 4096 on the port 1.
Switch(Config-If-Ethernet1/1)#spanning-tree port-priority 4096