Stp Cost - H3C S7500E Series Command Manual

Hide thumbs Also See for S7500E Series:
Table of Contents

Advertisement

Command Manual – MSTP
H3C S7500E Series Ethernet Switches

1.1.19 stp cost

Syntax
stp [ instance instance-id ] cost cost
undo stp [ instance instance-id ] cost
View
Ethernet interface view, port group view
Parameters
instance instance-id: Sets the path cost of the port(s) in a particular spanning tree
instance. The effective range of instance-id is 0 to 31, with 0 representing the CIST.
cost: Path cost of the port, the effective range of which depends on the path cost
calculation standard adopted.
Description
Use the stp cost command to set the path cost of the port(s) in the specified spanning
tree instance or all spanning tree instances.
Use the undo stp cost command to restore the system default.
By default, the device automatically calculates the path costs of ports in each spanning
tree instance based on the corresponding standard.
Configured in Ethernet interface view, the setting is effective on the current port only;
configured in port group view, the setting is effective on all ports in the port group.
If you set instance-id to 0, you are setting the path cost of the port in the CIST. The path
cost setting of a port can affect the role selection of the port. Setting different path costs
for the same port in different spanning tree instances allows different VLAN traffic flows
to be forwarded along different physical links, thus to enable per-VLAN load balancing.
When the path cost of a port is changed, MSTP will re-compute the role of the port and
initiate a state transition.
If you do not provide instance instance-id, your configuration will take effect in the CIST
instance only.
Examples
# Set the path cost of port GigabitEthernet 2/0/1 in spanning tree instance 2 to 200.
<Sysname> system-view
[Sysname] interface GigabitEthernet 2/0/1
[Sysname-GigabitEthernet2/0/1] stp instance 2 cost 200
Chapter 1 MSTP Configuration Commands
1-19

Advertisement

Table of Contents
loading

Table of Contents