Password Recovery on Cisco Catalyst 3850

重启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/

原文地址:https://www.cnblogs.com/MomentsLee/p/12591249.html