Modify the Boot Sequence

About this task

Modify the boot sequence to prevent the switch from using the factory default settings or, conversely, to prevent loading a saved configuration file.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Perform one of the following actions:
    • Bypass the loading of the switch configuration file and load the factory defaults:

      boot config flags factorydefaults

    • Use a configuration file and not the factory defaults:

      no boot config flags factorydefaults

      Important

      Important

      If the switch fails to read and load a saved configuration file after it starts, check the log file to see if the log file indicates that the factorydefaults setting was enabled, before you investigate other options.

Example

Switch:1>enable
Switch:1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch:1(config)#boot config flags factorydefaults