Syntax:
Specifies that spanning tree will run in MSTP (default) or RPVST+ mode.
To view Mode, use the
show run
command. This will eliminate confusion if there is an RPVST configuration but MSTP is running. This will lead to a change in the existing factory default setting.RPVST+ parameters can be configured even if the mode is MSTP and vice versa. This command does not enable/disable spanning tree. It sets the mode which is operational once spanning tree is enabled using
spanning-tree enable
.The
no
form of the command changes the spanning tree mode to the default mode (MSTP)
Syntax:
Creates a unique bridge identifier for each VLAN by adding the VLAN ID (vid) value to the priority field of the bridge identifier in every RPVST+ BPDU.
Syntax
Command enables/disables event logging for port-block events.
[vlan <vid-list>]
Syntax:
Causes the switch to ignore per-VLAN ID inconsistencies when the ports on both ends of a point-to-point link are untagged members of different VLANs, thus allowing RPVST+ to run on the mismatched links. On a given switch, affects all ports belonging to VLANs on which RPVST+ is enabled. See Allowing traffic on VLAN ID (PVID) mismatched links.
Syntax:
Syntax:
Specifies the time in seconds between transmissions of BPDUs on the specified VLAN(s) when the switch is root for those VLAN(s).
Syntax:
Sets the time in seconds the switch waits before transitioning from listening to learning and from learning to forwarding states.
Syntax:
Sets the maximum age in seconds of received STP information before it is discarded for specified VLAN(s).
NOTE:
Maximum age
must be within the following bounds:
greater than or equal to 2x (
hello-time
+1)less than or equal to 2x (
forward-delay
- 1)
Syntax:
Sets the switch (bridge) priority for the designated VLAN. The switch compares this priority with the priorities of other switches on the same VLAN to determine the RPVST+ root switch for the VLAN. The lower the priority value, the higher the priority. The switch with the lowest Bridge Identifier on the VLAN is elected as the RPVST+ root switch for that VLAN.
The Bridge Identifier is composed of a configurable Priority (2 bytes) and the switch’s MAC address (6 bytes). The ability to change the Priority provides flexibility for determining which switch on the VLAN will be the root for RPVST+, regardless of its MAC address.
The priority range for an RPVST+ switch is 0-61440. However, this command specifies the priority as a multiplier (0 - 15) of 4096. That is, when you specify a priority multiplier value of 0 - 15, the actual priority assigned to the switch is: (priority-multiplier) x 4096.
For example, if you configure “2” as the priority-multiplier on a given RPVST+ switch, then the Switch Priority setting for the specified VLAN is 8,192.
NOTE: If multiple switches on the same VLAN have the same priority setting, then the switch with the lowest MAC address becomes the root switch for that VLAN.
Syntax:
Specifies the switch as the primary or secondary root bridge for the specified VLAN(s). Otherwise, by default, the root bridge for each VLAN will be determined by the lowest MAC address in that topology.
The
no
form of the command returns the determination of root to the lowest MAC address criterion.
Syntax
Specify a standard to use when calculating the default pathcost.
NOTE: All devices in the network should be configure to use same pathcost mode for proper functioning.
Syntax:
Sets the path cost for a single port on the specified VLAN(s). If the port is a member of more than one VLAN, the
path-cost
applies only where the port has traffic for the VLAN(s) specified.The
no
form of the command returnspath-cost
to its default setting.
Syntax:
[no] spanning-tree port
<port-number>
vlan <vid-list>
priority <0-15>
path-cost <auto> | <Path-Cost>
Sets the port priority for the specified VLANs. The value is in the range of 0-240 divided into steps of 16 that are numbered 0 to 15. The default is step 16.
The per-port per-VLAN priority is used to help choose the root port for a switch on the specified VLAN if there are multiple links to the root switch.
The
no
form of the command sets the priority to its default value.
Syntax:
Enables
admin-edge-port
on ports connected to end nodes. During spanning tree establishment, ports withadmin-edge-port
enabled transition immediately to the forwarding state. If a bridge or switch is detected on the segment, the port automatically operates as non-edge, not enabled.If
admin-edge-port
is disabled on a port andauto-edge-port
has not been disabled, theauto-edge-port
setting controls the behavior of the port.The
no
form of the command disables edge-port operation on the specified ports.
Syntax:
Enables or disables the automatic identification of edge ports. The port will look for BPDUs for 3 seconds. If there are none it begins forwarding packets. If
admin-edge-port
is enabled for a port, the setting for auto-edge-port is ignored whether set to yes or no. Ifadmin-edge-port
is set toNo
, andauto-edge-port
has not been disabled (set toNo
), then the auto-edge-port setting controls the behavior of the port.The
no
form of the command disablesauto-edge-port operation
on the specified ports
Syntax:
Enables or disables BPDU filtering on the specified port(s). The
bpdu-filter
option forces a port to always stay in the forwarding state and be excluded from standard STP operation.
Syntax:
Syntax:
Syntax:
This feature is available in RPVST+ only. When a port is enabled as
root-guard
, it cannot be selected as the root port even if it receives superior STP BPDUs. The port is assigned an “alternate” port role and enters a blocking state if it receives superior STP BPDUs. (A superior BPDU contains “better” information on the root bridge and/or path cost to the root bridge, which would normally replace the current root bridge selection.)The superior BPDUs received on a port enabled as
root-guard
are ignored. All other BPDUs are accepted and the external devices may belong to the spanning tree as long as they do not claim to be the Root device. Use the following command on RPVST+ switch ports that are connected to devices located in other administrative network domains to ensure the stability of the core RPVST+ network topology so that undesired or damaging influences external to the network do not enter.
Syntax:
With the spanning tree mode set to RPVST+, you can do either of the following:
Syntax:
To globally enable RPVST+ on all VLANs on the switch, use either of the following:
To globally disable RPVST+ on all VLANs on the switch, use any of the following:
|
|
NOTE: This status will always be shown in |
|
|
|
|
NOTE: This command overrides the per-VLAN enable/disable command (below). |
|
|