How to prevent network flapping caused by changes of Eth-Trunk member interfaces on CE switches

The path cost of Eth-Trunks change when Eth-Trunk member interfaces go Up or Down. In this case, STP recalculates the path cost and spanning tree, causing network topology changes and network flapping.
You can run the stp [ process process-id ] [ instance instance-id ] cost cost command in the Eth-Trunk interface view to set the path cost of Eth-Trunks to a fixed value. In this way, the changes of Eth-Trunk member interfaces do not affect the path cost, preventing network topology changes.
For example, set the path cost of Eth-Trunk 1 to 200.
system-view
[~HUAWEI] interface eth-trunk 1
[*HUAWEI-Eth-Trunk1] stp cost 200
[*HUAWEI-Eth-Trunk1] commit

Scroll to top