iv
Configuring the device priority ······················································································································· 108
Configuring the maximum hops of an MST region ························································································· 109
Configuring the network diameter of a switched network ·············································································· 109
Setting spanning tree timers ·························································································································· 110
Setting the timeout factor ······························································································································· 111
Configuring the BPDU transmission rate ······································································································· 111
Configuring edge ports ··································································································································· 112
Configuring path costs of ports ······················································································································ 113
About path cost ······································································································································ 113
Specifying a standard for the default path cost calculation ···································································· 113
Configuring path costs of ports ·············································································································· 114
Configuring the port priority ···························································································································· 115
Configuring the port link type ························································································································· 115
Configuring the mode a port uses to recognize and send MSTP frames······················································· 116
Enabling outputting port state transition information ······················································································ 116
Enabling the spanning tree feature ················································································································ 117
Restrictions and guidelines ···················································································································· 117
Enabling the spanning tree feature in STP/RSTP/MSTP mode ····························································· 117
Enabling the spanning tree feature in PVST mode ················································································ 118
Performing mCheck ······································································································································· 118
About mCheck ········································································································································ 118
Restrictions and guidelines ···················································································································· 118
Performing mCheck globally ·················································································································· 118
Performing mCheck in interface view ····································································································· 119
Disabling inconsistent PVID protection ·········································································································· 119
Configuring Digest Snooping ························································································································· 119
Configuring No Agreement Check ················································································································· 121
Configuring TC Snooping ······························································································································· 122
Configuring protection features ······················································································································ 123
Spanning tree protection tasks at a glance ···························································································· 123
Configuring BPDU guard ························································································································ 124
Enabling root guard ································································································································ 125
Enabling loop guard ······························································································································· 125
Configuring port role restriction ·············································································································· 126
Configuring TC-BPDU transmission restriction ······················································································ 127
Enabling TC-BPDU guard ······················································································································ 127
Enabling BPDU drop ······························································································································ 128
Enabling PVST BPDU guard ·················································································································· 128
Disabling dispute guard ·························································································································· 128
Enabling the device to log events of detecting or receiving TC BPDUs························································· 130
Disabling the device from reactivating edge ports shut down by BPDU guard ·············································· 130
Enabling SNMP notifications for new-root election and topology change events ·········································· 131
Display and maintenance commands for the spanning tree protocols ·························································· 132
Spanning tree configuration examples ··········································································································· 132
Example: Configuring MSTP ·················································································································· 132
Example: Configuring PVST ·················································································································· 136
Configuring loop detection ········································································· 140
About loop detection ······································································································································ 140
Loop detection mechanism ···················································································································· 140
Loop detection interval ··························································································································· 141
Loop protection actions ·························································································································· 141
Port status auto recovery ······················································································································· 141
Loop detection tasks at a glance ··················································································································· 142
Enabling loop detection ·································································································································· 142
Restrictions and guidelines for loop detection configuration ·································································· 142
Enabling loop detection globally············································································································· 142
Enabling loop detection on a port ··········································································································· 143
Setting the loop protection action ··················································································································· 143
Restrictions and guidelines for loop protection action configuration ······················································ 143
Setting the global loop protection action ································································································ 143
Setting the loop protection action on an interface ·················································································· 143