password-recovery enable:BootWare 菜单会出现选项 8 Skip authentication(临时跳过 Console 密码),清除超级密码后可直接免密登录;undo password-recovery enable(关闭密码恢复):
Press Ctrl+B to enter EXTENDED BOOT MENU时快速按 Ctrl+B,输入 BootWare 密码(默认空,直接回车;改过则输入修改后的 BootROM 密码)进入菜单。3. Display all files in device,查看 Flash 内文件,确认启动配置文件名:startup.cfg。2. Download application file to device,通过 Console 串口 / 以太网口(Xmodem/TFTP)把startup.cfg导出到电脑本地。startup.cfg,删除所有和密码相关的配置行:
# 删除以下全部相关行
local-user admin
password cipher xxxxx
service-type telnet ssh terminal
authorization-attribute user-role level-3
line console 0
authentication-mode scheme
password-recovery disable
1. Download application file to device,将修改好、无密码的startup.cfg上传回交换机 Flash,覆盖原文件。2. Select application file to boot确认系统镜像,输入0重启交换机。system-view
password-recovery enable # 后续避免再次出现该问题
local-user admin
password simple New@123456
service-type telnet ssh terminal
authorization-attribute user-role level-3
line console 0
authentication-mode scheme
save
5. Restore to Factory Default Configuration(恢复出厂配置);startup.cfg;line console 0 authentication-mode scheme + local-user账号密码控制,独立于超级密码;system-view
password-recovery enable
save
| 菜单选项 | 功能 | 生效前提 |
|---|---|---|
| Clear super password | 仅清除超级权限密码 | 无论密码恢复开关都存在 |
| Skip authentication (选项 8) | 临时跳过 Console 登录密码 | 仅password-recovery enable时显示 |
| Restore factory default (选项 5) | 清空全部配置文件 | 任何状态都存在 |
| Download file | 上传 / 下载配置、镜像 | 通用文件操作 |
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论