最佳答案
重启到bootware恢复密码
目录
本案例适用于如S5130-28F-WiNet、S5500V2-24P-WiNet、S5500V2-48P-WiNet等的V7交换机,V5、V7交换机具体分类及型号可以参考“1.1 Comware V5、V7平台交换机分类说明”。
清除Consle密码,恢复出厂
无
通过conlse线和crt软件连接并登陆设备,然后把设备断电重启。控制台上会打印如下信息,当出现“press Ctrl+B”的时候快速按住“Ctrl+B” 进入botroom菜单
System is starting...
Press Ctrl+D to access BASIC-BOOTWARE MENU
Booting Normal Extend BootWare
The Extend BootWare is self-decompressing.......................Done!
BootWare Validating...
Press Ctrl+B to enter extended boot menu...
BotWare password: Not required. Please press Enter to continue.
Password recovery capability is enabled.
Note: The current operating device is flash
Enter < Storage Device Operation > to select device.
按住“Ctrl+B”进入如下菜单。选择“<6> Skip Current System Configuration”跳过当前配置启动,不同设备可能不是数字6,
===========================<EXTEND-BOOTWARE MENU>===========================
|<1> Boot System |
|<2> Enter Serial SubMenu |
|<3> Enter Ethernet SubMenu |
|<4> File Control |
|<5> Restore to Factory Default Configuration |
|<6> Skip Current System Configuration |
|<7> BootWare Operation Menu |
|<8> Clear Super Password |
|<9> Storage Device Operation |
|<0> Reboot |
============================================================================
Ctrl+Z: Access EXTEND-ASSISTANT MENU
Ctrl+F: Format File System
Enter your choice(0-9): 6
Flag Set Success.
然后输入0重启设备
===========================<EXTEND-BOOTWARE MENU>===========================
|<1> Boot System |
|<2> Enter Serial SubMenu |
|<3> Enter Ethernet SubMenu |
|<4> File Control |
|<5> Restore to Factory Default Configuration |
|<6> Skip Current System Configuration |
|<7> BootWare Operation Menu |
|<8> Clear Super Password |
|<9> Storage Device Operation |
|<0> Reboot |
============================================================================
Ctrl+Z: Access EXTEND-ASSISTANT MENU
Ctrl+F: Format File System
Enter your choice(0-9): 0
System is starting...
Press ENTER to get started.
操作步骤:跳过启动文件后直接保存当前配置,再重启。
<H3C>save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):(输入回车)
flash:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait...
Configuration is saved to device successfully.
<H3C>reboot
Start to check configuration with next startup configuration file, please wait.........DONE!
Current configuration may be lost after the reboot, save current configuration? [Y/N]:y
This command will reboot the device. Continue? [Y/N]:y
<H3C>
#Apr 26 12:02:07:166 2000 H3C SHELL/4/LOGIN:
Trap 1.3.6.1.4.1.25506.2.2.1.1.3.0.1<hh3cLogIn>: login from Console
%Apr 26 12:02:07:306 2000 H3C SHELL/5/SHELL_LOGIN: Console logged in from aux0.
<H3C>dir %查看设备配置文件
Directory of flash:/
1 drw- - Apr 26 2000 12:00:20 logfile
2 -rw- 1666 Apr 26 2000 12:05:39 startup.cfg
3 -rw- 1556 Apr 26 2000 12:05:33 _startup_bak.cfg
4 -rw- 151 Apr 26 2000 12:05:30 system.xml
29106 KB total (16876 KB free)
给设备和电脑配置成同网段IP地址(举例:WAC配置成192.168.100.1,电脑配置成192.168.100.2),在电脑上通过3CD软件搭建tftp服务器。
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]interface Vlan-interface 1
[H3C-Vlan-interface1]ip address 192.168.100.1 24
[H3C-Vlan-interface1]quit
[H3C]ping 192.168.100.2
PING 192.168.100.2: 56 data bytes, press CTRL_C to break
Reply from 192.168.100.2: bytes=56 Sequence=1 ttl=128 time=7 ms
Reply from 192.168.100.2: bytes=56 Sequence=2 ttl=128 time=2 ms
<H3C>tftp 192.168.100.2 put startup.cfg
File will be transferred in binary mode
Sending file to remote TFTP server. Please wait... |
TFTP: 1666 bytes sent in 0 second(s).
File uploaded successfully.
<H3C>
下载成功:
可以到本地相关路径(此例子中是E盘)查看到相关文件。
需要恢复之前配置
解决方法:删除密码恢复之前配置文件
使用记事本打开startup.cfg文件
删除aux0口下的认证方式和密码并保存文件
覆盖当前配置文件
<H3C>tftp 192.168.100.20 get startup.cfg
The file startup.cfg exists. Overwrite it? [Y/N]:y
Verifying server file...
Deleting the old file, please wait...
...
File will be transferred in binary mode
Downloading file from remote TFTP server, please wait....
TFTP: 1166 bytes received in 0 second(s)
File downloaded successfully.
<H3C>reboot
Start to check configuration with next startup configuration file, please wait.........DONE!
Current configuration may be lost after the reboot, save current configuration? [Y/N]:n 不保存配置
This command will reboot the device. Continue? [Y/N]:y 确定继续重启
(0)
密码忘记了、这个就不好办了呀、只能换个新设备了;
😀
对于H3C S7506E交换机忘记密码的情况,请根据以下步骤处理:
###
一、判断密码恢复功能状态
1. **通过BootWare菜单判断** 重启设备,在启动界面按 **Ctrl+B** 进入BootWare菜单。
若菜单中存在 **"8. Skip Authentication for Console Login"** 选项,表示密码恢复功能已启用;
若显示 **"5. Restore to Factory Default Configuration"**,则表示密码恢复功能关闭。
2. **通过配置查看(若可登录)
** 使用Telnet/SSH登录后执行 `display current-configuration`,若存在 **`password-recovery enable`** 配置,则密码恢复功能已启用。
--- ###
二、密码恢复功能启用时的处理步骤
1. **进入BootWare菜单** 重启设备,在启动界面提示 **"Press Ctrl+B"** 时,3秒内按 **Ctrl+B**,输入密码(若有)进入菜单。
2. **跳过Console认证** 选择 **选项8(Skip Authentication for Console Login)**,系统提示 **"Clear Image Password Success!"** 后,选择 **选项0(Reboot)** 重启设备。
3. **修改Console密码** 重启后通过Console登录无需密码,立即修改密码:
```bash <Sysname> system-view
[Sysname] line aux 1/1
[Sysname-line-aux1/1] authentication-mode passwo
rd [Sysname-line-aux1/1] set authentication password simple <新密码>
[Sysname-line-aux1/1] return
``` 保存配置:`
<Sysname> save`
--- ###
三、密码恢复功能关闭时的处理步骤
1. **恢复出厂设置(会丢失配置)** 在BootWare菜单中选择 **选项5(Restore to Factory Default Configuration)**,确认后设备以出厂配置重启。 2. **重新配置设备** 恢复后需重新配置所有参数,包括Console/Telnet密码。 --- ###
四、其他注意事项 1. **Telnet/SSH密码忘记** 若Console密码已知,通过Console登录后修改Telnet/SSH密码:
```bash <Sysname> system-view
[Sysname] line vty 0 63
[Sysname-line-vty0-63] authentication-mode passwo
rd [Sysname-line-vty0-63] set authentication password simple <新密码> ```
2. **版本兼容性** - 确保BootWare版本≥5.00,否则部分功能可能受限。 - 高版本系统(如CMW520-R1513P96后)需通过本地用户视图修改密码:
```bash [Sysname] local-user admin
[Sysname-luser-admin] password simple <新密码> ```
3. **风险提示** - 操作前备份配置(若可能),避免业务中断。 - 恢复出厂设置会导致配置丢失,谨慎操作。 --- ###
五、参考案例 - **双主控场景**:若设备有双主控板,操作前拔掉备用主控,避免配置同步冲突。
- **配置文件导出**:
在BootWare菜单按 **Ctrl+Y** 通过TFTP导出配置文件,删除密码字段后重新导入。
通过上述步骤,可高效解决S7506E密码遗忘问题,同时确保配置安全。
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论