100To configure the priority of a device in a specified MSTI:Step Command Remarks1. Enter system view. system-view N/A2. Configure the priority ofthe current device.• In STP/RSTP mode:stp priority priority• In PVST mode:stp vlan vlan-id-list priority priority• In MSTP mode:stp [ instance instance-list ] prioritypriorityThe default setting is 32768.Configuring the maximum hops of an MST regionRestrict the region size by setting the maximum hops of an MST region. The hop limit configured on theregional root bridge is used as the hop limit for the MST region.Configuration BPDUs sent by the regional root bridge always have a hop count set to the maximum value.When a device receives this configuration BPDU, it decrements the hop count by one, and uses the newhop count in the BPDUs that it propagates. When the hop count of a BPDU reaches zero, it is discardedby the device that received it. Devices beyond the reach of the maximum hops can no longer participatein spanning tree calculations, so the size of the MST region is limited.Make this configuration only on the root bridge. All other devices in the MST region use the maximumhop value set for the root bridge.You can configure the maximum hops of an MST region based on the STP network size. H3Crecommends that you configure the maximum hops to a value that is greater than the maximum hops ofeach edge device to the root bridge.To configure the maximum number of hops of an MST region:Step Command Remarks1. Enter system view. system-view N/A2. Configure the maximum hopsof the MST region. stp max-hops hops The default setting is 20.Configuring the network diameter of a switchednetworkAny two terminal devices in a switched network can reach each other through a specific path, and thereare a series of devices on the path. The switched network diameter is the maximum number of devices onthe path for an edge device to reach another one in the switched network through the root bridge. Thenetwork diameter indicates the network size. The bigger the diameter, the larger the network size.Based on the network diameter you configured, the system automatically sets an optimal hello time,forward delay, and max age for the device.In STP, RSTP, or MSTP mode: