在不影响业务的前提下重置 S10506X 堆叠的登录密码,核心挑战在于 IRF 的配置同步机制。如果只操作一台,配置可能会同步到另一台,导致密码重置无效。因此,关键在于选择正确的操作对象并控制配置同步。
最安全的方法是利用 IRF 的冗余特性,先在备机(Standby)上完成密码重置,再通过主备切换让备机成为主机,最后重置原主机。整个过程备机始终有一台在承载业务,理论上可实现业务不中断。
操作前提:你需要通过 Console 口物理连接到设备。由于 Console 密码也已丢失,你需要先通过 BootWare 菜单进入系统。
连接并重启备机:将 Console 线连接到备机的 Console 口,然后重启该备机。
进入 BootWare 菜单:在启动过程中,当终端出现 Press Ctrl+B to access EXTENDED-BOOTWARE MENU... 提示时,迅速按下 Ctrl+B,密码通常为空,直接回车。
选择跳过 Console 认证:在 BootWare 菜单中,选择 <8> Skip Authentication for Console Login(跳过 Console 登录认证)。这个操作只会临时清除 Console 密码,不会影响现有业务配置。
进入系统并修改密码:选择 <0> Reboot 重启,设备启动后你将无需密码直接进入命令行。此时,立即修改本地用户密码和 Console 密码:
注意:此时修改的配置可能尚未同步到主机,这是正常的。
触发主备切换:在原主机上执行 reboot 命令重启,或者将原主机断电。IRF 会自动选举原备机(已修改密码的那台)成为新的主机,业务由它承载,此过程通常对业务无感知。
重置原主机(现为备机)密码:待原主机重启完成并重新加入 IRF 成为备机后,对它重复第一阶段的 1-4 步操作,重置其密码。
验证与保存:两台设备密码均重置完成后,在当前主机上执行 save force,配置会同步到备机,确保密码持久化。
配置同步风险:在 IRF 中,主机的配置会同步到备机。如果你直接在主机上修改密码,备机可能不会同步,或者在你重启备机时,备机的旧配置会覆盖修改。上述“先备后主”的顺序就是为了规避此风险。
密码恢复功能状态:如果设备上 password-recovery 功能被关闭,BootWare 菜单可能没有 <8> 选项。此时只能选择 <6> Skip Current System Configuration(跳过当前配置启动),但这样会以空配置启动,导致业务中断,需要手动恢复配置。在执行前,请务必确认你的设备 password-recovery 功能处于开启状态。
Console 口位置:S10506X 的 Console 口通常位于主控板(MPU)上,请确保你连接的是正确的槽位。在 IRF 环境下,务必连接主设备的 Console 口进行操作,从设备的 Console 口可能无法进入 BootWare 或进行有效配置。
业务影响评估:虽然 IRF 设计上支持无缝切换,但任何涉及设备重启的操作都存在潜在风险。强烈建议在业务窗口期进行,并提前确认备机能够正常接管全部业务流量。如果业务对中断极其敏感,且没有窗口期,最稳妥的方式是联系 H3C 技术支持(400-810-0504),在工程师指导下操作。
暂无评论
通过console线和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,
===========================
|<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重启设备
===========================
|<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.
操作步骤:跳过启动文件后直接保存当前配置,再重启。
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.
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
#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
%Apr 26 12:02:07:306 2000 H3C SHELL/5/SHELL_LOGIN: Console logged in from aux0.
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服务器。

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
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.
下载成功:

可以到本地相关路径(此例子中是E盘)查看到相关文件。
需要恢复之前配置
解决方法:删除密码恢复之前配置文件
使用记事本打开startup.cfg文件

删除aux0口下的认证方式和密码并保存文件

覆盖当前配置文件
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.
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 确定继续重启
暂无评论
如若是堆叠设备、且需要重启设备进入bootware操作的,参考如下:
(1) 给备设备断电,然后通过console口连接主设备后将主设备重新启动。
(2) 设备重启时按下Ctrl+B进入bootware菜单,选择跳过当前配置启动。
(3) 选择Reboot重启设备。
(4) 设备重启时按下Ctrl+C或Ctrl+D跳过自动配置;
(5) 按下Enter键成功跳过配置文件启动。
(6) 查看配置文件内容。
more startup.cfg
(7) 将配置文件全部选中后复制粘贴到本地。
(8) 修改配置文件,配置新密码为hello12345。并将配置文件保存为startup.cfg文件,使用tftp方式导入主设备。如果文件名字为其他的,需要通过startup命令 指定下一次启动使用新的配置文件
(9) 重启主设备,新配置生效。
(11) 主设备启动好后,再启动备设备。让备设备重新加入堆叠组。
问问400吧,目前查到的资料是需要断业务的
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论