How can I configure an edge port on a CE switch


When a port connected to a terminal is configured as an edge port on a Layer 2 network running a spanning tree protocol, the port no longer participates in the spanning tree calculation. This speeds up network topology convergence and enhances network stability.

# Run the stp edged-port enable command in the interface view to configure 10GE1/0/1 as the edge port.
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] stp edged-port enable
[*HUAWEI-10GE1/0/1] commit

Other related questions:
Configure STP on an interface of the S1728GWR-4P switch
Configure STP on an interface of an S1728GWR-4P switch as follows: 1. Choose Spanning Tree > STP. 2. Select Configure Interface from the Step drop-down list box. 3. Select Configure from the Action drop-down list box. 4. Configure the parameters such as Spanning Tree, Admin Link Type, Priority, and Admin Path Cost. 5. Click Apply.

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.

What is an edge-port ?
An edge port does not participate in spanning tree calculation. The edge port can transition from Disable to Forwarding state immediately without a delay. The switch automatically configures an edge port as a non-edge port once the edge port receives a configuration BPDU. Then the spanning tree is recalculated.

How can I configure port mirroring on a CE switch
Perform the following operations to configure port mirroring:

  1. Run the system-view command to enter the system view.
  2. Run the observe-port [ observe-port-index ] interface interface-type interface-number command to configure a local observing port.
    To configure multiple local observing ports, run this command multiple times.
  3. Run the interface interface-type interface-number command to enter the interface view.
  4. Run the port-mirroring observe-port observe-port-index { both inbound outbound } command to copy traffic to a specified observing port.
    To copy traffic to multiple observing ports, run this command multiple times.
  5. Run the commit command to commit the configuration.

Configuring 1:1 Port Mirroring
You can copy packets on a mirrored port to an observing port. For example, copy incoming packets on mirrored port 10GE1/0/1 to observing port 10GE1/0/2.

<HUAWEI> system-view
[~HUAWEI] observe-port 1 interface 10ge 1/0/2
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port-mirroring observe-port 1 inbound
[*HUAWEI-10GE1/0/1] commit

Configuring 1:N Port Mirroring
You can copy packets on one mirrored port to N observing ports. For example, copy incoming packets on mirrored port 10GE1/0/1 to observing ports 10GE1/0/2 and 10GE1/0/3.

<HUAWEI> system-view
[~HUAWEI] observe-port 1 interface 10ge 1/0/2
[*HUAWEI] observe-port 2 interface 10ge 1/0/3
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port-mirroring observe-port 1 inbound
[*HUAWEI-10GE1/0/1] port-mirroring observe-port 2 inbound
[*HUAWEI-10GE1/0/1] commit

Configuring N:1 Port Mirroring
You can copy packets on N mirrored ports to one observing port. For example, copy incoming packets on mirrored ports 10GE1/0/1 and 10GE1/0/2 to observing port 10GE1/0/3.

<HUAWEI> system-view
[~HUAWEI] observe-port 1 interface 10ge 1/0/3
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port-mirroring observe-port 1 inbound
[*HUAWEI-10GE1/0/1] quit
[*HUAWEI] interface 10ge 1/0/2
[*HUAWEI-10GE1/0/2] port-mirroring observe-port 1 inbound
[*HUAWEI-10GE1/0/2] commit

How to configure port split in a stack of CE switches
The port split procedure is the same in stack and non-stack scenarios. That is, run the port split command in the system view, save the configuration, and then restart the board or device.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top