Enabling the spanning tree feature, Performing mcheck, Performing mcheck globally – H3C Technologies H3C SecPath F1000-E User Manual

Page 121

Advertising
background image

96

Enabling the spanning tree feature

You must enable the spanning tree feature for the device before any other spanning tree related

configurations can take effect. In STP/RSTP/MSTP mode, make sure that the spanning tree feature is

enabled globally and on the desired ports.
To enable the spanning tree feature:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enable the spanning tree feature

globally.

stp enable

Whether the spanning tree
feature is enabled globally or on

VLANs by default depends on

your device model.

3.

Enter Ethernet interface view or

Layer 2 aggregate interface view.

interface interface-type
interface-number

N/A

4.

Enable the spanning tree feature for

the port or group of ports.

stp enable

Optional.
By default, the spanning tree
feature is enabled for all ports.

NOTE:

To globally enable or disable the spanning tree feature, use the stp enable command or undo stp
enable command in system view. To enable or disable the spanning tree feature for specific VLANs, use

the stp vlan enable command or undo stp vlan enable command.

You can disable the spanning tree feature for certain ports with the undo stp enable command to
exclude them from spanning tree calculation and save CPU resources of the device.

Performing mCheck

If a port on a device running MSTP or RSTP connects to an STP device, this port will automatically
transition to the STP-compatible mode. However, it cannot automatically transition back to the original

mode when:

The STP device is shut down or removed.

The STP device transitions to the MSTP or RSTP mode.

To forcibly transition the port to operate in the original mode, you can perform an mCheck operation.
The following methods for performing mCheck produce the same result.

Performing mCheck globally

Step Command

1.

Enter system view.

system-view

2.

Perform mCheck.

stp mcheck

Advertising