当前位置: 首页 > news >正文

华为S5735交换机console密码重置和恢复出厂设置

比较简单,简单说就是进入bootload清除密码,然后进入default mode下重置密码。

1.开机按Ctrl+B,进入启动加载菜单(BootLoad menu)

拨电源重启交换机,大约开机10多秒的时候会出现提示按Ctrl+B可以进入BootLoad menu.

Last reset type: PowerOnPress Ctrl+B to enter BootLoad menu : 1 

2.清除console密码

Password: BootLoad Menu 1. Boot with default mode2. Enter startup submenu3. Enter ethernet submenu4. Enter filesystem submenu5. Enter password submenu6. Clear password for console user7. Reboot(Press Ctrl+E to enter diag menu)Enter your choice(1-7): 6    Note: Clear password for console user? Yes or No(Y/N): y    
Clear password for console user successfully. 

3.进入默认模式(default mode)

Note: Choose "1. Boot with default mode" to boot, then set a new password.Note: If the device is restarted during startup, you need to perform this operation again.BootLoad Menu 1. Boot with default mode2. Enter startup submenu3. Enter ethernet submenu4. Enter filesystem submenu5. Enter password submenu6. Clear password for console user7. Reboot(Press Ctrl+E to enter diag menu)Enter your choice(1-7): 1    Startup information : 1Read boot file: flash:/s5735-l1-v200r021c00spc600.cc 

4.设置密码

Recover configuration begin ...
Recover configuration end
Press ENTER to get started.An initial password is required for the first login via the console.
Set a password and keep it safe. Otherwise you will not be able to login via the console.Please configure the login password (8-16)
Enter Password:
Confirm Password:
Warning: The authentication mode was changed to password authentication and the user level was changed to 15 on con0 at the first user login.
Warning: There is a risk on the user-interface which you login through. Please change the configuration of the user-interface as soon as possible. Info: Smart-upgrade is currently disabled. Enable Smart-upgrade to get recommended version information.
<GZ-DG-FHYYB-AF-AS-S1>

5.保存配置并重启

配置如下:

