Saving the configuration

After you change the configuration, you must save the changes to the module. Save the configuration to a file to retain the configuration settings.

About this task

File Transfer Protocol (FTP) and Trivial File Transfer Protocol (TFTP) support both IPv4 and IPv6 addresses, with no difference in functionality or configuration.

Procedure

  1. Enter Privileged EXEC mode:

    enable

  2. Save the running configuration:

    save config [backup WORD<1–99>] [file WORD<1–99>] [verbose]

Example

Save the configuration to the default location:

Switch:1#save config

Identify the file as a backup file and designate a location to save the file:

Switch:1#save config backup 198.51.100.1/configs/backup.cfg

Variable Definitions

The following table defines parameters for the save config command.

Variable

Value

backup WORD<1–99>

Saves the specified file name and identifies the file as a backup file.

WORD<1–99> uses one of the following formats:

  • a.b.c.d:<file>

  • /intflash/<file>

The file name, including the directory structure, up to 1 to 99 characters.

file WORD<1–99>

Specifies the file name in one of the following formats:

  • /intflash/<file>

  • a.b.c.d:<file>

The file name, including the directory structure, up to 1 to 99 characters.

verbose

Saves the default and current configuration. If you omit this parameter, the command saves only parameters you change.