4-21
Parameters
instance instance-id
: Sets the path cost of the port(s) in a particular MSTI. The minimum value of
instance-id
is 0, representing the CIST, and the maximum value of
instance-id
is 32.
cost
: Path cost of the port, the effective range of which depends on the path cost calculation standard
adopted.
z
With the IEEE 802.1d-1998 standard selected for path cost calculation, the
cost
argument ranges
from 1 to 65535.
z
With the IEEE 802.1t standard selected for path cost calculation, the
cost
argument ranges from 1
to 200000000.
z
With the private standard selected for path cost calculation, the
cost
argument ranges from 1 to
200000.
Description
Use the
stp cost
command to set the path cost of the port(s) in the specified MSTI or all MSTIs.
Use the
undo stp cost
command to restore the system default.
By default, the device automatically calculates the path costs of ports in each MSTI based on the
corresponding standard.
Note that:
z
Configured in Ethernet interface view, the setting takes effect on the current interface only;
configured in port group view, the setting takes effect on all ports in the port group.
z
Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate
interface; configured on a member port in an aggregation group, the setting can take effect only
after the port leaves the aggregation group.
z
Path cost is an important factor in spanning tree calculation. Setting different path costs for a port
in MSTIs allows VLAN traffic flows to be forwarded along different physical links, thus achieving
VLAN-based load balancing.
z
The path cost setting of a port can affect the role selection of the port. When the path cost of a port
is changed, MSTP will re-compute the role of the port and initiate a state transition.
Related commands:
display stp
.
Examples
# Set the path cost of port GigabitEthernet 1/0/3 in MSTI 2 to 200.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/3
[Sysname-GigabitEthernet1/0/3] stp instance 2 cost 200
stp edged-port
Syntax
stp edged-port
{
enable
|
disable
}
undo stp edged-port
View
Ethernet interface view, port group view, Layer 2 aggregate interface view
Summary of Contents for E4510-48G
Page 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Page 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Page 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Page 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Page 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Page 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Page 914: ...5 17 Sysname reset oam ...
Page 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Page 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...