Table Of Contents
Configuring the System
Changing IP Information
Manually Assigning and Removing Switch IP Information
Using DHCP-Based Autoconfiguration
Understanding DHCP-Based Autoconfiguration
DHCP Client Request Process
Configuring the DHCP Server
Configuring the TFTP Server
Configuring the Domain Name and the DNS
Configuring the Relay Device
Obtaining Configuration Files
Example Configuration
Changing the Password
Setting the System Date and Time
Configuring Daylight Saving Time
Configuring the Network Time Protocol
Configuring the Switch as an NTP Client
Enabling NTP Authentication
Configuring the Switch for NTP Broadcast-Client Mode
Configuring SNMP
Disabling and Enabling SNMP
Entering Community Strings
Adding Trap Managers
Configuring CDP
Configuring CDP for Extended Discovery
Configuring STP
Supported STP Instances
Using STP to Support Redundant Connectivity
Disabling STP
Accelerating Aging to Retain Connectivity
Configuring STP and UplinkFast in a Cascaded Cluster
Configuring Redundant Links By Using STP UplinkFast
Enabling STP UplinkFast
Configuring Cross-Stack UplinkFast
How CSUF Works
Events that Cause Fast Convergence
Limitations
Connecting the Stack Ports
Configuring Cross-Stack UplinkFast
Changing the STP Parameters for a VLAN
Changing the STP Implementation
Changing the Switch Priority
Changing the BPDU Message Interval
Changing the Hello BPDU Interval
Changing the Forwarding Delay Time
STP Port States
Enabling the Port Fast Feature
Changing the Path Cost
Changing the Port Priority
Configuring STP Root Guard
Managing the ARP Table
Controlling IP Multicast Packets through CGMP
Enabling the Fast Leave Feature
Disabling the CGMP Fast Leave Feature
Changing the CGMP Router Hold-Time
Removing Multicast Groups
Configuring MVR
Using MVR in a Multicast Television Application
Configuration Guidelines and Limitations
Setting MVR Parameters
Configuring MVR
Managing the MAC Address Tables
MAC Addresses and VLANs
Changing the Address Aging Time
Removing Dynamic Address Entries
Adding Secure Addresses
Removing Secure Addresses
Adding Static Addresses
Removing Static Addresses
Configuring Static Addresses for EtherChannel Port Groups
Configuring TACACS+
Configuring the TACACS+ Server Host
Configuring Login Authentication
Specifying TACACS+ Authorization for EXEC Access and Network Services
Starting TACACS+ Accounting
Configuring a Switch for Local AAA
Configuring the System
This chapter provides information about changing switch-wide configuration settings. It includes command-line interface (CLI) procedures for using commands that have been specifically created or changed for the Catalyst 2900 XL or Catalyst 3500 XL switches. For complete syntax and usage information for the commands used in this chapter, refer to the Catalyst 2900 Series XL and Catalyst 3500 Series XL Command Reference.
This chapter does not repeat the concepts and CLI procedures provided in the standard Cisco IOS Release 12.0 documentation. For switch features that use standard Cisco IOS Release 12.0 commands, refer to the Cisco IOS Release 12.0 documentation on Cisco.com for additional information and CLI procedures.
For information about configuring these settings from Cluster Management Suite (CMS), refer to the online help.
Note
Some features can be implemented only by using the CLI.
Changing IP Information
You can assign and change the IP information of your switch in the following ways:
•
Using the setup program, as described in the release notes
•
Manually assigning an IP address, as described in this section
•
Using Dynamic Host Configuration Protocol (DHCP)-based autoconfiguration, as described in this section
Caution 
Changing the switch IP address ends any CMS, Telnet, or Simple Network Management Protocol (SNMP) session. To restart your CMS session, enter the new IP address in the browser
Location field (Netscape Communicator) or
Address field (Internet Explorer). To restart your CLI session through Telnet, follow the steps described in the
"Accessing the CLI" section.
Note
If you enabled the DHCP feature, the switch assumes you are using an external server for IP address allocation. While this feature is enabled, any values you manually enter (from the CMS or from the ip address command) are ignored.
Manually Assigning and Removing Switch IP Information
You can manually assign an IP address, mask, and default gateway to the switch. The mask identifies the bits that denote the network number in the IP address. When you use the mask to subnet a network, the mask is then referred to as a subnet mask. The broadcast address is reserved for sending messages to all hosts. The CPU sends traffic to an unknown IP address through the default gateway.
Beginning in privileged EXEC mode, follow these steps to enter the IP information:
| |
Command
|
Purpose
|
Step 1
|
configure terminal
|
Enter global configuration mode.
|
Step 2
|
interface vlan 1
|
Enter interface configuration mode, and enter the VLAN to which the IP information is assigned. VLAN 1 is the default management VLAN, but you can configure any VLAN from IDs 1 to 1001.
|
Step 3
|
ip address ip_address subnet_mask
|
Enter the IP address and subnet mask.
|
Step 4
|
exit
|
Return to global configuration mode.
|
Step 5
|
ip default-gateway ip_address
|
Enter the IP address of the default router.
|
Step 6
|
end
|
Return to privileged EXEC mode.
|
Step 7
|
show running-config
|
Verify that the information was entered correctly by displaying the running configuration. If the information is incorrect, repeat the procedure.
|
Use the following procedure to remove the IP information from a switch.
Note
Using the no ip address command in configuration mode disables the IP protocol stack as well as removes the IP information. Cluster members without IP addresses rely on the IP protocol stack being enabled.
Beginning in privileged EXEC mode, follow these steps to remove an IP address:
| |
Command
|
Purpose
|
Step 1
|
clear ip address vlan 1 ip_address subnet_mask
|
Remove the IP address and subnet mask.
|
Step 2
|
end
|
Return to privileged EXEC mode.
|
Step 3
|
show running-config
|
Verify that the information was removed by displaying the running configuration.
|
Using DHCP-Based Autoconfiguration
The Dynamic Host Configuration Protocol (DHCP) provides configuration information to Internet hosts and internetworking devices. With DHCP-based autoconfiguration, your switch (DHCP client) can be automatically configured during bootup with IP address information and a configuration file that it receives during DHCP-based autoconfiguration.
Note
DHCP replaces the Bootstrap Protocol (BOOTP) feature autoconfiguration to ensure retrieval of configuration files by unicast TFTP messages. BOOTP is available in earlier software releases for this switch.
Understanding DHCP-Based Autoconfiguration
The DHCP provides configuration information to internet hosts and internetworking devices. This protocol consists of two components: one for delivering configuration parameters from a DHCP server to a device and one for allocating network addresses to devices. DHCP is built on a client-server model, where designated DHCP servers allocate network addresses and deliver configuration parameters to dynamically configured devices.
With DHCP-based autoconfiguration, your switch (DHCP client) can be automatically configured at startup with IP address information and a configuration file that it receives during DHCP-based autoconfiguration. No DHCP client-side configuration is required on your switch.
However, you need to configure the DHCP server for various lease options. You might also need to configure a TFTP server, a Domain Name System (DNS) server, and possibly a relay device if the servers are on a different LAN than your switch. A relay device forwards broadcast traffic between two directly connected LANs. A router does not forward broadcast packets, but it forwards packets based on the destination IP address in the received packet. DHCP-based autoconfiguration replaces the BOOTP client functionality on your switch.
DHCP Client Request Process
When you boot your switch, the DHCP client can be invoked and automatically request configuration information from a DHCP server under the following conditions:
•
The configuration file is not present on the switch.
•
The configuration file is present, but the IP address is not specified in it.
•
The configuration file is present, the IP address is not specified in it, and the service config global configuration command is included. This command enables the autoloading of a configuration file from a network server.
Figure 6-1 shows the sequence of messages that are exchanged between the DHCP client and the DHCP server.
Figure 6-1 DHCP Request for IP Information from a DHCP Server
The client, Switch A, broadcasts a DHCPDISCOVER message to locate a DHCP server. The DHCP server offers configuration parameters (such as an IP address, subnet mask, gateway IP address, DNS IP address, a lease for the IP address, and so forth) to the client in a DHCPOFFER unicast message.
In a DHCPREQUEST broadcast message, the client returns a request for the offered configuration information to the DHCP server. The request is broadcast so that all other DHCP servers that received the DHCPDISCOVER broadcast message from the client can reclaim the IP addresses that they offered to the client.
The DHCP server confirms that the IP address has been allocated to the client by returning a DHCPACK unicast message to the client. With this message, the client and server are bound, and the client uses configuration information received from the server. The amount of information the switch receives depends on how you configure the DHCP server. For more information, see the "Configuring the DHCP Server" section.
If the configuration parameters sent to the client in the DHCPOFFER unicast message by the DHCP server are invalid (a configuration error exists), the client returns a DHCPDECLINE broadcast message to the DHCP server.
The DHCP server sends the client a DHCPNAK denial broadcast message, which means the offered configuration parameters have not been assigned, an error has occurred during the negotiation of the parameters, or the client has been slow in responding to the DHCPOFFER message (the DHCP server assigned the parameters to another client) of the DHCP server.
A DHCP client might receive offers from multiple DHCP or BOOTP servers and can accept any one of the offers; however, the client usually accepts the first offer it receives. The offer from the DHCP server is not a guarantee that the IP address will be allocated to the client; however, the server usually reserves the address until the client has had a chance to formally request the address. If the switch accepts replies from a BOOTP server and configures itself, the switch will broadcast, instead of unicast, TFTP requests to obtain the switch configuration file.
Configuring the DHCP Server
You should configure the DHCP servers with reserved leases that are bound to each switch by the switch hardware address. If the DHCP server does not support reserved leases, the switch can obtain different IP addresses and configuration files at different boot instances. You should configure the DHCP server with the following lease options:
•
IP address of the client (required)
•
Subnet mask of the client (required)
•
DNS server IP address (required)
•
Router IP address (default gateway address to be used by the switch) (required)
•
TFTP server name (required)
•
Boot filename (the name of the configuration file that the client needs) (recommended)
•
Host name (optional)
If you do not configure the DHCP server with the lease options described earlier, then it replies to client requests with only those parameters that have available values. If the IP address and subnet mask are not in the reply, the switch is not configured. If the DNS server IP address, router IP address, or TFTP server name are not found, the switch might broadcast TFTP requests. Unavailability of other lease options does not affect autoconfiguration.
Note
If the configuration file on the switch does not contain the IP address, the switch obtains its address, mask, gateway IP address, and host name from DHCP. If the service config global configuration command is specified in the configuration file, the switch receives the configuration file through TFTP requests. If the service config global configuration command and the IP address are both present in the configuration file, DHCP is not used, and the switch obtains the default configuration file by broadcasting TFTP requests.
The DHCP server can be on the same or a different LAN as the switch. If it is on a different LAN, the switch must be able to access it through a relay device. The DHCP server can be running on a UNIX or Linux operating system; however, the Windows NT operating system is not supported in this release.
For more information, see the "Configuring the Relay Device" section. You must also set up the TFTP server with the switch configuration files; for more information, see the next section.
For CLI procedures, refer to the Cisco IOS Release 12.0 documentation on Cisco.com for additional information and CLI procedures.
Configuring the TFTP Server
The TFTP server must contain one or more configuration files in its base directory. The files can include the following:
•
The configuration file named in the DHCP reply (the actual switch configuration file)
•
The network-confg or the cisconet.cfg file (known as the default configuration files)
•
The router-confg or the ciscortr.cfg file (These files contain commands common to all switches. Normally, if the DHCP and TFTP servers are properly configured, these files are not accessed.)
You must specify the TFTP server name in the DHCP server lease database. You must also specify the TFTP server name-to-IP-address mapping in the DNS server database.
The TFTP server can be on the same or a different LAN as the switch. If it is on a different LAN, the switch must be able to access it through a relay device or a router. For more information, see the "Configuring the Relay Device" section.
If the configuration filename is provided in the DHCP server reply, the configuration files for a switch can be spread over multiple TFTP servers. However, if the configuration filename is not provided, then the configuration files must reside on a single TFTP server.
For CLI procedures, refer to the Cisco IOS Release 12.0 documentation on Cisco.com for additional information and CLI procedures.
Configuring the Domain Name and the DNS
Each unique IP address can have a host name associated with it. The IOS software maintains a cache of host name-to-address mappings for use by the EXEC mode connect, telnet, and ping commands, and related Telnet support operations. This cache speeds the process of converting names to addresses.
IP defines a hierarchical naming scheme that allows a device to be identified by its location or domain. Domain names are pieced together with periods (.) as the delimiting characters. For example, Cisco Systems is a commercial organization that IP identifies by a com domain name, so its domain name is cisco.com. A specific device in this domain, the File Transfer Protocol (FTP) system for example, is identified as ftp.cisco.com.
To keep track of domain names, IP has defined the concept of a Domain Name Server (DNS), which holds a cache (or database) of names mapped to IP addresses. To map domain names to IP addresses, you must first identify the host names and then specify a name server and enable the DNS, the Internet's global naming scheme that uniquely identifies network devices.
You can specify a default domain name that the software uses to complete domain name requests. You can specify either a single domain name or a list of domain names. When you specify a domain name, any IP host name without a domain name will have that domain name appended to it before being added to the host table.
If your network devices require connectivity with devices in networks for which you do not control name assignment, you can assign device names that uniquely identify your devices within the entire internetwork. The Internet's global naming scheme, the DNS, accomplishes this task. This service is enabled by default.
The switch uses the DNS server to resolve the TFTP server name to a TFTP server IP address. You must configure the TFTP server name-to-IP address map on the DNS server. The TFTP server contains the configuration files for the switch.
You must configure the IP addresses of the DNS servers in the lease database of the DHCP server from where the DHCP replies will retrieve them. You can enter up to two DNS server IP addresses in the lease database.
The DNS server can be on the same or a different LAN as the switch. If it is on a different LAN, the switch must be able to access it through a relay device or router. For more information, see the "Configuring the Relay Device" section.
For CLI procedures, refer to the Cisco IOS Release 12.0 documentation on Cisco.com for additional information and CLI procedures.
Configuring the Relay Device
You need to use a relay device if the DHCP, DNS, or TFTP servers are on a different LAN than the switch. You must configure this relay device to forward received broadcast packets on an interface to the destination host. This configuration ensures that broadcasts from the DHCP client can reach the DHCP, DNS, and TFTP servers and that broadcasts from the servers can reach the DHCP client.
If the relay device is a Cisco router, you enable IP routing (ip routing global configuration command) and configure it with helper addresses by using the ip helper-address interface configuration command.
For example, in Figure 6-2, you configure the router interfaces as follows:
On interface 10.0.0.2:
router(config-if)# ip helper-address 20.0.0.2
router(config-if)# ip helper-address 20.0.0.3
router(config-if)# ip helper-address 20.0.0.4
On interface 20.0.0.1
router(config-if)# ip helper-address 10.0.0.1
Figure 6-2 Relay Device Used in Autoconfiguration
For CLI procedures, refer to the Cisco IOS Release 12.0 documentation on Cisco.com for additional information and CLI procedures.
Obtaining Configuration Files
Depending on the availability of the IP address and the configuration filename in the DHCP reserved lease, the switch obtains its configuration information in the following ways:
•
The IP address and the configuration filename is reserved for the switch and provided in the DHCP reply (one-file read method).
The switch receives its IP address, subnet mask, and configuration filename from the DHCP server. It also receives a DNS server IP address and a TFTP server name. The switch sends a DNS request to the DNS server, specifying the TFTP server name, to obtain the TFTP server address. Then the switch sends a unicast message to the TFTP server to retrieve the named configuration file from the base directory of the server, and upon receipt, completes its boot-up process.
•
Only the configuration filename is reserved for the switch. The IP address is dynamically allocated to the switch by the DHCP server (one-file read method).
The switch follows the same configuration process described above.
•
Only the IP address is reserved for the switch and provided in the DHCP reply. The configuration filename is not provided (two-file read method).
The switch receives its IP address and subnet mask from the DHCP server. It also receives a DNS server IP address and a TFTP server name. The switch sends a DNS request to the DNS server, specifying the TFTP server name, to obtain the TFTP server address.
The switch sends a unicast message to the TFTP server to retrieve the network-confg or cisconet.cfg default configuration file. (If the network-confg file cannot be read, the switch reads the cisconet.cfg file.)
The default configuration file contains the host names-to-IP-address mapping for the switch. The switch fills its host table with the information in the file and obtains its host name. If the host name is not found in the file, the switch uses the host name in the DHCP reply. If the host name is not specified in the DHCP reply, the switch uses the default "Switch" as its host name.
After obtaining its host name from the default configuration file or the DHCP reply, the switch reads the configuration file that has the same name as its host name (hostname-confg or hostname.cfg, depending on whether network-confg or cisconet.cfg was read earlier) from the TFTP server. If the cisconet.cfg file is read, the filename of the host is truncated to eight characters.
If the switch cannot read the network-confg, cisconet.cfg, or the host-name file, it reads the router-confg file. If the switch cannot read the router-confg file, it reads the ciscortr.cfg file.
Note
The switch broadcasts TFTP server requests if the TFTP server name is not obtained from the DHCP replies, if all attempts to read the configuration file through unicast transmissions fail, or if the TFTP server name cannot be resolved to an IP address.
Example Configuration
Figure 6-3 shows a sample network for retrieving IP information using DHCP-based autoconfiguration.
Figure 6-3 DHCP-Based Autoconfiguration Network Example
Table 6-1 shows the configuration of the reserved leases on the DHCP server.
Table 6-1 DHCP Server Configuration
| |
Switch-1
|
Switch-2
|
Switch-3
|
Switch-4
|
Binding key (hardware address)
|
00e0.9f1e.2001
|
00e0.9f1e.2002
|
00e0.9f1e.2003
|
00e0.9f1e.2004
|
IP address
|
10.0.0.21
|
10.0.0.22
|
10.0.0.23
|
10.0.0.24
|
Subnet mask
|
255.255.255.0
|
255.255.255.0
|
255.255.255.0
|
255.255.255.0
|
Router address
|
10.0.0.10
|
10.0.0.10
|
10.0.0.10
|
10.0.0.10
|
DNS server address
|
10.0.0.2
|
10.0.0.2
|
10.0.0.2
|
10.0.0.2
|
TFTP server name
|
maritsu or 10.0.0.3
|
maritsu or 10.0.0.3
|
maritsu or 10.0.0.3
|
maritsu or 10.0.0.3
|
Boot filename (configuration file) (optional)
|
switch1-confg
|
switch2-confg
|
switch3-confg
|
switch4-confg
|
Host name (optional)
|
switch1
|
switch2
|
switch3
|
switch4
|
DNS Server Configuration
The DNS server maps the TFTP server name maritsu to IP address 10.0.0.3.
TFTP Server Configuration (on UNIX)
The TFTP server base directory is set to /tftpserver/work/. This directory contains the network-confg file used in the two-file read method. This file contains the host name to be assigned to the switch based on its IP address. The base directory also contains a configuration file for each switch (switch1-confg, switch2-confg, and so forth) as shown in this display:
prompt> cd /tftpserver/work/
prompt> cat network-confg
ip host switch1 10.0.0.21
ip host switch2 10.0.0.22
ip host switch3 10.0.0.23
ip host switch4 10.0.0.24
DHCP Client Configuration
No configuration file is present on Switch 1 through Switch 4.
Configuration Explanation
In Figure 6-3, Switch 1 reads its configuration file as follows:
•
It obtains its IP address 10.0.0.21 from the DHCP server.
•
If no configuration filename is given in the DHCP server reply, Switch 1 reads the network-confg file from the base directory of the TFTP server.
•
It adds the contents of the network-confg file to its host table.
•
It reads its host table by indexing its IP address 10.0.0.21 to its host name (switch1).
•
It reads the configuration file that corresponds to its host name; for example, it reads switch1-confg from the TFTP server.
Switches 2 through 4 retrieve their configuration files and IP addresses in the same way.
Changing the Password
You can assign the password of your switch in the following ways:
•
Using the setup program, as described in the release notes
•
Manually assigning a password, as described in this section
Note
You can change a password only by using the CLI. Your connection with the switch ends when you change the enable secret password. You will then need to reopen the session with the new password. If you have forgotten your password, see the "Recovering from a Lost or Forgotten Password" section.
Because many privileged EXEC commands are used to set operating parameters, you should password-protect these commands to prevent unauthorized use. Catalyst 2900 XL and Catalyst 3500 XL switches have two commands for setting passwords:
•
enable secret password (a very secure, encrypted password)
•
enable password password (a less secure, unencrypted password)
You must enter one of these passwords to gain access to privileged EXEC mode. We recommend that you use the enable secret password.
Note
When set, the enable secret password takes precedence, and the enable password serves no purpose.
If you enter the enable secret command, the text is encrypted before it is written to the config.text file, and it is unreadable. If you enter the enable password command, the text is written as entered to the config.text file where you can read it.
You can also specify up to 15 privilege levels and define passwords for them by using the enable password [level level] {password} or the enable secret [level level] {password} command. Level 1 is EXEC-mode user privileges. If you do not specify a level, the privilege level defaults to 15 (privileged EXEC-mode privileges).
You can specify a level, set a password, and give the password only to users who need to have access at this level. Use the privilege level global configuration command to specify commands accessible at various levels.
Note
You need an enable secret password with a privilege level 15 to access CMS. You must also use this password if you configure the Terminal Access Controller Access Control System Plus (TACACS+) protocol from the CLI so that all your HTTP connections are authenticated through the TACACS+ server. The Telnet password must be an enable secret password.
For information about managing passwords in switch clusters, see the "Passwords" section.
Both types of passwords can contain from 1 to 25 uppercase and lowercase alphanumeric characters, and both can start with a number. Spaces are also valid password characters; for example, two words is a valid password. Leading spaces are ignored; trailing spaces are recognized. The password is case sensitive.
To remove a password, use the no version of the commands: no enable secret or no enable password. If you lose or forget your enable password, see the "Recovering from a Lost or Forgotten Password" section.
For CLI procedures, refer to the Cisco IOS Release 12.0 documentation on Cisco.com for additional information and CLI procedures.
Setting the System Date and Time
You can change the date and a 24-hour clock time setting on the switch. If you are entering the time for an American time zone, enter the three-letter abbreviation for the time zone, such as PST for Pacific standard time. If you are identifying the time zone by referring to Greenwich mean time, enter UTC (universal coordinated time). You then must enter a negative or positive number as an offset to indicate the number of time zones between the switch and Greenwich, England. Enter a negative number if the switch is west of Greenwich, England, and east of the international date line. For example, California is eight time zones west of Greenwich, so you would enter -8. Enter a positive number if the switch is east of Greenwich. You can also enter negative and positive numbers for minutes.
Configuring Daylight Saving Time
You can configure the switch to change to daylight saving time on a particular day every year, on a day that you enter, or not at all.
For CLI procedures, refer to the Cisco IOS Release 12.0 documentation on Cisco.com for additional information and CLI procedures.
Configuring the Network Time Protocol
In complex networks, it is often prudent to distribute time information from a central server. The Network Time Protocol (NTP) can distribute time information by responding to requests from clients or by broadcasting time information.
For CLI procedures, refer to the Cisco IOS Release 12.0 documentation on Cisco.com for additional information and CLI procedures.
Configuring the Switch as an NTP Client
You configure the switch as an NTP client by entering the IP addresses of up to ten NTP servers and specifying which server should be used first. You can also enter an authentication key to be used as a password when requests for time information are sent to the server.
Enabling NTP Authentication
To ensure the validity of information received from NTP servers, you can authenticate NTP messages with public-key encryption. This procedure must be coordinated with the administrator of the NTP servers: the information you enter will be matched by the servers to authenticate it.
Configuring the Switch for NTP Broadcast-Client Mode
You can configure the switch to receive NTP broadcast messages if there is an NTP broadcast server, such as a router, broadcasting time information on the network. You can also enter a value to account for any round-trip delay between the client and the NTP broadcast server.
Configuring SNMP
If your switch is part of a cluster, the clustering software can change Simple Network Management Protocol (SNMP) parameters (such as host names) when the cluster is created. If you are configuring a cluster for SNMP, see the "SNMP Community Strings" section.
Disabling and Enabling SNMP
SNMP is enabled by default and must be enabled for Cluster Management features to work properly.
SNMP is always enabled for Catalyst 1900 and Catalyst 2820 switches.
For CLI procedures, refer to the Cisco IOS Release 12.0 documentation on Cisco.com for additional information and CLI procedures.
Entering Community Strings
Community strings serve as passwords for SNMP messages, permitting access to the agent on the switch. If you are entering community strings for a cluster member, see the "SNMP Community Strings" section. You can enter community strings with the following characteristics:
Read-only (RO)—Requests accompanied by the string can display MIB-object information.
Read-write (RW)—Requests accompanied by the string can display MIB-object information and set MIB objects.
For CLI procedures, refer to the Cisco IOS Release 12.0 documentation on Cisco.com for additional information and CLI procedures.
Adding Trap Managers
A trap manager is a management station that receives and processes traps. When you configure a trap manager, the community strings for each member switch must be unique. If a member switch has an assigned IP address, the management station accesses the switch by using that IP address.
By default, no trap manager is defined, and no traps are issued. Table 6-2 describes the Catalyst 2900 XL and Catalyst 3500 XL switch traps. You can enable any or all of these traps and configure a trap manager on these switches to receive them.
Table 6-2 Catalyst 2900 XL and Catalyst 3500 XL Switch Traps
Config
|
Generate traps whenever the switch configuration changes.
|
SNMP
|
Generate the supported SNMP traps.
|
TTY
|
Generate traps when the switch starts a management console CLI session.
|
VLAN membership
|
Generate a trap for each VLAN Membership Policy Server (VMPS) change.
|
VTP
|
Generate a trap for each VLAN Trunk Protocol (VTP) change.
|
C2900/C3500
|
Generate the switch-specific traps. These traps are in the private enterprise-specific Management Information Base (MIB).
|
Catalyst 1900 and Catalyst 2820 switches support up to four trap managers. When you configure community strings for these switches, limit the string length to 32 characters. When configuring traps on these switches, you cannot configure individual trap managers to receive specific traps.
Table 6-3 describes the Catalyst 1900 and Catalyst 2820 switch traps. You can enable any or all of these traps, but these traps are received by all configured trap managers.
Table 6-3 Catalyst 1900 and Catalyst 2820 Switch Traps
Trap Type
|
Description
|
Address-violation
|
Generates a trap when the address violation threshold is exceeded.
|
Authentication
|
Generates a trap when an SNMP request is not accompanied by a valid community string.
|
BSC
|
Generates a trap when the broadcast threshold is exceeded.
|
Link-up-down
|
Generates a link-down trap when a port is suspended or disabled for any of these reasons:
• Secure address violation (address mismatch or duplication)
• Network connection error (loss of linkbeat or jabber error)
• User disabling the port
Generates a link-up trap when a port is enabled for any of these reasons:
• Presence of linkbeat
• Management intervention
• Recovery from an address violation or any other error
• STP action
|
VTP
|
Generates a trap when VTP changes occur.
|
Beginning in privileged EXEC mode, follow these steps to add a trap manager and a community string:
| |
Command
|
Purpose
|
Step 1
|
config terminal
|
Enter global configuration mode.
|
Step 2
|
snmp-server host 172.2.128.263 traps1 snmp vlan-membership
|
Enter the trap manager IP address, the community string, and the traps to generate.
|
Step 3
|
end
|
Return to privileged EXEC mode.
|
Step 4
|
show running-config
|
Verify that the information was entered correctly by displaying the running configuration.
|
Configuring CDP
Use the Cisco IOS CLI and Cisco Discovery Protocol (CDP) to enable CDP for the switch, set global CDP parameters, and display information about neighboring Cisco devices.
CDP enables the Cluster Management Suite to display a graphical view of the network. For example, the switch uses CDP to find cluster candidates and to maintain information about cluster members and other devices up to three cluster-enabled devices away from the command switch.
If necessary, you can configure CDP to discover switches running the Cluster Management Suite up to seven devices away from the command switch. Devices that do not run clustering software display as edge devices, and CDP cannot discover any device connected to them.
Note
Creating and maintaining switch clusters is based on the regular exchange of CDP messages. Disabling CDP can interrupt cluster discovery. For more information about the role that CDP plays in clustering, see the "Automatic Discovery of Cluster Candidates" section.
Configuring CDP for Extended Discovery
You can change the default configuration of CDP on the command switch to continue discovering devices up to seven hops away. Figure 6-4 shows a command switch that can discover candidates and cluster members up to seven devices away from it. Figure 6-4 also shows the command switch connected to a Catalyst 5000 series switch. Although the Catalyst 5000 supports CDP, it does not support clustering, and the command switch cannot learn about connected candidate switches connected to it, even if they are running CMS.
Figure 6-4 Discovering Cluster Candidates through CDP
Beginning in privileged EXEC mode, follow these steps to configure the number of hops that CDP uses to discover candidate switches and cluster members.
| |
Command
|
Purpose
|
Step 1
|
configure terminal
|
Enter global configuration mode.
|
Step 2
|
cluster discovery hop-count number
|
Enter the number of hops that you want CDP to search for cluster candidates and cluster members.
|
Step 3
|
end
|
Return to privileged EXEC mode.
|
Step 4
|
show running-config
|
Verify the change by displaying the running configuration file. The hop count is displayed in the file.
|
Configuring STP
Spanning Tree Protocol (STP) provides path redundancy while preventing undesirable loops in the network. Only one active path can exist between any two stations. STP calculates the best loop-free path throughout the network.
Supported STP Instances
You create an STP instance when you assign an interface to a VLAN. The STP instance is removed when the last interface is moved to another VLAN. You can configure switch and port parameters before an STP instance is created. These parameters are applied when the STP instance is created. You can change all VLANs on a switch by using the stp-list parameter when you enter STP commands through the CLI. For more information, refer to the Catalyst 2900 Series XL and Catalyst 3500 Series XL Command Reference.
All Catalyst 3500 XL switches and most Catalyst 2900 XL switches support 250 VLANs. The Catalyst 2912 XL, Catalyst 2924 XL, and Catalyst 2924C XL support only 64 VLANs. For more information about VLANs, see "Configuring VLANs."
Each VLAN is a separate STP instance. If you have already used up all available STP instances on a switch, adding another VLAN anywhere in the VLAN Trunk Protocol (VTP) domain creates a VLAN that is not running STP on that switch. For example, if 250 VLANs are defined in the VTP domain, you can enable STP on those 250 VLANs. The remaining VLANs must operate with STP disabled.
You can disable STP on one of the VLANs where it is running, and then enable it on the VLAN where you want it to run. Use the no spanning-tree vlan vlan-id global configuration command to disable STP on a specific VLAN, and use the spanning-tree vlan vlan-id global configuration command to enable STP on the desired VLAN.
Caution 
Switches that are not running spanning tree still forward Bridge Protocol Data Units (BPDUs) that they receive so that the other switches on the VLAN that have a running STP instance can break loops. Therefore, spanning tree must be running on enough switches so that it can break all the loops in the network. For example, at least one switch on each loop in the VLAN must be running spanning tree. It is not absolutely necessary to run spanning tree on all switches in the VLAN; however, if you are running STP only on a minimal set of switches, an incautious change to the network that introduces another loop into the VLAN can result in a broadcast storm.

Note
If you have the default allowed list on the trunk ports of that switch, the new VLAN is carried on all trunk ports. Depending on the topology of the network, this could create a loop in the new VLAN that will not be broken, particularly if there are several adjacent switches that all have run out of STP instances. You can prevent this by setting allowed lists on the trunk ports of switches that have used up their allocation of STP instances. Setting up allowed lists is not necessary in many cases and makes it more labor-intensive to add another VLAN to the network.
Using STP to Support Redundant Connectivity
You can create a redundant backbone with STP by connecting two of the switch ports to another device or to two different devices. STP automatically disables one port but enables it if the other port is lost. If one link is high-speed and the other low-speed, the low-speed link is originally disabled. If the two link speeds are the same, the port priority and the port ID are added together, and STP disables the link with the lowest value.
You can also create redundant links between switches by using EtherChannel port groups. For more information about creating port groups, see the "Creating EtherChannel Port Groups" section.
Disabling STP
STP is enabled by default. Disable STP only if you are sure there are no loops in the network topology.
Caution 
When STP is disabled and loops are present in the topology, excessive traffic and indefinite packet duplication can severely reduce network performance.
Beginning in privileged EXEC mode, follow these steps to disable STP:
| |
Command
|
Purpose
|
Step 1
|
configure terminal
|
Enter global configuration mode.
|
Step 2
|
no spanning-tree vlan stp-list
|
Disable STP on a VLAN.
|
Step 3
|
end
|
Return to privileged EXEC mode.
|
Step 4
|
show spanning-tree
|
Verify your entry.
|
Accelerating Aging to Retain Connectivity
The default for aging dynamic addresses is 5 minutes. However, a reconfiguration of the spanning tree can cause many station locations to change. Because these stations could be unreachable for 5 minutes or more during a reconfiguration, the address-aging time is accelerated so that station addresses can be dropped from the address table and then relearned. The accelerated aging is the same as the forward-delay parameter value when STP reconfigures.
Because each VLAN is a separate instance of STP, the switch accelerates aging on a per-VLAN basis. A reconfiguration of STP on one VLAN can cause the dynamic addresses learned on that VLAN to be subject to accelerated aging. Dynamic addresses on other VLANs can be unaffected and remain subject to the aging interval entered for the switch.
Configuring STP and UplinkFast in a Cascaded Cluster
STP uses default values that can be reduced when configuring Catalyst 2900 XL and Catalyst 3500 XL switches in cascaded configurations. If an STP root switch is part of a cluster that is one switch from a cascaded stack, you can customize STP to reconverge more quickly after a switch failure. Figure 6-5 shows modular Catalyst 2900 XL and Catalyst 3500 XL switches in three cascaded clusters that use the GigaStack GBIC. Table 6-4 shows the default STP settings and those that are acceptable for these configurations.
Table 6-4 Default and Acceptable STP Parameter Settings (in Seconds)
STP Parameter
|
STP Default (IEEE)
|
Acceptable for Option 1
|
Acceptable for Option 2
|
Acceptable for Option 3
|
Hello Time
|
2
|
1
|
1
|
1
|
Max Age
|
20
|
6
|
10
|
6
|
Forwarding delay
|
15
|
4
|
7
|
4
|
Figure 6-5 Gigabit Ethernet Clusters
Enabling UplinkFast on all cluster switches can further reduce the time it takes cluster switches to begin forwarding after a new root switch is selected.
Configuring Redundant Links By Using STP UplinkFast
Switches in hierarchical networks can be grouped into backbone switches, distribution switches, and access switches. Figure 6-6 shows a complex network where distribution switches and access switches each have at least one redundant link that STP blocks to prevent loops.
If a switch looses connectivity, the switch begins using the alternate paths as soon as STP selects a new root port. When STP reconfigures the new root port, other ports flood the network with multicast packets, one for each address that was learned on the port. You can limit these bursts of multicast traffic by reducing the max-update-rate parameter. The default for this parameter is 150 packets per second. However, if you enter zero, station-learning frames are not generated, so the STP topology converges more slowly after a loss of connectivity.
STP UplinkFast is a Cisco enhancement that accelerates the choice of a new root port when a link or switch fails or when STP reconfigures itself. The root port transitions to the forwarding state immediately without going through the listening and learning states, as it would with normal STP procedures. UplinkFast is most useful in edge or access switches and might not be appropriate for backbone devices.
Figure 6-6 Switches in a Hierarchical Network
Enabling STP UplinkFast
When you enable UplinkFast, it is enabled for the entire switch and cannot be enabled for individual VLANs.
Beginning in privileged EXEC mode, follow these steps to configure UplinkFast:
| |
Command
|
Purpose
|
Step 1
|
configure terminal
|
Enter global configuration mode.
|
Step 2
|
spanning-tree uplinkfast max-update-rate pkts-per-second
|
Enable UplinkFast on the switch.
The range is from 0 to 1000 packets per second. The default is 150.
If you set the rate to 0, station-learning frames are not generated, so the STP topology converges more slowly after a loss of connectivity.
|
Step 3
|
exit
|
Return to privileged EXEC mode.
|
Step 4
|
show spanning-tree
|
Verify your entries.
|
When UplinkFast is enabled, the bridge priority of all VLANs is set to 49152, and the path cost of all ports and VLAN trunks is increased by 3000. This change reduces the chance that the switch will become the root switch. When UplinkFast is disabled, the bridge priorities of all VLANs and path costs of all ports are set to default values.
Configuring Cross-Stack UplinkFast
Cross-stack UplinkFast (CSUF) provides a fast spanning-tree transition (fast convergence in less than 2 seconds under normal network conditions) across a stack of switches that use the GigaStack GBICs connected in a shared cascaded configuration (multidrop backbone). During the fast transition, an alternate redundant link on the stack of switches is placed into the forwarding state without causing temporary spanning-tree loops or loss of connectivity to the backbone. With this feature, you can have a redundant and resilient network in some configurations.
CSUF might not provide a fast transition all the time; in these cases, the normal STP transition occurs, which completes in 30 to 40 seconds. For more information, see the "Events that Cause Fast Convergence" section.
How CSUF Works
CSUF ensures that one link in the stack is elected as the path to the root. As shown in Figure 6-7, Switches A, B, and C are cascaded through the Gigastack GBIC to form a multidrop backbone, which communicates control and data traffic across the switches at the access layer. The switches in the stack use their stack ports to communicate with each other and to connect to the stack backbone; stack ports are always in the STP forwarding state. The stack root port on Switch A provides the path to the root of the spanning tree; the alternate stack root ports on Switches B and C can provide an alternate path to the spanning-tree root if the current stack root switch fails or its link to the spanning-tree root fails.
Link A, the root link, is in the STP forwarding state; Links B and C are alternate redundant links that are in the STP blocking state. If Switch A fails, if its stack root port fails, or if Link A fails, CSUF selects either the Switch B or Switch C alternate stack root port and puts it into the forwarding state in less than 1 second.
Figure 6-7 Cross-Stack UplinkFast Topology
CSUF implements the Stack Membership Discovery Protocol and the Fast Uplink Transition Protocol. Using the Stack Membership Discovery Protocol, all stack switches build a neighbor list of stack members through the receipt of discovery hello packets. When certain link loss or STP events occur (described in the "Events that Cause Fast Convergence" section), the Fast Uplink Transition Protocol uses the neighbor list to send fast-transition requests on the stack port to stack members.
The switch sending the fast-transition request needs to do a fast transition to the forwarding state of a port that it has chosen as the root port, and it must obtain an acknowledgement from each stack switch before performing the fast transition.
Each switch in the stack determines if the sending switch is a better choice than itself to be the stack root of this STP instance by comparing STP root, cost, and bridge ID. If the sending switch is the best choice as the stack root, the switch in the stack returns an acknowledgement; otherwise, it does not respond to the sending switch (drops the packet) and prevents the sending switch from receiving acknowledgements from all stack switches.
When acknowledgements are received from all stack switches, the Fast Uplink Transition Protocol on the sending switch immediately transitions its alternate stack root port to the forwarding state. If acknowledgements from all stack switches are not obtained by the sending switch, the normal STP transitions (blocking, listening, learning, forwarding) take place, and the spanning-tree topology converges at its normal rate (2 * forward-delay time + max-age time).
The Fast Uplink Transition Protocol is implemented on a per-VLAN basis and affects only one STP instance at a time.
Events that Cause Fast Convergence
Depending on the network event or failure, fast convergence provided by CSUF might or might not occur.
Fast convergence (within 2 seconds under normal network conditions) occurs under these circumstances:
•
The stack root port link goes down.
If two switches in the stack have alternate paths to the root, only one of the switches performs the fast transition.
•
The failed link, which connected the stack root to the STP root, comes back up.
•
A network reconfiguration causes a new stack root switch to be selected.
•
A network reconfiguration causes a new port on the current stack root switch to be chosen as the stack root port.
Note
The fast transition might not occur if multiple events occur simultaneously. For example, if a stack member switch is powered down, and at the same time, a link connecting the stack root to the STP root comes back up, the normal STP convergence occurs.
Normal STP convergence (30 to 40 seconds) occurs under these conditions:
•
The stack root switch is powered down or the software failed.
•
The stack root switch, which was powered down or failed, is powered up.
•
A new switch, which might become the stack root, is added to the stack.
•
A switch other than the stack root is powered down or failed.
•
A link fails between stack ports on the multidrop backbone.
Note
The fast transition of CSUF depends on the amount of network traffic and how you connect the GigaStack GBICs across the stack switches. Because the Fast Uplink Transition Protocol only waits 2 seconds to receive acknowledgements from all stack switches, heavy network traffic might prevent the fast transition from occurring within this time frame. Instead of a fast transition, the normal STP convergence then occurs.
Limitations
The following limitations apply to CSUF:
•
CSUF uses the Gigastack GBIC and runs on all Catalyst 3500 XL switches but only on modular Catalyst 2900 XL switches.
•
Up to nine stack switches can be connected through their stack ports to the multidrop backbone. Only one stack port per switch is supported.
•
Each stack switch can be connected to the STP backbone through one uplink.
•
Up to 64 VLANs are supported.
Connecting the Stack Ports
A fast transition occurs across the stack of switches if the multidrop backbone connections are a continuous link from one GigaStack GBIC to another as shown in Figure 6-8. In addition, follow these guidelines:
•
Do not connect alternate stack root ports to stack ports.
•
Only one stack port is supported per switch.
•
All stack ports on the stack of switches must be connected to the multidrop backbone.
•
You can connect the open ports on the top and bottom GigaStack GBICs within the same stack to form a redundant link.
Figure 6-8 GigaStack GBIC Connections and STP Convergence
Configuring Cross-Stack UplinkFast
Before enabling CSUF, make sure your stack switches are properly connected. For more information, see the "Connecting the Stack Ports" section.
Beginning in privileged EXEC mode, follow these steps to enable CSUF:
| |
Command
|
Purpose
|
Step 1
|
configure terminal
|
Enter global configuration mode.
|
Step 2
|
spanning-tree uplinkfast [max-update-rate pkts-per-second]
|
Enable UplinkFast on the switch.
(Optional) For max-update-rate pkts-per-second, specify the number of packets per second at which update packets are sent. The range is 0 to 65535; the default is 150 packets per second.
|
Step 1
|
interface interface-id
|
Enter interface configuration mode, and specify the GBIC interface on which to enable CSUF.
|
Step 2
|
spanning-tree stack-port
|
Enable CSUF on only one stack-port GBIC interface.
The stack port connects to GigaStack GBIC multidrop backbone. If you try to enable CSUF on a Fast Ethernet or a copper-based Gigabit Ethernet port, you receive an error message.
If CSUF is already enabled on an interface and you try to enable it on another interface, you receive an error message. You must disable CSUF on the first interface before enabling it on a new interface.
Use this command only on access switches.
|
Step 3
|
end
|
Return to privileged EXEC mode.
|
Step 4
|
show spanning-tree
|
Verify your entries.
|
Step 5
|
copy running-config startup-config
|
(Optional) Save your entries in the configuration file.
|
To disable CSUF on an interface, use the no spanning-tree stack-port interface configuration command. To disable UplinkFast on the switch, use the no spanning-tree uplinkfast global configuration command.
Changing the STP Parameters for a VLAN
The root switch for each VLAN is the switch with the highest priority and transmits topology frames to other switches in the spanning tree. You can change the root parameters for the VLANs on a selected switch. The following options define how your switch responds when STP reconfigures itself.
Protocol
|
Implementation of STP to use: IBM or IEEE. The default is IEEE.
|
Priority
|
Value (0 to 65535) used to identify the root switch. The switch with the lowest value has the highest priority and is selected as the root.
|
Max age
|
Number of seconds (6 to 200) a switch waits without receiving STP configuration messages before attempting a reconfiguration. This parameter takes effect when a switch is operating as the root switch. Switches not acting as the root use the root-switch Max age parameter.
|
Hello Time
|
Number of seconds (1 to 10) between the transmission of hello messages, which indicate that the switch is active. Switches not acting as a root switch use the root-switch Hello-time value.
|
Forward Delay
|
Number of seconds (4 to 200) a port waits before changing from its STP learning and listening states to the forwarding state. This wait is necessary so that other switches on the network ensure that no loop is formed before they allow the port to forward packets.
|
Changing the STP Implementation
Beginning in privileged EXEC mode, follow these steps to change the STP implementation. The stp-list is the list of VLANs to which the STP command applies.
| |
Command
|
Purpose
|
Step 1
|
configure terminal
|
Enter global configuration mode.
|
Step 2
|
spanning-tree [vlan stp-list] protocol {ieee | ibm}
|
Specify the STP implementation to be used for a spanning-tree instance.
|
Step 3
|
end
|
Return to privileged EXEC mode.
|
Step 4
|
show spanning-tree
|
Verify your entry.
|
Changing the Switch Priority
Beginning in privileged EXEC mode, follow these steps to change the switch priority and affect which switch is the root switch. The stp-list is the list of VLANs to which the STP command applies.
| |
Command
|
Purpose
|
Step 1
|
configure terminal
|
Enter global configuration mode.
|
Step 2
|
spanning-tree [vlan stp-list] priority bridge-priority
|
Configure the switch priority for the specified spanning-tree instance.
Enter a number from 0 to 65535; the lower the number, the more likely the switch will be chosen as the root switch.
|
Step 3
|
end
|
Return to privileged EXEC mode.
|
Step 4
|
show spanning-tree
|
Verify your entry.
|
Changing the BPDU Message Interval
Beginning in privileged EXEC mode, follow these steps to change the BPDU message interval (max age time). The stp-list is the list of VLANs to which the STP command applies.
| |
Command
|
Purpose
|
Step 1
|
configure terminal
|
Enter global configuration mode.
|
Step 2
|
spanning-tree [vlan stp-list] max-age seconds
|
Specify the interval between messages the spanning tree receives from the root switch.
The maximum age is the number of seconds a switch waits without receiving STP configuration messages before attempting a reconfiguration. Enter a number from 6 to 200.
|
Step 3
|
end
|
Return to privileged EXEC mode.
|
Step 4
|
show spanning-tree
|
Verify your entry.
|
Changing the Hello BPDU Interval
Beginning in privileged EXEC mode, follow these steps to change the hello BPDU interval