This book describes configuration information and examples for IP multicast routing on the switch.
• Document Conventions , on page lv
• Related Documentation, on page lvi
• Obtaining Documentation and Submitting a Service Request, on page lvii
Document Conventions
This document uses the following conventions:
DescriptionConvention
^ or Ctrl
Italic font
...
|
[x | y]
{x | y}
Both the ^ symbol and Ctrl represent the Control (Ctrl) key on a keyboard. For
example, the key combination ^D or Ctrl-Dmeans that you hold down the Control
key while you press the D key. (Keys are indicated in capital letters but are not
case sensitive.)
Commands and keywords and user-entered text appear in boldfont.bold font
Document titles, new or emphasized terms, and arguments for which you supply
values are in italic font.
Terminal sessions and information the system displays appear in courier font.Courier font
Bold Courier font indicates text that the user must enter.Bold Courier font
Elements in square brackets are optional.[x]
An ellipsis (three consecutive nonbolded periods without spaces) after a syntax
element indicates that the element can be repeated.
A vertical line, called a pipe, indicates a choice within a set of keywords or
arguments.
Optional alternative keywords are grouped in brackets and separated by vertical
bars.
Required alternative keywords are grouped in braces and separated by vertical
bars.
Nested set of square brackets or braces indicate optional or required choices within
optional or required elements. Braces and a vertical bar within square brackets
indicate a required choice within an optional element.
string
A nonquoted set of characters. Do not use quotation marks around the string or
the string will include the quotation marks.
Nonprinting characters such as passwords are in angle brackets.< >
Default responses to system prompts are in square brackets.[ ]
!, #
An exclamation point (!) or a pound sign (#) at the beginning of a line of code
indicates a comment line.
Reader Alert Conventions
This document may use the following conventions for reader alerts:
Note
Means readertake note. Notes contain helpful suggestions or references to material not covered in the manual.
Tip
Means the following information will help you solve a problem.
Caution
Means reader be careful. In this situation, you might do something that could result in equipment damage or
loss of data.
Timesaver
Warning
Means thedescribed action saves time. You can save time by performing the action described in the paragraph.
IMPORTANT SAFETY INSTRUCTIONS
This warning symbol means danger. You are in a situation that could cause bodily injury. Before you work
on any equipment, be aware of the hazards involved with electrical circuitry and be familiar with standard
practices for preventing accidents. Use the statement number provided at the end of each warning to locate
its translation in the translated safety warnings that accompanied this device. Statement 1071
SAVE THESE INSTRUCTIONS
Related Documentation
• Cisco Catalyst 2960, 2960-S, 2960-SF and 2960-Plus Switch documentation, located at:
Obtaining Documentation and Submitting a Service Request
For information on obtaining documentation, submitting a service request, and gathering additional information,
see the monthly What's New in Cisco Product Documentation, which also lists all new and revised Cisco
technical documentation, at:
Subscribe to the What's New in Cisco Product Documentation as a Really Simple Syndication (RSS) feed
and set content to be delivered directly to your desktop using a reader application. The RSS feeds are a free
service and Cisco currently supports RSS version 2.0.
• Information About Using the Command-Line Interface, on page 1
• How to Use the CLI to Configure Features, on page 5
Information About Using the Command-Line Interface
Note
Search options on the GUI and CLI are case sensitive.
Command Modes
The Cisco IOS user interface is divided into many different modes. The commands available to you depend
on which mode you are currently in. Enter a question mark (?) at the system prompt to obtain a list of commands
available for each command mode.
You can start a CLI session through a console connection, through Telnet, an SSH, or by using the browser.
When you start a session, you begin in user mode, often called user EXEC mode. Only a limited subset of
the commands are available in user EXEC mode. For example, most of the user EXEC commands are one-time
commands, such as showcommands, which show the current configuration status, and clear commands,
which clear counters or interfaces. The user EXEC commands are not saved when the switch reboots.
To have access to all commands, you must enter privileged EXEC mode. Normally, you must enter a password
to enter privileged EXEC mode. From this mode, you can enter any privileged EXEC command or enter
global configuration mode.
Using the configuration modes (global, interface, and line), you can make changes to the running configuration.
If you save the configuration, these commands are stored and used when the switch reboots. To access the
various configuration modes, you must start at global configuration mode. From global configuration mode,
you can enter interface configuration mode and line configuration mode .
This table describes the main command modes, how to access each one, the prompt you see in that mode, and
how to exit the mode.
Use this mode to
verify commands
that you have
entered. Use a
password to protect
access to this mode.
Use this mode to
configure parameters
that apply to the
entire switch.
VLAN
configuration
While in global
configuration mode,
enter the vlanvlan-id command.
Switch(config-vlan)#
To exit to
global
configuration
mode, enter the
exit command.
To return to
privileged
EXEC mode,
press Ctrl-Z or
enter end.
Use this mode to
configure VLAN
parameters. When
VTP mode is
transparent, you can
create
extended-range
VLANs (VLAN IDs
greater than 1005)
and save
configurations in the
switch startup
configuration file.
While in global
configuration mode,
specify a line with
the line vty or lineconsole command.
Switch(config-if)#
Switch(config-line)#
To exit to
global
configuration
mode, enter
exit.
To return to
privileged
EXEC mode,
press Ctrl-Z or
enter end.
To exit to
global
configuration
mode, enter
exit.
To return to
privileged
EXEC mode,
press Ctrl-Z or
enter end.
Use this mode to
configure parameters
for the Ethernet
ports.
Use this mode to
configure parameters
for the terminal line.
Understanding Abbreviated Commands
You need to enter only enough characters for the switch to recognize the command as unique.
This example shows how to enter the showconfiguration privileged EXEC command in an abbreviated form:
Switch# show conf
No and Default Forms of Commands
Almost every configuration command also has a no form. In general, use the no form to disable a feature or
function or reverse the action of a command. For example, the no shutdowninterface configuration command
reverses the shutdown of an interface. Use the command without the keyword no to reenable a disabled feature
or to enable a feature that is disabled by default.
Configuration commands can also have a default form. The default form of a command returns the command
setting to its default. Most commands are disabled by default, so the default form is the same as the noform.
However, some commands are enabled by default and have variables set to certain default values. In these
cases, the default command enables the command and sets variables to their default values.
CLI Error Messages
This table lists some error messages that you might encounter while using the CLI to configure your switch.
You can log and view changes to the switch configuration. You can use the Configuration Change Logging
and Notification feature to track changes on a per-session and per-user basis. The logger tracks each
configuration command that is applied, the user who entered the command, the time that the command was
entered, and the parser return code for the command. This feature includes a mechanism for asynchronous
notification to registered applications whenever the configuration changes. You can choose to have the
notifications sent to the syslog.
You did not enter enough
characters for your switch to
recognize the command.
You did not enter all of the
keywords or values required by
this command.
You entered the command
incorrectly. The caret (^) marks
the point of the error.
Reenter the command followed by a question mark
(?) without any space between the command and
the question mark.
The possible keywords that you can enter with the
command appear.
Reenter the command followed by a question mark
(?) with a space between the command and the
question mark.
The possible keywords that you can enter with the
command appear.
Enter a question mark (?) to display all of the
commands that are available in this command mode.
The possible keywords that you can enter with the
command appear.
Note
Only CLI or HTTP changes are logged.
Using the Help System
You can enter a question mark (?) at the system prompt to display a list of commands available for each
command mode. You can also obtain a list of associated keywords and arguments for any command.
Obtains a brief description of the help system in any
command mode.
Obtains a list of commands that begin with a particular
character string.
Completes a partial command name.abbreviated-command-entry <Tab>
Lists all commands available for a particular command
mode.
Lists the associated keywords for a command.command ?
Step 6
Lists the associated arguments for a keyword.command keyword ?
Example:
Switch(config)# wireless management ?
certificate Configure certificate details
interfaceSelect an interface to configure
transferActive transfer profiles
trustpointSelect a trustpoint to configure
How to Use the CLI to Configure Features
Configuring the Command History
The software provides a history or record of commands that you have entered. The command history feature
is particularly useful for recalling long or complex commands or entries, including access lists. You can
customize this feature to suit your needs.
By default, the switch records ten command lines in its history buffer. You can alter this number for a current
terminal session or for all sessions on a particular line. This procedure is optional.
SUMMARY STEPS
1. terminal history [size number-of-lines]
DETAILED STEPS
Using the Command-Line Interface
PurposeCommand or Action
Step 1
terminal history [size number-of-lines]
Example:
Switch# terminal history size 200
Recalling Commands
To recall commands from the history buffer, perform one of the actions listed in this table. These actions are
optional.
Note
SUMMARY STEPS
1. Ctrl-P or use the up arrow key
2. Ctrl-N or use the down arrow key
3. show history
DETAILED STEPS
Step 1
Ctrl-P or use the up arrow key
Changes the number of command lines that the switch
records during the current terminal session in privileged
EXEC mode. You can configure the size from 0 to 256.
The arrow keys function only on ANSI-compatible terminals such as VT100s.
PurposeCommand or Action
Recalls commands in the history buffer, beginning with the
most recent command. Repeat the key sequence to recall
successively older commands.
Returns to more recent commands in the history buffer after
recalling commands with Ctrl-Por the up arrow key.
Repeat the key sequence to recall successively more recent
commands.
Lists the last several commands that you just entered in
privileged EXEC mode. The number of commands that
appear is controlled by the setting of the terminal history
global configuration command and the history line
configuration command.
Page 65
Using the Command-Line Interface
Disabling the Command History Feature
The command history feature is automatically enabled. You can disable it for the current terminal session or
for the command line. This procedure is optional.
SUMMARY STEPS
1. terminal no history
DETAILED STEPS
Disabling the Command History Feature
PurposeCommand or Action
Step 1
terminal no history
Example:
Switch# terminal no history
Enabling and Disabling Editing Features
Although enhanced editing mode is automatically enabled, you can disable it and reenable it.
SUMMARY STEPS
1. terminal editing
2. terminal no editing
DETAILED STEPS
Step 1
Step 2
terminal editing
Example:
Switch# terminal editing
terminal no editing
Example:
Switch# terminal no editing
Disables the feature during the current terminal session in
privileged EXEC mode.
PurposeCommand or Action
Reenables the enhanced editing mode for the current
terminal session in privileged EXEC mode.
Disables the enhanced editing mode for the current terminal
session in privileged EXEC mode.
Editing Commands Through Keystrokes
The keystrokes help you to edit the command lines. These keystrokes are optional.
Note
The arrow keys function only on ANSI-compatible terminals such as VT100s.
Moves the cursor back one character.Ctrl-B or use the left arrow key
Moves the cursor forward one character.Ctrl-F or use the right arrow
Moves the cursor to the beginning of the command line.Ctrl-A
Moves the cursor to the end of the command line.Ctrl-E
Moves the cursor back one word.Esc B
Moves the cursor forward one word.Esc F
Ctrl-T
Ctrl-U or Ctrl-X
Ctrl-V or Esc Q
Return key
Transposes the character to the left of the cursor with the character located
at the cursor.
Erases the character to the left of the cursor.Delete or Backspace key
Deletes the character at the cursor.Ctrl-D
Deletes all characters from the cursor to the end of the command line.Ctrl-K
Deletes all characters from the cursor to the beginning of the command
line.
Deletes the word to the left of the cursor.Ctrl-W
Deletes from the cursor to the end of the word.Esc D
Capitalizes at the cursor.Esc C
Changes the word at the cursor to lowercase.Esc L
Capitalizes letters from the cursor to the end of the word.Esc U
Designates a particular keystroke as an executable command, perhaps as
a shortcut.
Scrolls down a line or screen on displays that are longer than the terminal
screen can display.
Ctrl-L or Ctrl-R
Editing Command Lines That Wrap
You can use a wraparound feature for commands that extend beyond a single line on the screen. When the
cursor reaches the right margin, the command line shifts ten spaces to the left. You cannot see the first ten
The More prompt is used for any output that has more lines
than can be displayed on the terminal screen, including show
command output. You can use the Return and Space bar
keystrokes whenever you see the More prompt.
Scrolls down one screen.Space bar
Redisplays the current command line if the switch suddenly sends a
message to your screen.
Page 67
Using the Command-Line Interface
characters of the line, but you can scroll back and check the syntax at the beginning of the command. The
keystroke actions are optional.
To scroll back to the beginning of the command entry, press Ctrl-B or the left arrow key repeatedly. You can
also press Ctrl-A to immediately move to the beginning of the line.
Note
The following example shows how to wrap a command line that extends beyond a single line on the screen.
SUMMARY STEPS
1. access-list
2. Ctrl-A
3. Return key
DETAILED STEPS
Editing Command Lines That Wrap
The arrow keys function only on ANSI-compatible terminals such as VT100s.
Displays the global configuration command entry that
extends beyond one line.
When the cursor first reaches the end of the line, the line is
shifted ten spaces to the left and redisplayed. The dollar
sign ($) shows that the line has been scrolled to the left.
Each time the cursor reaches the end of the line, the line is
again shifted ten spaces to the left.
Checks the complete syntax.Ctrl-A
The dollar sign ($) appears at the end of the line to show
that the line has been scrolled to the right.
Execute the commands.Return key
The software assumes that you have a terminal screen that
is 80 columns wide. If you have a different width, use the
terminalwidth privileged EXEC command to set the width
of your terminal.
Use line wrapping with the command history feature to
recall and modify previous complex command entries.
Switch# show interfaces | include protocol
Vlan1 is up, line protocol is up
Vlan10 is up, line protocol is down
GigabitEthernet1/0/1 is up, line protocol is down
GigabitEthernet1/0/2 is up, line protocol is up
Searches and filters the output.{show | more} command | {begin | include | exclude}
Expressions are case sensitive. For example, if you enter
| exclude output, the lines that contain output are not
displayed, but the lines that contain output appear.
Accessing the CLI Through a Console Connection or Through Telnet
Before you can access the CLI, you must connect a terminal or a PC to the switch console or connect a PC to
the Ethernet management port and then power on the switch, as described in the hardware installation guide
that shipped with your switch.
If your switch is already configured, you can access the CLI through a local console connection or through a
remote Telnet session, but your switch must first be configured for this type of access.
You can use one of these methods to establish a connection with the switch:
Procedure
• Connect the switch console port to a management station or dial-up modem, or connect the Ethernet
management port to a PC. For information about connecting to the console or Ethernet management port,
see the switch hardware installation guide.
• Use any Telnet TCP/IP or encrypted Secure Shell (SSH) package from a remote management station.
The switch must have network connectivity with the Telnet or SSH client, and the switch must have an
enable secret password configured.
• The switch supports up to 16 simultaneous Telnet sessions. Changes made by one Telnet user are
reflected in all other Telnet sessions.
• The switch supports up to five simultaneous secure SSH sessions.
After you connect through the console port, through the Ethernet management port, through a Telnet
session or through an SSH session, the user EXEC prompt appears on the management station.
Assigning the Switch IP Address and Default
Gateway
• Assigning the Switch IP Address and Default Gateway, on page 13
Page 70
Page 71
CHAPTER 2
Assigning the Switch IP Address and Default
Gateway
• Information About Performing Switch Setup Configuration, on page 13
Information About Performing Switch Setup Configuration
Review the sections in this module before performing your initial switch configuration tasks that include IP
address assignments and DHCP autoconfiguration.
Understanding the Boot Process
To start your switch, you need to follow the procedures in the Getting Started Guide or the hardware installation
guide for installing and powering on the switch and for setting up the initial switch configuration (IP address,
subnet mask, default gateway, secret and Telnet passwords, and so forth).
The normal boot process involves the operation of the boot loader software, which performs these activities:
• Performs low-level CPU initialization. It initializes the CPU registers, which control where physical
memory is mapped, its quantity, its speed, and so forth.
• Performs power-on self-test (POST) for the CPU subsystem. It tests the CPU DRAM and the portion of
the flash device that makes up the flash file system.
• Loads a default operating system software image into memory and boots up the switch.
The boot loader provides access to the flash file system before the operating system is loaded. Normally, the
boot loader is used only to load, uncompress, and launch the operating system. After the boot loader gives
the operating system control of the CPU, the boot loader is not active until the next system reset or power-on.
The boot loader also provides trap-door access into the system if the operating system has problems serious
enough that it cannot be used. The trap-door mechanism provides enough access to the system so that if it is
necessary, you can format the flash file system, reinstall the operating system software image by using the
Xmodem Protocol, recover from a lost or forgotten password, and finally restart the operating system. For
more information, see the "Recovering from a Software Failure" section and the "Recovering from a Lost or
Forgotten Password" section.
You can disable password recovery. For more information, see the "Disabling Password Recovery" section.
Before you can assign switch information, make sure you have connected a PC or terminal to the console
port, and configured the PC or terminal-emulation software baud rate and character format to match these of
the switch console port:
• Baud rate default is 9600.
• Data bits default is 8.
Note
If the data bits option is set to 8, set the parity option to none.
• Stop bits default is 1.
• Parity settings default is none.
Assigning the Switch IP Address and Default Gateway
Switches Information Assignment
You can assign IP information through the switch setup program, through a DHCP server, or manually.
Use the switch setup program if you want to be prompted for specific IP information. With this program, you
can also configure a hostname and an enable secret password.
It gives you the option of assigning a Telnet password (to provide security during remote management) and
configuring your switch as a command or member switch of a cluster or as a standalone switch.
The switch stack is managed through a single IP address. The IP address is a system-level setting and is not
specific to the stack master or to any other stack member. You can still manage the stack through the same
IP address even if you remove the stack master or any other stack member from the stack, provided there is
IP connectivity.
Note
Stack members retain their IP address when you remove them from a switch stack. To avoid a conflict by
having two devices with the same IP address in your network, change the IP address of the switch that you
removed from the switch stack.
Use a DHCP server for centralized control and automatic assignment of IP information after the server is
configured.
Note
If you are using DHCP, do not respond to any of the questions in the setup program until the switch receives
the dynamically assigned IP address and reads the configuration file.
If you are an experienced user familiar with the switch configuration steps, manually configure the switch.
Otherwise, use the setup program described in the Boot Process section.
Assigning the Switch IP Address and Default Gateway
Default Switch Information
Table 4: Default Switch Information
Default Switch Information
Default SettingFeature
No IP address or subnet mask are defined.IP address and subnet mask
No default gateway is defined.Default gateway
No password is defined.Enable secret password
The factory-assigned default hostname is Switch.Hostname
No password is defined.Telnet password
Disabled.Cluster command switch functionality
No cluster name is defined.Cluster name
DHCP-Based Autoconfiguration Overview
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 an
operation for allocating network addresses to devices. DHCP is built on a client-server model, in which
designated DHCP servers allocate network addresses and deliver configuration parameters to dynamically
configured devices. The switch can act as both a DHCP client and a DHCP server.
During DHCP-based autoconfiguration, your switch (DHCP client) is automatically configured at startup
with IP address information and a configuration file.
With DHCP-based autoconfiguration, no DHCP client-side configuration is needed on your switch. However,
you need to configure the DHCP server for various lease options associated with IP addresses.
If you want to use DHCP to relay the configuration file location on the network, you might also need to
configure a Trivial File Transfer Protocol (TFTP) server and a Domain Name System (DNS) server.
The DHCP server for your switch can be on the same LAN or on a different LAN than the switch. If the
DHCP server is running on a different LAN, you should configure a DHCP relay device between your switch
and the DHCP server. 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 up your switch, the DHCP client is invoked and requests configuration information from a
DHCP server when the configuration file is not present on the switch. If the configuration file is present and
the configuration includes the ipaddress dhcp interface configuration command on specific routed interfaces,
the DHCP client is invoked and requests the IP address information for those interfaces.
This is the sequence of messages that are exchanged between the DHCP client and the 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 formal request for the offered configuration
information to the DHCP server. The formal 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.
Assigning the Switch IP Address and Default Gateway
If the configuration parameters sent to the client in the DHCPOFFER unicast message 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 that the offered
configuration parameters have not been assigned, that an error has occurred during the negotiation of the
parameters, or that the client has been slow in responding to the DHCPOFFER message (the DHCP server
assigned the parameters to another client).
A DHCP client might receive offers from multiple DHCP or BOOTP servers and can accept any 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 is 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 broadcasts, instead of unicasts, TFTP requests to obtain the switch configuration
file.
The DHCP hostname option allows a group of switches to obtain hostnames and a standard configuration
from the central management DHCP server. A client (switch) includes in its DCHPDISCOVER message an
option 12 field used to request a hostname and other configuration parameters from the DHCP server. The
configuration files on all clients are identical except for their DHCP-obtained hostnames.
If a client has a default hostname (the hostname name global configuration command is not configured or
the no hostname global configuration command is entered to remove the hostname), the DHCP hostname
option is not included in the packet when you enter the ip address dhcp interface configuration command.
In this case, if the client receives the DCHP hostname option from the DHCP interaction while acquiring an
IP address for an interface, the client accepts the DHCP hostname option and sets the flag to show that the
system now has a hostname configured.
DHCP-based Autoconfiguration and Image Update
You can use the DHCP image upgrade features to configure a DHCP server to download both a new image
and a new configuration file to one or more switches in a network. Simultaneous image and configuration
upgrade for all switches in the network helps ensure that each new switch added to a network receives the
same image and configuration.
Assigning the Switch IP Address and Default Gateway
There are two types of DHCP image upgrades: DHCP autoconfiguration and DHCP auto-image update.
Restrictions for DHCP-based Autoconfiguration
• The DHCP-based autoconfiguration with a saved configuration process stops if there is not at least one
Layer 3 interface in an up state without an assigned IP address in the network.
• Unless you configure a timeout, the DHCP-based autoconfiguration with a saved configuration feature
tries indefinitely to download an IP address.
• The auto-install process stops if a configuration file cannot be downloaded or if the configuration file is
corrupted.
• The configuration file that is downloaded from TFTP is merged with the existing configuration in the
running configuration but is not saved in the NVRAM unless you enter the write memory or
copy running-configuration startup-configuration privileged EXEC command. If the downloaded
configuration is saved to the startup configuration, the feature is not triggered during subsequent system
restarts.
DHCP Autoconfiguration
Restrictions for DHCP-based Autoconfiguration
DHCP autoconfiguration downloads a configuration file to one or more switches in your network from a
DHCP server. The downloaded configuration file becomes the running configuration of the switch. It does
not over write the bootup configuration saved in the flash, until you reload the switch.
DHCP Auto-Image Update
You can use DHCP auto-image upgrade with DHCP autoconfiguration to download both a configuration and
a new image to one or more switches in your network. The switch (or switches) downloading the new
configuration and the new image can be blank (or only have a default factory configuration loaded).
If the new configuration is downloaded to a switch that already has a configuration, the downloaded
configuration is appended to the configuration file stored on the switch. (Any existing configuration is not
overwritten by the downloaded one.)
To enable a DHCP auto-image update on the switch, the TFTP server where the image and configuration files
are located must be configured with the correct option 67 (the configuration filename), option 66 (the DHCP
server hostname) option 150 (the TFTP server address), and option 125 (description of the Cisco IOS image
file) settings.
After you install the switch in your network, the auto-image update feature starts. The downloaded configuration
file is saved in the running configuration of the switch, and the new image is downloaded and installed on the
switch. When you reboot the switch, the configuration is stored in the saved configuration on the switch.
DHCP Server Configuration Guidelines
Follow these guidelines if you are configuring a device as a DHCP server:
• You should configure the DHCP server with reserved leases that are bound to each switch by the switch
hardware address.
• If you want the switch to receive IP address information, you must configure the DHCP server with these
lease options:
Assigning the Switch IP Address and Default Gateway
• Subnet mask of the client (required)
• DNS server IP address (optional)
• Router IP address (default gateway address to be used by the switch) (required)
• If you want the switch to receive the configuration file from a TFTP server, you must configure the
DHCP server with these lease options:
• TFTP server name (required)
• Boot filename (the name of the configuration file that the client needs) (recommended)
• Hostname (optional)
• Depending on the settings of the DHCP server, the switch can receive IP address information, the
configuration file, or both.
• If you do not configure the DHCP server with the lease options described previously, it replies to client
requests with only those parameters that are configured. If the IP address and the subnet mask are not in
the reply, the switch is not configured. If the router IP address or the TFTP server name are not found,
the switch might send broadcast, instead of unicast, TFTP requests. Unavailability of other lease options
does not affect autoconfiguration.
• The switch can act as a DHCP server. By default, the Cisco IOS DHCP server and relay agent features
are enabled on your switch but are not configured. (These features are not operational.)
Purpose of the TFTP Server
Based on the DHCP server configuration, the switch attempts to download one or more configuration files
from the TFTP server. If you configured the DHCP server to respond to the switch with all the options required
for IP connectivity to the TFTP server, and if you configured the DHCP server with a TFTP server name,
address, and configuration filename, the switch attempts to download the specified configuration file from
the specified TFTP server.
If you did not specify the configuration filename, the TFTP server, or if the configuration file could not be
downloaded, the switch attempts to download a configuration file by using various combinations of filenames
and TFTP server addresses. The files include the specified configuration filename (if any) and these files:
network-config, cisconet.cfg, hostname.config, or hostname.cfg, where hostname is the switch’s current
hostname. The TFTP server addresses used include the specified TFTP server address (if any) and the broadcast
address (255.255.255.255).
For the switch to successfully download a configuration file, the TFTP server must contain one or more
configuration files in its base directory. The files can include these files:
• 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.)
If you specify the TFTP server name in the DHCP server-lease database, you must also configure the TFTP
server name-to-IP-address mapping in the DNS-server database.
Assigning the Switch IP Address and Default Gateway
If the TFTP server to be used is on a different LAN from the switch, or if it is to be accessed by the switch
through the broadcast address (which occurs if the DHCP server response does not contain all the required
information described previously), a relay must be configured to forward the TFTP packets to the TFTP server.
The preferred solution is to configure the DHCP server with all the required information.
Purpose of the DNS Server
The DHCP server uses the DNS server to resolve the TFTP server name to an 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 can 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 LAN or on a different LAN from the switch. If it is on a different LAN,
the switch must be able to access it through a router.
Purpose of the Relay Device
You must configure a relay device, also referred to as a relay agent, when a switch sends broadcast packets
that require a response from a host on a different LAN. Examples of broadcast packets that the switch might
send are DHCP, DNS, and in some cases, TFTP packets. You must configure this relay device to forward
received broadcast packets on an interface to the destination host.
Purpose of the DNS Server
If the relay device is a Cisco router, enable IP routing (ip routing global configuration command), and
configure helper addresses by using the ip helper-address interface configuration command.
Examples of Configuring the Relay Device
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
Note
If the switch is acting as the relay device, configure the interface as a routed port.
Depending on the availability of the IP address and the configuration filename in the DHCP reserved lease,
the switch obtains its configuration information in these ways:
Assigning the Switch IP Address and Default Gateway
• 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, TFTP server address, and the configuration filename
from the DHCP server. 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, it completes its boot up process.
• The IP address and the configuration filename is reserved for the switch, but the TFTP server address is
not provided in the DHCP reply (one-file read method).
The switch receives its IP address, subnet mask, and the configuration filename from the DHCP server.
The switch sends a broadcast message to a TFTP server to retrieve the named configuration file from
the base directory of the server, and upon receipt, it completes its boot-up process.
• 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, subnet mask, and the TFTP server address from the DHCP server.
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 hostnames-to-IP-address mapping for the switch. The switch
fills its host table with the information in the file and obtains its hostname. If the hostname is not found
in the file, the switch uses the hostname in the DHCP reply. If the hostname is not specified in the DHCP
reply, the switch uses the default Switch as its hostname.
After obtaining its hostname from the default configuration file or the DHCP reply, the switch reads the
configuration file that has the same name as its hostname (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 hostname file, it reads the router-confg
file. If the switch cannot read the router-confg file, it reads the ciscortr.cfg file.
Assigning the Switch IP Address and Default Gateway
Example of DHCP-Based Autoconfiguration Network
Note
The switch broadcasts TFTP server requests if the TFTP server 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 of DHCP-Based Autoconfiguration Network
A sample network for retrieving IP information using DHCP-based autoconfiguration.
Configuring the DHCP Auto Configuration and Image Update Features
• It reads its host table by indexing its IP address 10.0.0.21 to its hostname (switcha).
• It reads the configuration file that corresponds to its hostname; for example, it reads switch1-confg from
the TFTP server.
Switches B through D retrieve their configuration files and IP addresses in the same way.
DNS Server Configuration
The DNS server maps the TFTP server name tftpserver 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 hostname to be assigned to the switch based on its IP address.
The base directory also contains a configuration file for each switch (switcha-confg, switchb-confg, and so
forth) as shown in this display:
prompt> cat network-confg
ip host switcha 10.0.0.21
ip host switchb 10.0.0.22
ip host switchc 10.0.0.23
ip host switchd 10.0.0.24
Assigning the Switch IP Address and Default Gateway
DHCP Client Configuration
No configuration file is present on Switch A through Switch D.
Configuration Explanation
In the figure, DHCP-based autoconfiguration network, the Switch A 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 A 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 hostname (switcha).
• It reads the configuration file that corresponds to its hostname; for example, it reads switch1-confg from
the TFTP server.
Switches B through D retrieve their configuration files and IP addresses in the same way.
Configuring the DHCP Auto Configuration and Image Update Features
Using DHCP to download a new image and a new configuration to a switch requires that you configure at
least two switches: One switch acts as a DHCP and TFTP server. The client switch is configured to download
either a new configuration file or a new configuration file and a new image file.
This task describes how to configure DHCP autoconfiguration of the TFTP and DHCP settings on an existing
switch in the network so that it can support the autoconfiguration of a new switch.
SUMMARY STEPS
1.configure terminal
2.ip dhcp pool poolname
3.boot filename
4.network network-number mask prefix-length
5.default-router address
6.option 150 address
7.exit
8.tftp-server flash:filename.text
9.interface interface-id
10. no switchport
11.ip address address mask
12. end
DETAILED STEPS
Step 1
Example:
Switch# configure terminal
Step 2
ip dhcp pool poolname
Example:
Switch(config)# ip dhcp pool pool
Step 3
boot filename
Example:
Switch(dhcp-config)# boot config-boot.text
Step 4
network network-number mask prefix-length
Example:
Switch(dhcp-config)# network 10.10.10.0
255.255.255.0
PurposeCommand or Action
Enters global configuration mode.configure terminal
Creates a name for the DHCP server address pool, and
enters DHCP pool configuration mode.
Specifies the name of the configuration file that is used as
a boot image.
Specifies the subnet network number and mask of the
DHCP address pool.
Note
The prefix length specifies the number of bits
that comprise the address prefix. The prefix is
an alternative way of specifying the network
mask of the client. The prefix length must be
preceded by a forward slash (/).
Assigning the Switch IP Address and Default Gateway
Configuring DHCP Auto-Image Update (Configuration File and Image)
Configuring DHCP Auto-Image Update (Configuration File and Image)
This task describes DHCP autoconfiguration to configure TFTP and DHCP settings on an existing switch to
support the installation of a new switch.
Before you begin
You must first create a text file (for example, autoinstall_dhcp) that will be uploaded to the switch. In the text
file, put the name of the image that you want to download (for example,
c3750e-ipservices-mz.122-44.3.SE.tarc3750x-ipservices-mz.122-53.3.SE2.tar). This image must be a tar and
not a bin file.
SUMMARY STEPS
1.configure terminal
2.ip dhcp pool poolname
3.boot filename
4.network network-number mask prefix-length
5.default-router address
6.option 150 address
7.option 125 hex
8.copy tftp flash filename.txt
9.copy tftp flash imagename.bin
10. exit
11.tftp-server flash: config.text
12. tftp-server flash: imagename.bin
13. tftp-server flash: filename.txt
14. interface interface-id
15. no switchport
16. ip address address mask
17.end
18. copy running-config startup-config
DETAILED STEPS
Step 1
Example:
Switch# configure terminal
Step 2
ip dhcp pool poolname
Example:
Switch(config)# ip dhcp pool pool1
PurposeCommand or Action
Enters global configuration mode.configure terminal
Creates a name for the DHCP server address pool and enter
DHCP pool configuration mode.
Configuring DHCP Auto-Image Update (Configuration File and Image)
Assigning the Switch IP Address and Default Gateway
PurposeCommand or Action
Step 3
Step 4
Step 5
Step 6
Example:
Switch(dhcp-config)# boot config-boot.text
network network-number mask prefix-length
Example:
Switch(dhcp-config)# network 10.10.10.0
255.255.255.0
default-router address
Example:
Switch(dhcp-config)# default-router 10.10.10.1
Example:
Specifies the name of the file that is used as a boot image.boot filename
Specifies the subnet network number and mask of the
DHCP address pool.
Note
The prefix length specifies the number of bits
that comprise the address prefix. The prefix is
an alternative way of specifying the network
mask of the client. The prefix length must be
preceded by a forward slash (/).
Specifies the IP address of the default router for a DHCP
client.
Specifies the IP address of the TFTP server.option 150 address
Manually Assigning IP Information to Multiple SVIs
Assigning the Switch IP Address and Default Gateway
PurposeCommand or Action
Step 3
Step 4
Step 5
Example:
Switch(config-vlan)# ip address 10.10.10.2
255.255.255.0
Example:
Switch(config-vlan)# exit
ip default-gateway ip-address
Example:
Switch(config)# ip default-gateway 10.10.10.1
Enters the IP address and subnet mask.ip address ip-address subnet-mask
Returns to global configuration mode.exit
Enters the IP address of the next-hop router interface that
is directly connected to the switch where a default gateway
is being configured. The default gateway receives IP packets
with unresolved destination IP addresses from the switch.
Once the default gateway is configured, the switch has
connectivity to the remote networks with which a host needs
to communicate.
Note
When your switch is configured to route with
IP, it does not need to have a default gateway
set.
Step 6
Step 7
Step 8
Example:
Switch(config)# end
Example:
Switch# show interfaces vlan 99
Example:
Switch# show ip redirects
Note
Returns to privileged EXEC mode.end
Verifies the configured IP address.show interfaces vlan vlan-id
Verifies the configured default gateway.show ip redirects
The switch capwap relays on default-gateway
configuration to support routed access point join
the switch.
Assigning the Switch IP Address and Default Gateway
Checking and Saving the Running Configuration
You can check the configuration settings that you entered or changes that you made by entering this privileged
EXEC command:
Switch# show running-config
Building configuration...
Current configuration: 1363 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname
!
enable secret 5 $1$ej9.$DMUvAUnZOAmvmgqBEzIxE0
!
.
<output truncated>
.
ip address 172.20.137.50 255.255.255.0
!
mvr type source
<output truncated>
...!
interface VLAN1
ip address 172.20.137.50 255.255.255.0
no ip directed-broadcast
!
ip default-gateway 172.20.137.1 !
!
snmp-server community private RW
snmp-server community public RO
snmp-server community private@es0 RW
snmp-server community public@es0 RO
snmp-server chassis-id 0x12
!
end
Checking and Saving the Running Configuration
To store the configuration or changes you have made to your startup configuration in flash memory, enter
this privileged EXEC command:
Switch# copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
This command saves the configuration settings that you made. If you fail to do this, your configuration will
be lost the next time you reload the system. To display information stored in the NVRAM section of flash
memory, use the show startup-config or more startup-config privileged EXEC command.
For more information about alternative locations from which to copy the configuration file, see "Working
with the Cisco IOS File System, Configuration Files, and Software Images."
Configuring the NVRAM Buffer Size
The default NVRAM buffer size is 512 KB. In some cases, the configuration file might be too large to save
to NVRAM. Typically, this occurs when you have many switches in a switch stack. You can configure the
size of the NVRAM buffer to support larger configuration files. The new NVRAM buffer size is synced to
all current and new member switches.
Assigning the Switch IP Address and Default Gateway
After you configure the NVRAM buffer size, reload the switch or switch stack.
When you add a switch to a stack and the NVRAM size differs, the new switch syncs with the stack and
reloads automatically.
Beginning in privileged EXEC mode, follow these steps to configure the NVRAM buffer size:
1. configure terminal
2. boot buffersizesize
3. end
4. show boot
PurposeCommand or Action
Step 1
Step 2
Step 3
Step 4
boot buffersizesize
show boot
Enter global configuration mode.configure terminal
Configure the NVRAM buffersize in KB. The valid range
for size is from 4096 to 1048576 .
Return to privileged EXEC mode.end
Verify the configuration.
This example shows how to configure the NVRAM buffer
size:
Switch# configure terminal
Enter configuration commands, one per line. End
with CNTL/Z.
Switch(config)# boot buffersize 524288
Switch(config)# end
Switch# show boot
BOOT path-list:
Config file: flash:/config.text
Private Config file : flash:/private-config.text
Enable Break: no
Manual Boot: no
HELPER path-list:
Auto upgrade: yes
Auto upgrade path:
NVRAM/Config file
Assigning the Switch IP Address and Default Gateway
Modifying the Switch Startup Configuration
Default Boot Configuration
Default SettingFeature
Modifying the Switch Startup Configuration
Operating system software
image
Configuration file
The switch attempts to automatically boot up the system using information
in the BOOT environment variable. If the variable is not set, the switch
attempts to load and execute the first executable image it can by performing
a recursive, depth-first search throughout the flash file system.
The Cisco IOS image is stored in a directory that has the same name as the
image file (excluding the .bin extension).
In a depth-first search of a directory, each encountered subdirectory is
completely searched before continuing the search in the original directory.
Configured switches use the config.text file stored on the system board in
flash memory.
A new switch has no configuration file.
Automatically Downloading a Configuration File
You can automatically download a configuration file to your switch by using the DHCP-based autoconfiguration
feature. For more information, see the "Understanding DHCP-Based Autoconfiguration" section.
Specifying the Filename to Read and Write the System Configuration
By default, the Cisco IOS software uses the config.text file to read and write a nonvolatile copy of the system
configuration. However, you can specify a different filename, which will be loaded during the next boot cycle.
SUMMARY STEPS
DETAILED STEPS
Step 1
Example:
Before you begin
Use a standalone switch for this task.
1. configure terminal
2. boot flash:/file-url
3. end
4. show boot
5. copy running-config startup-config
PurposeCommand or Action
Enters global configuration mode.configure terminal
Assigning the Switch IP Address and Default Gateway
Switch# configure terminal
Booting a Specific Software Image On a Switch
PurposeCommand or Action
Step 2
Step 3
Step 4
boot manual
Example:
Switch(config)# boot manual
Example:
Switch(config)# end
Example:
Switch# show boot
Enables the switch to manually boot up during the next boot
cycle.
Returns to privileged EXEC mode.end
Verifies your entries.show boot
The boot manual global command changes the setting of
the MANUAL_BOOT environment variable.
The next time you reboot the system, the switch is in boot
loader mode, shown by the switch: prompt. To boot up the
system, use the boot filesystem:/file-url boot loader
command.
• filesystem:—Uses flash: for the system board flash
device.
Switch: boot flash:
Step 5
Example:
Switch# copy running-config startup-config
Booting a Specific Software Image On a Switch
By default, the switch attempts to automatically boot up the system using information in the BOOT environment
variable. If this variable is not set, the switch attempts to load and execute the first executable image it can
by performing a recursive, depth-first search throughout the flash file system. In a depth-first search of a
directory, each encountered subdirectory is completely searched before continuing the search in the original
directory. However, you can specify a specific image to boot up.
SUMMARY STEPS
1. configure terminal
• For file-url—Specifies the path (directory) and the
name of the bootable image.
Filenames and directory names are case-sensitive.
(Optional) Saves your entries in the configuration file.copy running-config startup-config
Assigning the Switch IP Address and Default Gateway
2. end
3. show boot system
4. copy running-config startup-config
PurposeCommand or Action
Step 1
Step 2
Step 3
Step 4
Example:
Switch# configure terminal
Example:
Switch(config)# end
Example:
Switch# show boot system
Example:
Switch# copy running-config startup-config
Enters global configuration mode.configure terminal
Returns to privileged EXEC mode.end
Verifies your entries.show boot system
The boot system global command changes the setting of
the BOOT environment variable.
During the next boot cycle, the switch attempts to
automatically boot up the system using information in the
BOOT environment variable.
(Optional) Saves your entries in the configuration file.copy running-config startup-config
Controlling Environment Variables
With a normally operating switch, you enter the boot loader mode only through a switch console connection
configured for 9600 b/s. Unplug the switch power cord, and press the switch Mode button while reconnecting
the power cord. You can release the Mode button a second or two after the LED above port 1 turns off. Then
the boot loader switch: prompt appears.
The switch boot loader software provides support for nonvolatile environment variables, which can be used
to control how the boot loader, or any other software running on the system, behaves. Boot loader environment
variables are similar to environment variables that can be set on UNIX or DOS systems.
Environment variables that have values are stored in flash memory outside of the flash file system.
Each line in these files contains an environment variable name and an equal sign followed by the value of the
variable. A variable has no value if it is not listed in this file; it has a value if it is listed in the file even if the
value is a null string. A variable that is set to a null string (for example, " ") is a variable with a value. Many
environment variables are predefined and have default values.
Assigning the Switch IP Address and Default Gateway
• Data that controls code, which does not read the Cisco IOS configuration file. For example, the name of
a boot loader helper file, which extends or patches the functionality of the boot loader can be stored as
an environment variable.
• Data that controls code, which is responsible for reading the Cisco IOS configuration file. For example,
the name of the Cisco IOS configuration file can be stored as an environment variable.
You can change the settings of the environment variables by accessing the boot loader or by using Cisco IOS
commands. Under normal circumstances, it is not necessary to alter the setting of the environment variables.
Note
For complete syntax and usage information for the boot loader commands and environment variables, see the
command reference for this release.
Table 6: Environment Variables
Controlling Environment Variables
BOOT
MANUAL_BOOT
Boot Loader CommandVariable
set BOOTfilesystem :/ file-url...
A semicolon-separated list of
executable files to try to load and
execute when automatically
booting. If the BOOT
environment variable is not set,
the system attempts to load and
execute the first executable image
it can find by using a recursive,
depth-first search through the
flash file system. If the BOOT
variable is set but the specified
images cannot be loaded, the
system attempts to boot the first
bootable file that it can find in the
flash file system.
set MANUAL_BOOT yes
Decides whether the switch
automatically or manually boots
up.
Valid values are 1, yes, 0, and no.
If it is set to no or 0, the boot
loader attempts to automatically
boot up the system. If it is set to
anything else, you must manually
boot up the switch from the boot
loader mode.
Cisco IOS Global Configuration
Command
boot systemfilesystem:/file-url ...
Specifies the Cisco IOS image to
load during the next boot cycle.
This command changes the setting
of the BOOT environment variable
boot manual
Enables manually booting up the
switch during the next boot cycle
and changes the setting of the
MANUAL_BOOT environment
variable.
The next time you reboot the
system, the switch is in boot loader
mode. To boot up the system, use
the boot flash: filesystem :/ file-url
boot loader command, and specify
the name of the bootable image.
Assigning the Switch IP Address and Default Gateway
CONFIG_FILE
Scheduling a Reload of the Software Image
You can schedule a reload of the software image to occur on the switch at a later time (for example, late at
night or during the weekend when the switch is used less), or you can synchronize a reload network-wide (for
example, to perform a software upgrade on all switches in the network).
Note
A scheduled reload must take place within approximately 24 days.
Configuring a Scheduled Reload
To configure your switch to reload the software image at a later time, use one of these commands in privileged
EXEC mode:
Boot Loader CommandVariable
set CONFIG_FILE flash: /
file-url
Cisco IOS Global Configuration
Command
boot config-file flash:/ file-url
Specifies the filename that Cisco
IOS uses to read and write a
nonvolatile copy of the system
configuration. This command
changes the CONFIG_FILE
environment variable.
• reload in[hh :]mm [text]
This command schedules a reload of the software to take affect in the specified minutes or hours and
minutes. The reload must take place within approximately 24 days. You can specify the reason for the
reload in a string up to 255 characters in length.
• reload athh:mm [month dayIday month [text]
This command schedules a reload of the software to take place at the specified time (using a 24-hour
clock). If you specify the month and day, the reload is scheduled to take place at the specified time and
date. If you do not specify the month and day, the reload takes place at the specified time on the current
day (if the specified time is later than the current time) or on the next day (if the specified time is earlier
than the current time). Specifying 00:00 schedules the reload for midnight.
Note
Use the at keyword only if the switch system clock has been set (through Network
Time Protocol (NTP), the hardware calendar, or manually). The time is relative
to the configured time zone on the switch. To schedule reloads across several
switches to occur simultaneously, the time on each switch must be synchronized
with NTP.
The reload command halts the system. If the system is not set to manually boot up, it reboots itself. Use
the reload command after you save the switch configuration information to the startup configuration
(copy running-config startup-config).
Assigning the Switch IP Address and Default Gateway
If your switch is configured for manual booting, do not reload it from a virtual terminal. This restriction
prevents the switch from entering the boot loader mode and thereby taking it from the remote user's
control.
If you modify your configuration file, the switch prompts you to save the configuration before reloading.
During the save operation, the system requests whether you want to proceed with the save if the CONFIG_FILE
environment variable points to a startup configuration file that no longer exists. If you proceed in this situation,
the system enters setup mode upon reload.
This example shows how to reload the software on the switch on the current day at 7:30 p.m:
Switch# reload at 19:30
Reload scheduled for 19:30:00 UTC Wed Jun 5 1996 (in 2 hours and 25 minutes)
Proceed with reload? [confirm]
This example shows how to reload the software on the switch at a future time:
Switch# reload at 02:00 jun 20
Reload scheduled for 02:00:00 UTC Thu Jun 20 1996 (in 344 hours and 53 minutes)
Proceed with reload? [confirm]
To cancel a previously scheduled reload, use the reload cancel privileged EXEC command
Boot Loader Upgrade and Image Verification for the FIPS Mode of Operation
Displaying Scheduled Reload Information
To display information about a previously scheduled reload or to find out if a reload has been scheduled on
the switch, use the show reload privileged EXEC command.
It displays reload information including the time the reload is scheduled to occur and the reason for the reload
(if it was specified when the reload was scheduled).
Boot Loader Upgrade and Image Verification for the FIPS Mode of Operation
To operate in the FIPS mode, complete these steps:
• Enable the FIPS mode on the switch.To enable the FIPS mode, enter the fips authorization-keyauthorization-key global configuration command. To disable the FIPS mode, use the no version of the
command.
• Use signed and validated images. Cisco IOS Release 15.2(1)E supports an updated boot loader that can
validate the Cisco IOS image signature only in the FIPS mode of operation.
Note
Ensure that the power is not turned off while updating the boot loader. If the power is turned off during the
update, you will have to replace the switch by using a Return Merchandise Authorization (RMA) license.
Table 4-6 describes upgrade and downgrade scenarios using different images and using the FIPS mode or
non-FIPS mode:
Boot Loader Upgrade and Image Verification for the FIPS Mode of Operation
Table 7: Upgrade and Downgrade Scenarios Relating to FIPS Certified Images
Assigning the Switch IP Address and Default Gateway
Status or ResultActionUpgrade/ Downgrade Scenario
Upgrade from an image that is in
the FIPS mode to a Cisco IOS
Release 15.2(1)E image in the FIPS
mode.
Upgrade from a switch that is in the
non-FIPS mode to a Cisco IOS
Release 15.2(1)E image in the FIPS
mode
Boot with the Cisco IOS Release
15.2(1)E image.
• Configure the fips
authorization- key
authorization-key global
configuration command
• Reload the switch for the FIPS
key to be operational. By
default, the switch
automatically boots up;
however, if you have
configured it to boot up
manually, you have to initiate
the reboot.
• After the boot loader is
upgraded, boot with the Cisco
IOS Release 15.2(1)E image.
• The boot loader is upgraded.
• The image signature is
verified.
• The following message
appears in the boot sequence:
“Image passed digital
signature verification.”
Note
If you upload a corrupt
or unsigned image, the
following message
appears during boot up:
“Image verification
failed.”
• The boot loader is upgraded.
• The image signature is
verified.
Note
If you upload a corrupt
or unsigned image, the
following message
appears during boot up:
“Image verification
failed.
Assigning the Switch IP Address and Default Gateway
Boot Loader Upgrade and Image Verification for the FIPS Mode of Operation
Status or ResultActionUpgrade/ Downgrade Scenario
Configure an existing FIPS
complaint switch running Cisco
IOS Release 15.2(1)E to work in a
non-FIPS mode.
Downgrade from a Cisco IOS
Release 15.2(1)E image in FIPS
mode to an older release.
• Configure the no fips
authorization- key
authorization-key global
configuration command.
• Reload the switch for the
configuration to take effect.
By default, the switch
automatically boots up;
however, if you have
configured it to boot up
manually, you have to initiate
the reboot.
• Configure the no fips
authorization- key
authorization-key global
configuration command
• Reload the switch for the
configuration to take effect.
By default, the switch
automatically boots up;
however, if you have
configured it to boot up
manually, you have to initiate
reboot.
• Upload and boot the older
image.
• The boot loader is not
updated.
• The switch works normally
and the FIPS commands are
no longer available.
• The following message
appears in the boot sequence:
“Image passed digital
signature verification”.
Note
If you upload a corrupt
or unsigned image, the
following message
appears during boot up:
“WARNING: Unable to
determine image
authentication. Image is
either unsigned or is
signed but corrupted.”
• The boot loader is not
downgraded
• The switch work normally and
the FIPS commands are no
longer available.
• The following message
appears in the boot sequence:
“WARNING: Unable to
determine image
authentication. Image is either
unsigned or is signed but
corrupted.”