R1-SW24L2B User’s Manual
13-14
Configuring the Path Cost
If a loop occurs, spanning tree uses cost when selecting a port to put in the forwarding state.
You can assign lower cost values to ports that you want selected first and higher cost values to
ports that you want selected last. If all ports have the same cost value, spanning tree puts the
port with the lowest interface number in the forwarding state and blocks the other ports.
Note:
The default path cost for the Ethernet ports on the Corecess R1-SW24L2B is derived from STP prottocol
version and the media speed of the port as follows:
Port Speed
STP
10Mbps
100
100Mbps
19
1Gbps
4
If you want to rarely use a port that is high speed because of a lack of stability or other reasons,
you specify high path cost of the port.
To configure the path cost for an Ethernet port, perform this task in Privileged mode:
Table 13-7 Configuring the path cost
Command
Task
configure terminal
1.
Enter global configuration mode.
port
<port-type>
<slot>/ <port>
pathcost
<path-cost>
2. Set the path cost for a specific Ethernet port.
y
<port-type>
: The type of Ethernet port.
-
fastethernet
:
Fast Ethernet port
-
gigabitethernet
:
Gigabit Ethernet port
y
<slot>/<port>
: The slot number and port number to set
the path cost.
y
<path-cost>
: The port's cost as a path to the spanning tree's
root bridge (STP:
1~65525)
end
3. Return to privileged mode.
show stp port
<port-type>
<slot>/<port>
4. Verify the STP configuration change
.
y
<port-type>
: The type of Ethernet port.
y
<slot>/<port>
: The slot number and port number.
Summary of Contents for R1-SW24L2B
Page 1: ...Edition 00 Distribution 2006 06 Corecess Layer2 Ethernet Switch R1 SW24L2B User s Manual...
Page 20: ...R1 SW24L2B User s Manual XX...
Page 27: ...Overview 1 7 E PON ONU...
Page 28: ...R1 SW24L2B User s Manual 1 8...
Page 42: ...R1 SW24L2B User s Manual 2 14...
Page 68: ...R1 SW24L2B User s Manual 4 16...
Page 112: ...R1 SW24L2B User s Manual 5 44...
Page 124: ...R1 SW24L2B User s Manual 6 12...
Page 134: ...R1 SW24L2B User s Manual 7 10...
Page 168: ...R1 SW24L2B User s Manual 8 34...
Page 207: ...Configuring QoS 9 39 8021p enable 8021p user priority 6 vlan 1 port fastethernet 2 1...
Page 210: ...R1 SW24L2B User s Manual 9 42...
Page 234: ...R1 SW24L2B User s Manual 10 24...
Page 258: ...R1 SW24L2B User s Manual 12 10...
Page 288: ...R1 SW24L2B User s Manual 13 30...
Page 300: ...R1 SW24L2B User s Manual B 8...