Cisco Catalyst 2950 Software Manual page 228

Desktop switch software configuration guide
Hide thumbs Also See for Catalyst 2950:
Table of Contents

Advertisement

Configuring Basic STP Features
To configure a switch to become the root, the switch priority can be modified from the default
value (32768) to a significantly lower value so that the switch becomes the root switch for the specified
VLAN. Use the spanning-tree vlan vlan-id root global configuration command to alter the switch
priority. When you enter this command on a switch, it checks the switch priority of the current root
switch for each VLAN and sets its own switch priority for the specified VLAN to 8192 if this value
causes this switch to become the root for the specified VLAN. If any root switch for the specified VLAN
has a switch priority lower than 8192, the switch sets its own priority for the specified VLAN to 1 less
than the lowest switch priority.
For example, if all switches in the network have the switch priority for VLAN 100 set to the default value
of 32768, entering the spanning-tree vlan 100 root primary global configuration command on a switch
sets the switch priority for VLAN 100 to 8192, causing the switch to become the root switch for
VLAN 100.
The root switch for each instance of STP should be a backbone or distribution switch. Do not configure
Note
an access switch as the spanning-tree primary root.
Use the diameter keyword to specify the network diameter (that is, the maximum number of switch hops
between any two end stations in the network). When you specify the network diameter, the switch
automatically sets an optimal hello time, forward-delay time, and maximum-age time for a network of
that diameter, which can significantly reduce the convergence time. You can use the hello keyword to
override the automatically calculated hello time.
Note
We recommend that you avoid manually configuring the hello time, forward-delay time, and
maximum-age time after configuring the switch as the root switch.
Beginning in privileged EXEC mode, follow these steps to configure a switch as the root switch:
Command
Step 1
configure terminal
Step 2
spanning-tree vlan vlan-id root primary
[diameter net-diameter [hello-time seconds]]
Step 3
end
Step 4
show spanning-tree
Step 5
copy running-config startup-config
To return the switch to its default setting, use the no spanning-tree vlan vlan-id root global
configuration command.
Catalyst 2950 Desktop Switch Software Configuration Guide
9-22
Purpose
Enter global configuration mode.
Configure a switch as the root switch.
For vlan-id, the range is 1 to 1005. Do not enter leading zeroes.
(Optional) For diameter net-diameter, specify the maximum
number of switches between any two end stations. The range
is 2 to 7.
(Optional) For hello-time seconds, specify the interval in
seconds between the generation of configuration messages by
the root switch. The range is 1 to 10 seconds; the default is 2
seconds for STP.
Return to privileged EXEC mode.
Verify your entries.
(Optional) Save your entries in the configuration file.
Chapter 9
Configuring STP
78-11380-03

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents