mac

193
Switch(config)#interface ethernet 1/2
Switch(Config-If-Ethernet1/2)#spanning-tree mst 0 rootguard
Switch(Config-If-Ethernet1/2)#
6.1.25 spanning-tree portfast
Command: spanning-tree portfast [bpdufilter | bpduguard] [recovery <30-3600>]
no spanning-tree portfast
Function: Set the current port as boundary port, and BPDU filterBPDU guard as
specified mode or default mode; the command no spanning-tree portfast sets the
current port as non-boundary port.
Parameter: bpdufilter: configure the border port mode as BPDU filter
bpduguard: configure the border port mode as BPDU guard
recovery: configure the border port can be recovered automatically after
implement bpduguard violation operation
<30-3600>: the recovery time, do not recover it by default
Command mode: Port Mode
Default: All the ports are non-boundary ports by default when enabling MSTP.
Usage Guide: When a port is set to be a boundary port, the port converts its status from
discarding to forwarding without bearing forward delay. Once the boundary port receives
the BPDU, the port becomes a non-boundary port.
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)#
6.1.26 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-priorityrestores
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