78Task RemarksConfiguring path costs of ports OptionalConfiguring the port priority OptionalConfiguring the port link type OptionalConfiguring the mode a port uses to recognize/send MSTP packets OptionalEnabling outputting port state transition information OptionalEnabling the spanning tree feature RequiredPerforming mCheck OptionalConfiguring Digest Snooping OptionalConfiguring No Agreement Check OptionalConfiguring TC snooping OptionalConfiguring protection functions OptionalSetting the spanning tree modeThe spanning tree modes include:• STP mode—All ports of the device send STP BPDUs. Select this mode when the peer device of a portsupports only STP.• RSTP mode—All ports of the device send RSTP BPDUs. A port in this mode automatically transits tothe STP mode when receiving STP BPDUs from the peer device, and a port in this mode does nottransit to the MSTP mode when receiving MSTP BPDUs from the peer device.• MSTP mode—All ports of the device send MSTP BPDUs. A port in this mode automatically transitsto the STP mode when receiving STP BPDUs from the peer device, and a port in this mode does nottransit to the RSTP mode when receiving RSTP BPDUs from the peer device.• PVST mode—The device sends PVST BPDUs through all ports and maintains a spanning tree foreach VLAN. The number of VLANs that PVST can maintain instances for depends on the switchmodel. Suppose the number is n, which is 128 on the S3600V2 Switch Series. When you configurePVST on devices of different models in a network, to avoid network failures, make sure that thenumber of VLANs for which PVST maintains instances does not exceed the lowest n. An H3C devicerunning PVST can communicate with third-party devices running PVST or Rapid PVST. When H3Cdevices running PVST communicate with each other or an H3C device running PVST communicateswith a third-party device running Rapid PVST, the H3C devices supports rapid convergence like thatprovided by RSTP.The MSTP mode is compatible with the RSTP mode, and the RSTP mode is compatible with the STP mode.The PVST mode's compatibility with the other spanning tree mode varies by port type:• On an access port, the PVST mode is compatible with any other spanning tree mode in any VLAN.• On a trunk or hybrid port, the PVST mode is compatible with any other spanning tree mode in onlyVLAN 1.To set the spanning tree mode:Step Command Remarks1. Enter system view. system-view N/A