你好,我看到交换机可以进入switch:模式,如果没有关闭密码恢复功能,可以尝试如下操作:
switch:SWITCH_IGNORE_STARTUP_CFG=1
switch:boot //启动系统
....系统启动过程....
Switch>en
Switch#show run | in username
Switch#show start | in username
Switch#copy startup-config running-config
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#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rps-Cheers | If it solves your problem, please mark as answer. Thanks !