Configuring the Root Bridge and Bridge ID
Context
When the root bridge mode is used to configure M-LAG, the M-LAG master and backup devices must be used as root bridges and configured with the same bridge ID on the STP network so that the two devices are simulated into one root bridge.
Procedure
- Run system-view
The system view is displayed.
- Run stp [ instance instance-id ] root primary
The device is configured as the root bridge.
By default, a switch does not function as the root bridge of any spanning tree. After the configuration is complete, the priority of the device is 0 and cannot be changed.
If instance is not specified, the device is the root bridge in instance 0.
- Run stp bridge-address mac-address
The MAC address of the device that participates in spanning tree calculation is specified.
By default, the device's MAC address is the bridge MAC address of the device that participates in spanning tree calculation. You are advised to use the smaller MAC address of the M-LAG master and slave device as the bridge MAC address for spanning tree calculation.
- Run commit
The configuration is committed.