hit counter script

Configuring Path Cost - Cisco NCS 4200 Series Configuration Manual

Lan switching
Hide thumbs Also See for NCS 4200 Series:
Table of Contents

Advertisement

Configuring PVST+ and RPVST+
To return to the default spanning-tree setting, use the no spanning-tree [vlan vlan-id port-priority interface
configuration command.

Configuring Path Cost

The spanning-tree path cost default value is derived from the media speed of an interface (port running spanning
tree or port channel of multiple ports running spanning tree). If a loop occurs, spanning tree uses cost when
selecting an interface to put in the forwarding state. You can assign lower cost values to interfaces that you
want selected first and higher cost values that you want selected last. If all NNIs (or port channels) have the
same cost value, spanning tree puts the interface with the lowest interface number in the forwarding state and
blocks the other interfaces.
Beginning in privileged EXEC mode, follow these steps to configure the cost of an interface. This procedure
is optional.
SUMMARY STEPS
1. configure terminal
2. interface interface-id
3. spanning-tree cost cost
4. end
5. Do one of the following:
6. copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
configure terminal
Step 2
interface interface-id
Step 3
spanning-tree cost cost
Step 4
end
• show spanning-tree interface interface-id
• show spanning-tree vlan vlan-id
LAN Switching Configuration Guide, Cisco IOS XE Everest 16.6.1 (Cisco NCS 4200 Series)
Purpose
Enter global configuration mode.
Specify an interface to configure, and enter interface configuration mode.
Valid interfaces include physical interfaces and port-channel logical
interfaces (port-channel port-channel-number ).
Configure the cost for an interface.
If a loop occurs, spanning tree uses the path cost when selecting an
interface to place into the forwarding state. A lower path cost represents
higher-speed transmission.
For cost, the range is 1 to 200000000; the default value is derived from
the media speed of the interface.
Return to privileged EXEC mode.
Configuring Path Cost
55

Advertisement

Table of Contents
loading

Table of Contents