cisco IOS — Compressing the Configuration File

Examples The following example compresses a 129-KB configuration file to 11 KB: Device# configure terminal Device(config)# service compress-config Device(config)# end Device# copy tftp://172.16.2.15/tokyo-confg system:running-config Configure using tokyo-confg from 172.16.2.155? [confirm] y Booting tokyo-confg from 172.16.2.155:!!! [OK - 874/16000 bytes] Device# copy system:running-config nvram:startup-config Building configuration... Compressing configuration from 129648 bytes to 11077 bytes [OK] Managing Configuration Files Compressing the Configuration File Command or Action Purpose Step 3 service compress-config Example:

Device(config)# service compress-config Specifies that the configuration file be compressed. Step 4 end Example: Device(config)# end Exits global configuration mode. Step 5 Do one of the following: • Use FTP, RCP, or TFTP to copy the new configuration. • configure terminal Example: Device# configure terminal Enters 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: “[buffer overflow - file-size /buffer-size bytes].” Step 6 copy system:running-config nvram:startup-config Example:

Device(config)# copy system:running-config nvram:startup-config When you have finished changing the running-configuration, save the new configuration. Managing Configuration Files 20