user-interface con 0authentication-mode passwordset authentication password cipher $1a$/U[)(~F@>7$p<=fF:/-"1jtO|,7NM'(wYsxBK_'0YdABj'U%TCB$idle-timeout 5 0

保存并重启:


<GZ-DG-FHYYB-AF-AS-S1>save
The current configuration will be written to flash:/gz-dg-fhyyb-af-as-s1.cfg.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0..
2024-7-13 00:14:46.570.2+08:00 GZ-DG-FHYYB-AF-AS-S1 %%01CFM/4/SAVE(s)[0]:The user chose Y when deciding whether to save the configuration to the device...
Save the configuration successfully.
<GZ-DG-FHYYB-AF-AS-S1>
<GZ-DG-FHYYB-AF-AS-S1>reboot
Info: The system is now comparing the configuration, please wait.......
Info: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'.
System will reboot! Continue?[Y/N]:y
2024-7-13 00:18:28.810.2+08:00 GZ-DG-FHYYB-AF-AS-S1 %%01CMD/4/REBOOT(s)[2]:The user chose Y when deciding whether to reboot the system. (Task=co0, Ip=**, VpnName=, User=**)
Comparing the firmware versions
The latest firmware version is in use.
Info: System is rebooting, please wait...
Jul 13 2024 00:18:29+08:00 GZ-DG-FHYYB-AF-AS-S1 SYSMIB/4/RELOAD_END:1.3.6.1.4.1.56813.5.25.19.2.2 Reload operation completed
2024-7-13 00:18:29.730.1+08:00 GZ-DG-FHYYB-AF-AS-S1 %%01SRM/4/MSTRSCURST(l)[3]:Master SCU is reset.
2024-7-13 00:18:29.730.2+08:00 GZ-DG-FHYYB-AF-AS-S1 %%01SRM/4/RESETREASON(l)[4]:Board reset by VRP command or net manager, the barcode is: 4E21B0116269.
starting pid 1250, tty '': '/etUnmounting all filesystems: 
The system is going down NOW!
Sent SIGTERM to all processes

恢复出厂配置

命令:reset saved-configuration
然后在是否保存配置时,选择 n,不保存。

<GZ-DG-FHYYB-AF-AS-S1>reset saved-configuration 
Warning: The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:y
Warning: Now clearing the configuration in the device..
2024-7-13 02:52:18.70.2+08:00 GZ-DG-FHYYB-AF-AS-S1 %%01CFM/4/RST_CFG(s)[0]:The user chose Y when deciding whether to reset the saved configuration.
Jul 13 2024 02:52:18+08:00 GZ-DG-FHYYB-AF-AS-S1 HWCM/4/CFGCHANGE:OID 1.3.6.1.4.1.56813.6.10.2.1 Configure changed. (EventIndex=3, CommandSource=1, ConfigSource=1, ConfigDestination=4)
Info: Succeeded in clearing the configuration in the device.
<GZ-DG-FHYYB-AF-AS-S1>
<GZ-DG-FHYYB-AF-AS-S1>reboot
<GZ-DG-FHYYB-AF-AS-S1>reboot 
Info: The system is now comparing the configuration, please wait................
Warning: The configuration has been modified, and it will be saved to the next startup saved-configuration file . Continue? [Y/N]:n
Info: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'.
System will reboot! Continue?[Y/N]:y
Comparing the firmware versions
The latest firmware version is in use.
2024-7-13 02:52:46.590.2+08:00 GZ-DG-FHYYB-AF-AS-S1 
。。。。。。
Sent SIGKILL to all processes
Requesting system reboot
http://www.lryc.cn/news/458627.html

相关文章:

  • Spring Security无脑使用
  • 学习 PostgreSQL + Spring Boot 3 +mybatisplus整合过程中的报错记录
  • 立仪光谱共焦传感器在玻璃测量技术上的突破
  • Llama系列上新多模态!3.2版本开源超闭源,还和Arm联手搞了手机优化版,Meta首款多模态Llama 3.2开源!1B羊驼宝宝,跑在手机上了
  • 系统缺失mfc140.dll的修复方法,有效修复错误mfc140.dll详细步骤
  • 移动app的UI和接口自动化测试怎么进行?
  • Unity实现自定义图集(二)
  • 智能码二维码zhinengma.cn的动态数据更新是如何实现的?
  • uniapp view怎么按长度排列一行最多四个元素,并且换行后,每一行之间都有间隔
  • Android列表组件api
  • ToB项目身份认证AD集成(完):利用ldap.js实现与windows AD对接实现用户搜索、认证、密码修改等功能 - 以及针对中文转义问题的补丁方法介绍
  • SpringBoot+SeetaFace6搭建人脸识别平台
  • MySQL-06.DDL-表结构操作-创建
  • 在Visual Studio中使用CMakeLists.txt集成EasyX库的详细指南
  • CRC码计算原理
  • 对高危漏洞“Docker Engine API is accessible without authentication”的修复
  • 两种方式创建Vue项目
  • 深入理解 C/C++ 指针
  • 有什么方法可以保护ppt文件不被随意修改呢?
  • [C#]项目中如何用 GraphQL 代替传统 WebAPI服务
  • 对后端返回的日期属性进行格式化(扩展 Spring MVC 的消息转换器)
  • 踩坑记录-用python解析php Laravel8生成的jwt token一直提示 Invalid audience
  • 使用IOT-Tree Server制作一个边缘计算设备(Arm Linux)
  • (JAVA)B树和B+树的实现原理阐述
  • JC系列CAN通信说明
  • Ubuntu22——安装并配置局域网文件共享系统Samba
  • HTML CSS 基础
  • Nginx 使用 GeoIP 模块阻止特定国家 IP 地址的最佳实践
  • vue3 + vite + cesium项目
  • DR模式 LVS负载均衡群集