How can I configure edge ports and BPDU protection on an S series switch

User-side devices (such as servers) of a switch do not need to run STP. If STP is enabled on the switch ports connected to these devices, it takes some time for the ports to enter the forwarding state when the ports alternate between Up and Down states or the STP topology changes. This is unacceptable for some services. To solve the preceding problem, you can configure these ports as edge ports. Edge ports can enter the forwarding state immediately after they go Up, and they do not send TC packets and have no impact on services on the STP network.
To configure a port as an edge port and enable the BPDU protection function on an S (except the S1700) or E series switch, perform the following operations:
1. Configure a port as an edge port to enable the port not to participate in spanning tree calculation.
Run the stp edged-port enable command in the interface view.
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] stp edged-port enable

2. Configure BPDU protection. After BPDU protection is enabled, the switch shuts down the edge port if the edge port receives a BPDU. The attributes of the edge port are not changed.
Run the stp bpdu-protection command in the system view.
[HUAWEI] stp bpdu-protection
For other configuration commands, visit "Common STP/RSTP Operations" in Common Operation Guide to view the related document.
Common STP/RSTP operations are the same for all switch models.

Scroll to top