< Home

(Optional) Setting the Device Priority

Context

The device priority is used in spanning tree calculation, and determines whether the device can be configured as a root bridge of a spanning tree. A smaller value indicates a higher priority.

Generally, a high-performance switch at a high network layer is required to be selected as the root bridge. However, the high-performance switch at a high network layer may not have a high priority. It is necessary to set the device priority to ensure that the device functions as the root bridge. Low-performance devices at lower network layers are not fit to serve as root bridges. Therefore, set low priorities for these devices.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run stp vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> priority priority

    The priority of the switch in a specified VLAN is set.

    By default, the priority of the device is 32768.

    If the device has been configured as the root bridge or secondary root bridge, to change the device priority, run the undo stp vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> root command to disable the root bridge or secondary root bridge function and run the stp vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> priority priority command to set the device priority.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >