重启Switch。 立即按住“Mode”按钮。 按住按钮约12秒钟,状态LED将变为琥珀色。 在console输入界面上,您应该位于引导加载程序(BootLoader)中。

Switch:

添加以下变量:

Switch: SWITCH_IGNORE_STARTUP_CFG=1

Switch: SWITCH_DISABLE_PASSWORD_RECOVERY=0

然后启动交换机:

Switch: boot

一旦交换机启动成功,我们可以进入#模式,然后恢复running配置:

Switch# copy start runn

接来下恢复密码,然后删除在BootLoader中设置的变量:

Switch# no system ignore startupconfig switch all

Switch# system disable password recovery switch all

Switch# copy runn start

例如设置本地的账户密码并保存:

Switch#conf t
Switch(config)#username xxx pri 15 secret xxx 
Switch(config)#no system ignore startupconfig switch all
Switch(config)#exit
Switch#wr
Building configuration...
[OK]
Switch#

如下修改AAA的示例:

Switch(config)# aaa new-model
Switch(config)# aaa authentication login default local
Switch(config)# username admin privilege 15 secret StAnLeYcUp
Switch(config)# line vty 0 4
Switch(config-line)# login authentication default

Refer to:

https://community.cisco.com/t5/networking-documents/password-recovery-on-cisco-catalyst-3850/ta-p/3154378

https://www.mathewjbray.com/cisco/cisco-ios-xe-password-recovery-on-catalyst-3850/

 

相关文章:

  • 2022-12-23
  • 2021-12-15
  • 2021-12-23
  • 2021-07-22
  • 2021-12-27
  • 2021-10-01
  • 2021-12-23
  • 2021-05-21
猜你喜欢
  • 2022-12-23
  • 2021-04-14
  • 2021-07-19
  • 2021-09-24
  • 2021-04-08
  • 2021-09-24
  • 2021-04-06
相关资源
相似解决方案