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
boot config flags factorydefaults
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