Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Step 2
Device# configure terminal
Enter the necessary configuration commands. The Cisco
IOS documentation set describes configuration commands
organized by technology.
configuration command
Example:
Device(config)# configuration command
Step 3
Ends the configuration session and exits to EXEC mode.
Do one of the following:
Step 4
•
end
When you press the Ctrl and Z keys
simultaneously, ^Z is displayed to the screen.
Note
•
^Z
Example:
Device(config)# end
Saves the running configuration file as the startup
configuration file.
copy system:running-config nvram:startup-config
Example:
Step 5
You may also use the
copy running-config startup-config
command alias, but you should be aware that this command
Device# copy system:running-config
nvram:startup-config
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).
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
Managing Configuration Files
Modifying the Configuration File