华为 S2700忘记console口密码
老版本S2700忘记console口密码
问题描述
老版本S2700忘记console口密码
处理过程
华为交换机恢复密码操作:(以下操作中,进入bootrom需要密码,请尝试以下几个默认密码:huawei Admin@huawei.com www.huawei.com Admin@123 )
1.启动时按Ctrl+B进入bootrom,将交换机默认启动的配置文件改成其他名字,例如vrptest.zip
BIOS LOADING ...
Copyright (c) 2008-2010 HUAWEI TECH CO., LTD.
(Ver127, Jan 18 2011, 22:45:47)
Press Ctrl+B to enter BOOTROM menu... 1
password:
BOOTROM MENU
1. Boot with default mode
2. Enter serial submenu
3. Enter startup submenu
4. Enter ethernet submenu
5. Enter filesystem submenu
6. Modify BOOTROM password
7. Reboot
Enter your choice(1-7): 5
FILESYSTEM SUBMENU
1. Erase Flash
2. Format flash
3. Delete file from Flash
4. Rename file from Flash
5. Display Flash files
6. Update EPLD file
7. Return to main menu
Enter your choice(1-7): 4 //修改原配置文件的名称,修改后重启
No. File Size(bytes) Created Date File Name
=================================================================
1: 1752 bytes Oct 01 2008 00:01:59 private-data.txt
2: 836 bytes Oct 01 2008 00:02:35 rr.dat
3: 836 bytes Oct 01 2008 00:02:40 rr.bak
4: 1115 bytes Oct 01 2008 00:06:14 vrpcfg.zip
5: 10215068 bytes Jan 01 1970 00:03:10 S5300SI-V100R005C01SPC100.cc
BE CAREFUL!
This may cause your system fail to start!
Please choose the file you want to rename: vrpcfg.zip
Please Input the new filename: vrptest.zip
Rename file .....done
FILESYSTEM SUBMENU
1. Erase Flash
2. Format flash
3. Delete file from Flash
4. Rename file from Flash
5. Display Flash files
6. Update EPLD file
7. Return to main menu
Enter your choice(1-7): 7
BOOTROM MENU
1. Boot with default mode
2. Enter serial submenu
3. Enter startup submenu
4. Enter ethernet submenu
5. Enter filesystem submenu
6. Modify BOOTROM password
7. Reboot
Enter your choice(1-7): 7
Reboot...
重启完成,无须密码即可进入。
2. 将改名字后的文件vrptest解压缩为vrpcfg.bat。
<Quidway>dir
Directory of flash:/
Idx Attr Size(Byte) Date Time FileName
0 -rw- 1,752 Oct 01 2008 01:07:03 private-data.txt
1 -rw- 1,115 Oct 01 2008 00:09:11 vrptest.zip
...
31,620 KB total (21,620 KB free)
<Quidway>unzip vrptest.zip vrpcfg.bat //需要把vrptest.zip的文件解压成bat的格式
Extract flash:/vrptest.zip to flash:/vrpcfg.bat?[Y/N]:y
100% complete
%Decompressed file flash:/vrptest.zip flash:/vrpcfg.bat.
3.执行execute命令,运行批处理文件vrpcfg.bat,在该配置的基础上可以删除原来配置的Console密码。
<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]execute vrpcfg.bat //通过execute命令把bat的文件导入到系统的现有配置文件。
[GT_3F]
[GT_3F]
Info: This operation may take a few seconds. Please wait for a moment...done.
接下来会覆盖配置,要等一段时间,滚动完了就覆盖完了。
<GT_3F>system-view
Enter system view, return user view with Ctrl+Z.
[GT_3F]user-interface console 0
[GT_3F-ui-console0]undo authentication-mode //将原有配置的console串口密码删除
[GT_3F-ui-console0]quit
[GT_3F]quit
4.最后保存配置,重启恢复无console密码的原配置。
<GT_3F>save //保存删除密码后的配置
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0 .
Info: Save the configuration successfully.
<GT_3F>reboot //重启,console密码被删除,同时原有的业务配置不丢失
Info: The system is now comparing the configuration, please wait.
System will reboot! Continue?[Y/N]:y
根因
由于遗忘console口密码,无法登录设备
解决方案
通过修改配置文件中的配置,讲console口的认证模式删除或者不适用认证,即可
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 没有源码,如何修改代码逻辑?
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· .NET Core 托管堆内存泄露/CPU异常的常见思路
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· DeepSeek “源神”启动!「GitHub 热点速览」
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· NetPad:一个.NET开源、跨平台的C#编辑器