Cisco Catalyst 9200 Configuration Manual page 166

Hide thumbs Also See for Catalyst 9200:
Table of Contents

Advertisement

Modifying the Configuration File
Command or Action
Step 2
configure terminal
Example:
Device# configure terminal
Step 3
configuration command
Example:
Device(config)# configuration command
Step 4
Do one of the following:
• end
• ^Z
Example:
Device(config)# end
Step 5
copy system:running-config nvram:startup-config
Example:
Device# copy system:running-config
nvram:startup-config
Examples
In the following example, the device prompt name of the device is configured. The comment line,
indicated by the exclamation mark (!), does not execute any command. The hostname command is
used to change the device name from device to new_name. By pressing Ctrl-Z (^Z) or entering the
end command, the user quits configuration mode. The copy system:running-config
nvram:startup-config command saves the current configuration to the startup configuration.
Device# configure terminal
Device(config)# !The following command provides the switch host name.
Device(config)# hostname new_name
new_name(config)# end
new_name# copy system:running-config nvram:startup-config
When the startup configuration is NVRAM, it stores the current configuration information in text
format as configuration commands, recording only non-default settings. The memory is checksummed
to guard against corrupted data.
System Management Configuration Guide, Cisco IOS XE Gibraltar 16.10.x (Catalyst 9200 Switches)
152
Purpose
Enters global configuration mode.
Enter the necessary configuration commands. The Cisco
IOS documentation set describes configuration commands
organized by technology.
Ends the configuration session and exits to EXEC mode.
Note
When you press the Ctrl and Z keys
simultaneously, ^Z is displayed to the screen.
Saves the running configuration file as the startup
configuration file.
You may also use the copy running-config startup-config
command alias, but you should be aware that this command
is less precise. On most platforms, this command saves the
configuration to NVRAM. On the Class A Flash file system
platforms, this step saves the configuration to the location
specified by the CONFIG_FILE environment variable (the
default CONFIG_FILE variable specifies that the file should
be saved to NVRAM).
Managing Configuration Files

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents