Changing the primary or secondary boot configuration files

About this task

Change the primary or secondary boot configuration file to specify which configuration file the system uses to start.

Configure the primary boot choices.

You have a primary configuration file that specifies the full directory path and a secondary configuration file that also contains the full directory path.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Change the primary boot choice:

    boot config choice primary {backup-config-file|config-file} WORD<0–255>

  3. Save the changed configuration.
  4. Restart the switch.

Example

Switch:1> enable

Switch:1# configure terminal

Specify the configuration file in internal flash memory as the primary boot source:

Switch:1(config)# boot config choice primary config-file /intflash/config.cfg

Switch:1(config)# save config

Switch:1(config)# reset

Variable Definitions

The following table defines parameters for the boot config command.

Variable

Value

{backup-config-file|config-file}

Specifies that the boot source uses either the configuration file or a backup configuration file.

WORD<0–255>

Identifies the configuration file. WORD<0–255> is the device and file name, up to 255 characters including the path, in one of the following format:

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

  • /usb/<file>

  • /intflash/<file>

To set this option to the default value, use the default operator with the command.