Configuring V-STP
Context
Virtual Spanning Tree Protocol (V-STP) is a Layer 2 topology management feature and virtualizes two STP-enabled devices into one device to perform STP calculation.
STP can detect the M-LAG master or backup status. After V-STP is enabled on the M-LAG master and backup devices and M-LAG master/backup negotiation is successful, two devices are virtualized into one device for port role calculation and fast convergence. STP needs to synchronize the bridge information and instance priority of the M-LAG master and backup devices. After M-LAG master/backup negotiation is successful, the backup device uses the bridge MAC address and instance priority that is synchronized from the master device for STP calculation and packet transmission. This ensures STP parameter calculation on the virtualized device.
V-STP can be only applicable to M-LAG networking. It can be used in multi-level M-LAG interconnection scenarios and scenarios where devices in the M-LAG function as non-root-bridges.
When configuring V-STP, ensure that the STP/RSTP timer settings on the two devices that constitute an M-LAG be the same. Otherwise, network flapping may occur.
Procedure
- Run system-view
The system view is displayed.
- Run stp mode { stp | rstp }
The switch is configured to work in STP or RSTP mode.
By default, the switch works in MSTP mode.
V-STP does not support the MSTP mode, and supports multi-process. By default, an MSTP process works in MSTP mode. Currently, only STP and RSTP modes are supported in V-STP scenarios. The MSTP process therefore must be configured to work in STP or RSTP mode in V-STP scenarios.
- (Optional) Run stp bridge-address mac-address
The bridge MAC address used in spanning tree participation is configured.
By default, the switch's MAC address is the bridge MAC address of the switch that participates in spanning tree calculation.
To prevent STP network flapping caused by switch restart, VS restart, or DFS active/standby switchover and ensure revertive switching performance, you are advised to set a larger bridge MAC address for the switch in DFS backup state when the M-LAG master and backup devices have the same priority.
- Run stp v-stp enable
V-STP is enabled on an M-LAG device.
By default, V-STP is disabled on an M-LAG device.
- Run commit
The configuration is committed.