@user_3357111 hi!
The command spanning-tree uplinkfast enables the switch to switch the root port to the backup root port when suspecting that the root port is down.
The command 'spanning-tree portfast default' enables the ports to turn to forwarding when the port turns up.
In the case of uplinkfast, it’s like the alternative port in rstp. When the root port turns to down, it turns to forwarding immediately, skipping the listening and learning state.
In the case of portfast, it’s like the edge port on rstp - it’s connected to the terminal devices. When the device connects to this interface, the port will skip the listening and learning state and turn to forwarding state immediately.
These two commands are commonly used on the access switch. You can use the translating tool to translate the configuration from Cisco to Huawei, please visit
https://serviceturbo-cloud-cn.hu ... 3-b4b5-7a5baf2f50d1.