![H3C S5120-SI Series Operation Manual Download Page 168](http://html2.mh-extra.com/html/h3c/s5120-si-series/s5120-si-series_operation-manual_3711174168.webp)
1-28
To do...
Use the command...
Remarks
Enter Ethernet
interface view, or
Layer 2 aggregate
interface view
interface interface-type
interface-number
Enter
interface view
or port group
view
Enter port group
view
port-group manual
port-group-name
Required
Use either command.
Configurations made in
interface view will take effect on
the current port only;
configurations made in port
group view will take effect on all
ports in the port group.
Enable the MSTP feature for the
port(s)
stp
enable
Optional
By default, MSTP is enabled on
the ports. MSTP will take effect
for all ports after it is enabled
for the device globally.
z
You must enable MSTP for the device before any other MSTP-related configuration can take
effect.
z
To control MSTP flexibly, you can use the
undo stp enable
command to disable the MSTP feature
for certain ports so that they will not take part in spanning tree calculation and thus to save the
device’s CPU resources.
Configuration example
# Enable MSTP globally and disable MSTP for port GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] stp enable
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] undo stp enable
Configuring Leaf Nodes
Configuring an MST Region
Refer to
Configuring an MST Region
in the section about root bridge configuration.
Configuring the Work Mode of MSTP
Refer to
Configuring the Work Mode of an MSTP Device
in the section about root bridge configuration.
Configuring the Timeout Factor
Refer to
Configuring the Timeout Factor
in the section about root bridge configuration.
Configuring the Maximum Transmission Rate of Ports
Refer to
Configuring the Maximum Port Rate
in the section about root bridge configuration.