Chapter 45 MRSTP Commands
Ethernet Switch CLI Reference Guide
196
45.3 Command Examples
This example configures MRSTP in the following way:
• Enables MRSTP on the Switch.
• Activates tree
1
and sets the bridge priority, Hello Time, Maximum Age and Forward
Values for this RSTP configuration.
• Activates MRSTP for ports
1-5
and sets path cost on these ports to
127
.
• Adds ports
1-5
to tree index
1
.
In this example, we enable MRSTP on ports 21-24. Port 24 is connected to the host while ports
21-23 are connected to another switch.
mrstp interface <
port-list
> edge-port
Sets the specified ports as edge ports. This allows
the port to transition to a forwarding state
immediately without having to go through the
listening and learning states.
Note: An edge port becomes a non-edge
port as soon as it receiveds a Bridge
Protocol Data Units (BPDU).
C
13
no mrstp interface <
port-list
> edge-
port
Sets the listed ports as non-edge ports.
C
13
mrstp interface <
port-list
> path-cost
<1-65535>
Sets a path cost to the specified ports.
C
13
mrstp interface <
port-list
> priority
<0-255>
Sets the priority value to the specified ports for
MRSTP.
C
13
mrstp interface <
port-list
> tree-index
<
tree-index
>
Assigns the specified port list to a specific MRSTP
configuration.
C
13
no mrstp <
tree-index
>
Disables the specified MRSTP configuration.
C
13
no mrstp interface <
port-list
>
Disables the MRSTP assignment from the specified
port(s).
C
13
Table 111
Command Summary: mrstp
COMMAND
DESCRIPTION
M
P
sysname(config)# spanning-tree mode mrstp
sysname(config)# mrstp 1
sysname(config)# mrstp 1 priority 16384
sysname(config)# mrstp 1 hello-time 2 maximum-age 15 forward-delay 30
sysname(config)# mrstp interface 1-5
sysname(config)# mrstp interface 1-5 path-cost 127
sysname(config)# mrstp interface 1-5 tree-index 1
sysname(config)# configure
sysname(config)# spanning-tree mode MRSTP
sysname(config)# mrstp 1
sysname(config)# mrstp interface 21-24
sysname(config)# no mrstp interface 21-23 edge-port