Modify the boot sequence to prevent the switch from using the factory default settings or, conversely, to prevent loading a saved configuration file.
enable
configure terminal
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
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.
Switch:1>enable Switch:1#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch:1(config)#boot config flags factorydefaults