华三设备Console密码忘记,不丢配置更改密码 您所在的位置:网站首页 华为平板如何恢复出厂设置不知道密码 华三设备Console密码忘记,不丢配置更改密码

华三设备Console密码忘记,不丢配置更改密码

2023-12-28 03:27| 来源: 网络整理| 查看: 265

当忘记Console密码时候,想要不丢配置可以将设备重启,进行以下操作更改密码。

1、设备重启之后,看到按“CTRL+B”的提示时,快速按CTRL+B。     #手速跟不上可重启后狂按CTRL+B

注:有的设备按下CTRL+B后,需要再按一下回车键,才能显示BootROM的菜单选项

 

方法一:选择BootROM菜单选项 Skip Authentication for Console Login

2、 下面就是BootROM的菜单项,选择8,回车

注:6和8都可以跳过Console密码,效果是不同的,有的设备是没有第8个选项,根据自己的设备情况来

====================================================

| Boot System                                #启动应用程序,也就是直接进入系统  

| Enter Serial SubMenu                  #进入串口子菜单,用来更改串口速率和上传文件

| Enter Ethernet SubMenu             #进入以太网子菜单,一般用网线上传文件从这里设置

| File Control                                  #进入文件控制器子菜单,是对文件的一些基本操作:查看、删除等

| Restore to Factory Default Configuration         #恢复出厂设置

| Skip Current System Configuration                  #跳过当前系统配置,不启动你之前的配置,属于空配置

| BootWare Operation Menu                              #进入BootRWare操作子菜单

| Skip Authentication for Console Login            #跳过Console口登录认证,也就是跳过console密码

| Storage Device Operation                              #进入存储介质操作子菜单

| Reboot                                                           #重启设备

============================================================================

Ctrl+Z: Access EXTENDED ASSISTANT MENU

Ctrl+F: Format File System

Enter your choice(0-9):8

 

3、回车后会再次回到这个界面,选择1,回车进入系统

====================================================

| Boot System                                                           |

| Enter Serial SubMenu                                                  |

| Enter Ethernet SubMenu                                                |

| File Control                                                          |

| Restore to Factory Default Configuration                              |

| Skip Current System Configuration                                     |

| BootWare Operation Menu                                               |

| Skip Authentication for Console Login                                 |

| Storage Device Operation                                              |

| Reboot                                                                |

============================================================================

Ctrl+Z: Access EXTENDED ASSISTANT MENU

Ctrl+F: Format File System

Enter your choice(0-9):1

 

4、选择的跳过console认证,进入系统后将不输入console密码,直接进入到用户视图,此刻设备的配置为空,可以在系统视图下配置回滚恢复原有配置,如下配置表示将当前配置回滚到配置文件startup.cfg中的配置状态。如果不想恢复原有配置,请跳过此步骤。

system-view

[H3C]configuration replace file startup.cfg

Current configuration will be lost, save current configuration? [Y/N]:n

Info: Now replacing the current configuration. Please wait...

Info: Succeeded in replacing current configuration with the file startup.cfg.

 

5、更改console密码、保存配置

在系统视图下设置新的Console口密码,如下配置表示设置Console口验证方式为密码验证,且以密文方式设置Console口的密码为123456。

sys

[H3C]user-interface console 0       #进入console视图下

[H3C-ui-console0]authentication-mode password      #设置安全模式为密码

[H3C-ui-console0]set authentication password simple 123456     #设置密码为123456

[H3C-ui-console0] sa f      #保存当前配置

此刻你的console密码就是123456,保存配置后

 

 

 

方法二:选择BootROM菜单选项 Skip Current System Configuration

2、 下面就是BootROM的菜单项,选择6,回车

注:选项进入系统后,是跳过当前配置,所以里面是空配置,但原配置还在系统中

====================================================

| Boot System                                #启动应用程序,也就是直接进入系统  

| Enter Serial SubMenu                  #进入串口子菜单,用来更改串口速率和上传文件

| Enter Ethernet SubMenu             #进入以太网子菜单,一般用网线上传文件从这里设置

| File Control                                  #进入文件控制器子菜单,是对文件的一些基本操作:查看、删除等

| Restore to Factory Default Configuration         #恢复出厂设置

| Skip Current System Configuration                  #跳过当前系统配置,不启动你之前的配置,属于空配置

| BootWare Operation Menu                              #进入BootRWare操作子菜单

| Skip Authentication for Console Login            #跳过Console口登录认证,也就是跳过console密码

| Storage Device Operation                              #进入存储介质操作子菜单

| Reboot                                                           #重启设备

============================================================================

Ctrl+Z: Access EXTENDED ASSISTANT MENU

Ctrl+F: Format File System

Enter your choice(0-9):

6

 

3、回车后会再次回到这个界面,选择1,回车进入系统

====================================================

| Boot System                                                           |

| Enter Serial SubMenu                                                  |

| Enter Ethernet SubMenu                                                |

| File Control                                                          |

| Restore to Factory Default Configuration                              |

| Skip Current System Configuration                                     |

| BootWare Operation Menu                                               |

| Skip Authentication for Console Login                                 |

| Storage Device Operation                                              |

| Reboot                                                                |

============================================================================

Ctrl+Z: Access EXTENDED ASSISTANT MENU

Ctrl+F: Format File System

Enter your choice(0-9):1

 

4、进入系统后,无需输入console密码,直接进入到用户视图

dir      #查看系统文件 Directory of flash:    0 drw-                - Sep 16 2020 10:13:44   diagfile    1 -rw-           1554 Sep 16 2020 11:13:01   ifindex.dat    2 -rw-         21632 Sep 16 2020 10:13:44   licbackup    3 drw-                 - Sep 16 2020 10:13:44   license    4 -rw-         21632 Sep 16 2020 10:13:44   licnormal    5 drw-                 - Sep 16 2020 10:13:44   logfile    6 -rw-                 0 Sep 16 2020 10:13:43   s5820v2_5830v2-cmw710-boot-a7514.bin    7 -rw-                 0 Sep 16 2020 10:13:43   s5820v2_5830v2-cmw710-system-a7514.bin    8 drw-                 - Sep 16 2020 10:13:44   seclog    9 -rw-           6382 Sep 16 2020 11:13:01   startup.cfg   10 -rw-       111206 Sep 16 2020 11:13:01   startup.mdb

1046512 KB total (1046304 KB free)

注:配置文件默认名称为 startup.cfg,配置文件都是 .cfg结尾

 

5、查看配置文件 

more  startup.cfg         #查看startup.cfg文件 #  version 7.1.075, Alpha 7571 #  sysname H3C #  irf mac-address persistent timer  irf auto-update enable  undo irf link-delay  irf member 1 priority 1 #  lldp global enable # 一下空格敲到底,将配置文件拷贝出来

找到  line con 0

将里面的set authentication password hash 以及后面的一堆数字字母符号的东西删掉,替换成 set authentication password simple 123456   #意思就是将密码设置成123456

 

6、将刚才拷贝出来并改好密码的配置,复制粘贴再刷到配置中

最重要的一步

save  force    保存配置


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有