Modifying the Configuration File
Command or Action
Example:
Device> enable
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
System Management Configuration Guide, Cisco IOS XE Fuji 16.8.x (Catalyst 9500 Switches)
188
Purpose
• Enter your password if prompted.
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.
When you press the Ctrl and Z keys
Note
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