4.
end
5.
Do one of the following:
• Use FTP, RCP, or TFTP to copy the new configuration.
•
configure terminal
6.
copy system:running-config nvram:startup-config
DETAILED STEPS
Purpose
Command or Action
Enables privileged EXEC mode.
enable
Step 1
Example:
• Enter your password if prompted.
Device> enable
Enters global configuration mode.
configure terminal
Example:
Step 2
Device# configure terminal
Specifies that the configuration file be compressed.
service compress-config
Example:
Step 3
Device(config)# service compress-config
Exits global configuration mode.
end
Example:
Step 4
Device(config)# end
Enters the new configuration:
Do one of the following:
Step 5
• Use FTP, RCP, or TFTP to copy the new
configuration.
• If you try to load a configuration that is more than
three times larger than the NVRAM size, the following
error message is displayed:
•
configure terminal
Example:
“[buffer overflow -
file-size
/
buffer-size
bytes].”
Device# configure terminal
When you have finished changing the
running-configuration, save the new configuration.
copy system:running-config nvram:startup-config
Example:
Step 6
Device(config)# copy system:running-config
nvram:startup-config
Examples
The following example compresses a 129-KB configuration file to 11 KB:
System Management Configuration Guide, Cisco IOS XE Gibraltar 16.10.x (Catalyst 9200 Switches)
163
Managing Configuration Files
Compressing the Configuration File