cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
693
Views
7
Helpful
7
Replies

Loss of configuration after reboot

HatDauNho
Level 1
Level 1

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?

1 Accepted Solution

Accepted Solutions

Jens Albrecht
Spotlight
Spotlight

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!

View solution in original post

7 Replies 7

mg_avo
Level 1
Level 1

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

M02@rt37
VIP
VIP

Hello @HatDauNho 

do show romvar command and see variable on line SWITCH_IGNORE_STARTUP_CFG=

If it is 1, so tat the problem !

M02rt37_0-1756198619848.png

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Jens Albrecht
Spotlight
Spotlight

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!

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?

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!

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

Jens Albrecht
Spotlight
Spotlight

Yes, most of the time someone did a password recovery or factory reset and forgot to reset the ROMMON variables back to default.