A:
To configure a specified port as an edge port and the BPDU filter function, perform the following steps:
Step 1: Run the interface interface-type interface-number command to enter the interface view.
Step 2: Run the stp edged-port enable command to configure the port as an edge port.
Step 3: Run the stp bpdu-filter enable command to enable BPDU filter on the port.
To configure all ports of a switch as edge ports and the BPDU filter function, perform the following steps:
Step 1: Run the system-view command to enter the system view.
Step 2: Run the stp edged-port default command to configure all ports of the switch as edge ports.
Step 3: Run the stp bpdu-filter default command to enable BPDU filter on all ports of the switch.
Generally, on a switch, ports directly connected to terminals such as PCs or servers are configured as edge ports. Edge ports do not participate in spanning tree calculation. This prevents network flapping caused by port status changes.
Edge ports, however, can still send BPDUs. If the BPDUs are sent to another network, this network may flap. To prevent this problem, enable BPDU filter on the edge ports so that the edge ports do not process or send BPDUs.