08-26-2025 01:43 AM
Hi team,
I have a Switch C9200 and every time I reboot, the configuration is lost. I don't know why.
I wonder if it's because the flash is lost?
Solved! Go to Solution.
08-26-2025 01:59 AM
Hello @HatDauNho,
sounds like someone has set the flag to ignore the startup-config when the switch boots.
Use the command
no system ignore startupconfig switch all
to restore the default behavior, i.e. loading the config file when the switch boots.
If this does not help, then post the entire output of the commands 'show boot' and 'show romvar'.
HTH!
08-26-2025 01:48 AM
Did you check the flash afterwarts? Did you see any logging entries?
Did you change anything regarding the config register?
Example doc: https://www.cisco.com/c/en/us/support/docs/switches/catalyst-9300-series-switches/216850-configuration-register-equivalent-clis-i.html
08-26-2025 01:57 AM - edited 08-26-2025 01:57 AM
Hello @HatDauNho
do show romvar command and see variable on line SWITCH_IGNORE_STARTUP_CFG=
If it is 1, so tat the problem !
08-26-2025 01:59 AM
Hello @HatDauNho,
sounds like someone has set the flag to ignore the startup-config when the switch boots.
Use the command
no system ignore startupconfig switch all
to restore the default behavior, i.e. loading the config file when the switch boots.
If this does not help, then post the entire output of the commands 'show boot' and 'show romvar'.
HTH!
08-26-2025 02:07 AM
Hi @Jens Albrecht,
I have tried that command and the issue has been resolved, thank you. But may I ask what is the cause of this problem where the configuration could not be saved?
08-26-2025 02:27 AM
Hi @HatDauNho,
glad to hear that it is working.
In fact the config was saved. However, as the name implies the Ignore_Startup_Cfg flag tells the switch to ignore the startup-config. So the config was still there but not loaded when the switch booted.
Please do not forget to mark the previous post as 'solution provided'. Thanks!
08-26-2025 02:33 AM
You Q must be why this command run' even if I dont manually add it?
I think either because
You do password recovery
Or
Zero touch config
MHM
08-26-2025 02:56 AM
Yes, most of the time someone did a password recovery or factory reset and forgot to reset the ROMMON variables back to default.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide