出厂默认是admin
可以试试命令行能不能进去,修改密码。
命令行也不知道密码的话,可以重启到bootware恢复密码 :
清除Consle密码
通过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,
===========================<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 确定继续重启
H3C Comware V7平台防火墙支持通过 BootWare 菜单绕过密码认证进入系统,然后在命令行中直接修改密码,配置不会丢失。
H3C Comware V7 防火墙默认开启了 password-recovery enable 功能。这个功能的作用是:当你忘记密码时,可以通过 BootWare 菜单选择 “跳过当前配置启动”(Skip Current System Configuration),以空密码登录系统,然后手动修改密码。重启后,原有配置会重新加载,只有密码被更新。
如果你的设备被关闭了密码恢复功能(undo password-recovery enable),那跳过启动后只能恢复出厂配置,配置会丢。但绝大多数设备出厂默认是开启的。
二、操作步骤(不改配置,只改密码)
一根 Console 线(USB转串口线或RJ45转DB9线)
终端软件(SecureCRT、PuTTY、Xshell 等)
终端参数设置:波特率 9600,数据位 8,停止位 1,无校验,无流控
用 Console 线连接防火墙的 Console 口和电脑
打开终端软件,设置好参数并连接
拔掉电源再插上(或执行 reboot 命令)重启防火墙
设备启动过程中,终端窗口会显示启动信息
当出现 Press Ctrl+B to enter BootWare menu... 提示时,立即按下 Ctrl+B
如果提示输入密码,默认密码通常是空(直接回车)或 admin
成功进入 BootWare 菜单后,会看到类似选项:
确认后,设备会继续启动,但不会加载保存的配置文件
启动完成后,终端会直接进入命令行用户视图(提示符为 <H3C>),此时无需密码
按顺序执行以下命令:
关键一步:修改完密码后,执行 save 命令保存当前配置
系统会询问是否覆盖现有配置文件,选择 Y
此时,新密码已写入配置文件,但原有其他配置(接口IP、策略等)仍然保留
执行 reboot 重启防火墙
启动过程中不要按 Ctrl+B,让设备正常加载配置文件
启动完成后,使用新密码(如 admin123)登录即可
| 问题 | 说明 |
|---|---|
| 按 Ctrl+B 没反应 | 时机太晚或太快。重启后紧盯终端窗口,出现提示瞬间就要按。部分设备可能需要按 Ctrl+Break 或 Ctrl+Shift+B |
| BootWare 菜单要求输入密码 | 默认密码为空,直接回车;如果被改过且忘记了,那就只能通过恢复出厂配置(选 5)解决,但配置会丢 |
| 跳过启动后配置还在吗 | 在内存里是没有加载的,但 Flash 中保存的配置文件没有被删除。修改密码后 save,原有配置和新密码会合并保存,重启后所有配置都在 |
| 重启后配置丢失了 | 可能是执行了 restore to factory 或 reset saved-configuration。正常操作不会丢失 |
| 设备型号确认 | F1000-AK1020 属于 F1000-AK 系列,使用 Comware V7 平台,以上步骤完全适用 |
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论