Configuration procedure, Configuring path costs of ports – H3C Technologies H3C S12500 Series Switches User Manual
Page 92
79
•
If a port directly connects to a user terminal, configure it as an edge port and enable BPDU guard
for it. This enables the port to transit to the forwarding state fast while ensuring network security.
•
Among loop guard, root guard and edge port settings, only one function (whichever is configured
the earliest) can take effect on a port at the same time.
Configuration procedure
To specify a port or a group of ports as edge port or ports:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view or
port group view.
•
Enter Ethernet interface view or Layer 2
aggregate interface view:
interface interface-type interface-number
•
Enter port group view:
port-group manual port-group-name
Use either command.
3.
Configure the current
ports as edge ports.
stp edged-port enable
All ports are non-edge ports
by default.
Configuring path costs of ports
Path cost is a parameter related to the rate of a port. On a spanning tree device, a port can have different
path costs in different MSTIs. Setting appropriate path costs allows VLAN traffic flows to be forwarded
along different physical links, achieving VLAN-based load balancing.
The device can automatically calculate the default path cost; alternatively, you can also configure the
path cost for ports.
Specifying a standard for the switch to use when calculating the
default path cost
CAUTION:
If you change the standard that the switch uses in calculating the default path costs, you restore the path
costs to the default.
You can specify a standard for the switch to use in automatic calculation for the default path cost. The
switch supports the following standards:
•
dot1d-1998—The switch calculates the default path cost for ports based on IEEE 802.1d-1998.
•
dot1t—The switch calculates the default path cost for ports based on IEEE 802.1t.
•
legacy—The switch calculates the default path cost for ports based on a private standard.
To specify a standard for the switch to use when calculating the default path cost:
Step Command
Remarks
1.
Enter system view.
system-view
N/A