1-25 system-viewSystem View: return to User View with Ctrl+Z.[Sysname] stp interface Ethernet 1/0/2 to Ethernet 1/0/4 loop-protectionstp max-hopsSyntaxstp max-hops hopsundo stp max-hopsViewSystem viewParametershops: Maximum hop count to be set. This argument ranges from 1 to 40.DescriptionUse the stp max-hops command to set the maximum hop count for the MST region the current switchbelongs to.Use the undo stp max-hops command to restore the maximum hop count to the default.By default, the maximum hop count of an MST region is 20.The maximum hop count configured on the region roots of an MST region limits the size of the MSTregion.A configuration BPDU contains a field that maintains the remaining hops of the configuration BPDU.And a switch discards the configuration BPDUs whose remaining hops are 0. After a configurationBPDU reaches a root bridge of a spanning tree in a MST region, the value of the remaining hops field inthe configuration BPDU is decreased by 1 every time the configuration BPDU passes one switch. Sucha mechanism disables the switches that are beyond the maximum hops from participating in spanningtree calculation, and thus limits the size of an MST region.With such a mechanism, the maximum hops configured on the switch operating as the root bridge of theCIST or an MSTI in a MST region becomes the network diameter of the spanning tree, which limits thesize of the spanning tree in the current MST region. The switches that are not root bridges in an MSTregion adopt the maximum hop settings of the root bridge.Examples# Set the maximum hop count of the current MST region to 35. system-viewSystem View: return to User View with Ctrl+Z.[Sysname] stp max-hops 35stp mcheckSyntaxz Ethernet port view:stp mcheck