05-22-2023 10:59 AM
Hi All,
I have 2960 Cisco switch. After I turn the switch off and back on and I get the "Would you like to enter the initial configuration dialog? [yes/no]: " message again and the config is lost.
Please any suggestion would be appreciated.
Thanks,
Yared
05-22-2023 11:04 AM
can I see
show version
05-22-2023 11:12 AM
05-22-2023 11:16 AM - edited 05-22-2023 11:17 AM
please all show version there is some info missing
05-23-2023 06:04 AM
Configuration register is 0xf
05-22-2023 11:10 AM - edited 05-22-2023 12:19 PM
Hi
If the switch is not saving the config , you need to see the config-Register.
Do the initial config and run the command "
config-register 0x2102
save and reload the switch
05-22-2023 11:15 AM
I tried that but the switch is not accepting the config-Register command
05-22-2023 11:15 AM
Try confreg instead. Some switch may have this command different
05-22-2023 11:20 AM - edited 05-22-2023 11:21 AM
https://network-knowledge.work/cisco-emptyconfig/
if the register is OK then you boot is OK but the SW bypass the startup config
05-22-2023 12:07 PM
Yared
I appreciate your effort to provide additional information. But I agree with MHM that what you posted from show version was incomplete and did not have the part that is important to us. Please post the complete output of the command.
In the original post you say "and the config is lost". The symptoms suggest that it is not lost but is ignored. And thinking about that I am very surprised by the suggestion from @Flavio Miranda because using the value of 2142 is exactly the setting to say "ignore the startup config".
You said "I tried that but the switch is not accepting the config-Register command" When you tried this were you in exec user mode, or exec privilege mode, or in configuration mode? The command needs to be entered in configuration mode.
05-22-2023 01:44 PM
hi
I put the command in configuration mode.
sw(config)#config-register .... Unrecognized command
05-22-2023 01:56 PM
share
show version <<- it may be no need for config register
05-23-2023 07:05 AM
This is what I found
Configuration register is 0xf
05-24-2023 07:25 PM
Yared
Thank you for the update about the value of the config register. Our advice has been about values of 2102 or 2142 which are typical values for many Cisco devices. But 0xf probably is a common and valid value for your switch. And I believe that this value is not related to ignoring the startup config.
Can you tell us what version of code your switch is running?
05-25-2023 04:44 AM
Hi All,
I ended up copying the backup configuration file and now everything works. But I still don't know the reason why this happened in the first place.
Thank you all.
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