< Home

Configuring Edge Ports and BPDU Filter Ports for RSTP

Context

As defined in RSTP, a port that is located at the edge of a network and directly connected to a terminal is an edge port.

Edge ports can still send BPDUs. If the BPDUs are sent to another network, this network may encounter network flapping. To prevent this problem, configure the BPDU filter function on edge ports so that the edge ports do not process or send BPDUs.

After a specified port is configured as an edge port and BPDU filter port in the interface view, the port does not process or send BPDUs and cannot negotiate the STP state with the directly connected port on the peer device. In addition, if this command is run in the system view, all ports are in Forwarding state. This may cause loops on the network, leading to broadcast storms. Exercise caution when deciding to perform this configuration.

Procedure

  • Configure all ports as edge ports and BPDU filter ports.
    1. Run system-view

      The system view is displayed.

    2. Run stp edged-port default

      All ports are configured as edge ports.

      By default, all ports are non-edge ports.

    3. Run stp bpdu-filter default

      All ports are configured as BPDU filter ports.

      By default, all ports are non-BPDU filter ports.

  • Configure a specified port as an edge port and BPDU filter port.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The view of the Ethernet interface that participates in spanning tree calculation is displayed.

    3. Run stp edged-port enable

      The port is configured as an edge port.

      By default, all ports are non-edge ports.

    4. Run stp bpdu-filter enable

      The port is configured as a BPDU filter port.

      By default, all ports are non-BPDU filter ports.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >