170
C
HAPTER
14: MSTP C
ONFIGURATION
whereas the 802.1T standard does. The following formula is used to calculate the
path cost of an aggregated link:
Path cost = 200,000/ link transmission speed,
where ‘link transmission speed" is the sum of the speeds of all the unblocked
ports on the aggregated link measured in 100 Kbps.
Configure the path cost for specific ports
Changing the path cost of a port may change the role of the port and put it in
state transition. Executing the
stp cost
command with the
instance-id
argument
being 0 sets the path cost on the CIST for the port.
n
The range of the path cost of an Ethernet port varies by the standard used for path
cost calculation as follows:
■
With the IEEE 802.1d-1998 standard adopted, the path cost ranges from 1 to
65535.
■
With the IEEE 802.1t standard adopted, the path cost ranges from 1 to
200000000.
■
With the proprietary standard adopted, the path cost ranges from 1 to
200000.
Configuration example (A)
# Configure the path cost of Ethernet 1/0/1 in spanning tree instance 1 to be
2,000.
1
Perform this configuration in system view
<4210> system-view
[4210] stp interface Ethernet1/0/1 instance 1 cost 2000
2
Perform this configuration in Ethernet port view
Table 124
Configure the path cost for specified ports in system view
Operation
Command
Description
Enter system view
System-view
-
Configure the path cost for
specified ports
stp interface
interface-list
[
instance
instance-id
]
cost
cost
Required
An MSTP-enabled switch can
calculate path costs for all its
ports automatically.
Table 125
Configure the path cost for a port in Ethernet port view
Operation
Command
Description
Enter system view
System-view
-
Enter Ethernet port view
interface
interface-type
interface-number
-
Configure the path cost for
the port
stp
[
instance
instance-id
]
cost
cost
Required
A MSTP-enabled switch can
calculate path costs for all its
ports automatically.
Summary of Contents for Switch 4210 9-Port
Page 22: ...20 CHAPTER 1 CLI CONFIGURATION ...
Page 74: ...72 CHAPTER 3 CONFIGURATION FILE MANAGEMENT ...
Page 84: ...82 CHAPTER 5 VLAN CONFIGURATION ...
Page 96: ...94 CHAPTER 8 IP PERFORMANCE CONFIGURATION ...
Page 108: ...106 CHAPTER 9 PORT BASIC CONFIGURATION ...
Page 122: ...120 CHAPTER 11 PORT ISOLATION CONFIGURATION ...
Page 140: ...138 CHAPTER 13 MAC ADDRESS TABLE MANAGEMENT ...
Page 234: ...232 CHAPTER 17 802 1X CONFIGURATION ...
Page 246: ...244 CHAPTER 20 AAA OVERVIEW ...
Page 270: ...268 CHAPTER 21 AAA CONFIGURATION ...
Page 292: ...290 CHAPTER 26 DHCP BOOTP CLIENT CONFIGURATION ...
Page 318: ...316 CHAPTER 29 MIRRORING CONFIGURATION ...
Page 340: ...338 CHAPTER 30 CLUSTER ...
Page 362: ...360 CHAPTER 33 SNMP CONFIGURATION ...
Page 368: ...366 CHAPTER 34 RMON CONFIGURATION ...
Page 450: ...448 CHAPTER 39 TFTP CONFIGURATION ...
Page 451: ......
Page 452: ...450 CHAPTER 39 TFTP CONFIGURATION ...
Page 470: ...468 CHAPTER 40 INFORMATION CENTER ...
Page 496: ...494 CHAPTER 44 DEVICE MANAGEMENT ...