Configuring the Root Bridge 221
Configuration example
# Set the maximum transmission rate of port GigabitEthernet 1/0/1 to 5.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] stp transmit-limit 5
Configuring Ports as
Edge Ports
If a port directly connects to a user terminal rather than another device or a shared
LAN segment, this port is regarded as an edge port. When a network topology
change occurs, an edge port will not cause a temporary loop. Therefore, if you
specify a port as an edge port, this port can transition rapidly from the blocked
state to the forwarding state without delay.
Configuration procedure
Follow these steps to specify a port or a group of ports as edge port(s):
n
■ With BPDU guard disabled, when a port set as an edge port receives a BPDU
from another port, it will become a non-edge port again. In this case, you must
reset the port before you can configure it to be an edge port again.
■ If a port directly connects to a user terminal, configure it to be an edge port
and enable BPDU guard for it. This enables the port to transition to the
forwarding state while ensuring network security.
Configuration example
# Configure GigabitEthernet 1/0/1 to be an edge port.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] stp edged-port enable
Configuring Whether
Ports Connect to
Point-to-Point Links
A point-to-point link is a link directly connecting with two devices. If the two ports
across a point-to-point link are root ports or designated ports, the ports can
rapidly transition to the forwarding state after a proposal-agreement handshake
process.
To do… Use the command… Remarks
Enter system view system-view -
Enter Ethernet
interface view
or port group
view
Enter Ethernet
interface view
interface interface-type
interface-number
Required
Use either command.
Configurations made in
Ethernet interface view will
take effect on the current
port only; configurations
made in port group view will
take effect on all ports in the
port group.
Enter port
group view
port-group { manual
port-group-name |
aggregation agg-id }
Configure the port(s) as edge
port(s)
stp edged-port enable Required
All Ethernet ports are
non-edge ports by default.