Purpose
Command or Action
Displays the contents of the running configuration file.
(Command alias for the
more system:running-config
command.)
show running-config
Example:
Device# show running-config
Step 4
Displays the contents of the startup configuration file.
(Command alias for the
more nvram:startup-config
command.)
show startup-config
Example:
Device# show startup-config
Step 5
On all platforms except the Class A Flash file system
platforms, the default startup-config file usually is stored
in NVRAM.
On the Class A Flash file system platforms, the
CONFIG_FILE environment variable points to the default
startup-config file.
The CONFIG_FILE variable defaults to NVRAM.
Modifying the Configuration File
The Cisco IOS software accepts one configuration command per line. You can enter as many configuration
commands as you want. You can add comments to a configuration file describing the commands you have
entered. Precede a comment with an exclamation point (!). Because comments are
not
stored in NVRAM or
in the active copy of the configuration file, comments do not appear when you list the active configuration
with the
show running-config
or
more system:running-config
EXEC commands. Comments do not display
when you list the startup configuration with the
show startup-config
or
more nvram:startup-config
EXEC
mode commands. Comments are stripped out of the configuration file when it is loaded onto the device.
However, you can list the comments in configuration files stored on a File Transfer Protocol (FTP), Remote
Copy Protocol (RCP), or Trivial File Transfer Protocol (TFTP) server. When you configure the software using
the CLI, the software executes the commands as you enter them. To configure the software using the CLI,
use the following commands in privileged EXEC mode:
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
configuration command
4.
Do one of the following:
•
end
•
^Z
5.
copy system:running-config nvram:startup-config
DETAILED STEPS
Purpose
Command or Action
Enables privileged EXEC mode.
enable
Step 1
System Management Configuration Guide, Cisco IOS XE Fuji 16.8.x (Catalyst 9500 Switches)
187
Managing Configuration Files
Modifying the Configuration File