华为路由器、交换机、AC忘记密码,保留配置处理方法 密码恢复
  ETWZF7L1nsXD 2023年11月02日 61 0
在不能通过telnet登录的情况下通过console线更改:

    通过BootROM清除Console口登录密码
    交换机的BootROM提供了清除Console口登录密码的功能,用户可以在交换机启动后修改Console口登录密码,
    然后保存配置。请按照如下步骤进行配置。
    
第一步1.通过Console口连接交换机,并重启交换机。当界面出现以下打印信息时,
     及时按下快捷键“Ctrl+B”并输入BootROM密码,进入BootROM主菜单。
    框式交换机打印信息:
Press Ctrl+B to enter boot menu ... 1

Password: //输入BootROM密码 (admin@huawei.com)

以下是密码 试试你的是那个
admin@huawei.com(其他型号)

Admin@huawei  (6003、6005、6605、ACU2、AC6800V)

Admin@huawei.com

第二步

        BIOS Menu (Version: 314)

     1. Boot with default mode 
     2. Enter serial submenu
     3. Enter startup submenu
     4. Enter ethernet submenu
     5. Enter file system submenu
     6. Modify BOOTROM password
     7. Clear password for console user
     8. Config HigMem to Flash Flag
     9. Reboot
     (Press CTRL+E to enter Diag menu)

选择 7 Enter your choice(1-9): 7
Caution: Clear password for console user?  Yes(y) or No(n): y

Clear password for console user successfully.
Choose "1.Boot with default mode", then set a new password by console command line.
Caution: Do not reboot or power off the device, otherwise this operation will not take effect.

        BIOS Menu (Version: 314)

     1. Boot with default mode 
     2. Enter serial submenu
     3. Enter startup submenu
     4. Enter ethernet submenu
     5. Enter file system submenu
     6. Modify BOOTROM password
     7. Clear password for console user
     8. Config HigMem to Flash Flag
     9. Reboot
     (Press CTRL+E to enter Diag menu)

选择1 Enter your choice(1-9): 1

记得最后一步一定要选择1 ,而不能选择9 ,因为上面选择7后明确告诉我们,
如果重启则所做更改不会被保存。选择1后就可以免密码登录到命令行界面,
然后就可以更改密码了

第三步 设置console密码
<AC6003>sys
[AC6003]user-interface console 0
[AC6003-ui-console0]authentication-mode password

[AC6003-ui-console0]set authentication password cipher
Info: A plain text password is a string of 8 to 16 case-sensitive characters and must be a combination of at least two of the following: uppercase letters A to Z, lowercase letters a to z, digits, and special characters (including spaces and the following :`~!@#$%^&*()-_=+|[{}];:\'",<.>/?). A cipher text password contains 68 characters.
New Password:输入新密码
Confirm New Password:再输入一遍
[AC6003-ui-console0]
[AC6003-ui-console0]ret
<AC6003>sa
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait........
  Configuration file has been saved successfully
  Note: The configuration file will take effect after being activated
<AC6003>
盒式交换机在V100R006C05之前的版本,BootROM默认密码为huawei;

在V100R006C05及之后的版本,默认密码为Admin@huawei.com。

    框式交换机在V100R006C00之前的版本,BootROM默认密码为9300;在V100R006C00及之后的版本,
    默认密码为Admin@huawei.com。
    b. 在BootROM主菜单下选择“Clear password for console user”清除Console口登录密码。
    
    c.根据交换机的提示,在BootROM主菜单下选择“Boot with default mode”启动设备。
    
    d. 完成系统启动后,通过Console口登录时不需要认证,登录后按照系统提示配置验证密码。
    
    e. 登录交换机后,用户可以根据需要配置Console用户界面的认证方式及密码。



1、进入bootrom(bootload)

华为路由器、交换机、AC忘记密码,保留配置处理方法 密码恢复_自定义

Press Ctrl+B to breakauto startup … 2

Enter Password:

2、输入密码(不同类型的设备密码不一样)

(1)、路由器

早期版本:V200R003

huawei

常见版本:V200R005-R009

Admin@huawei

最新版本:V300R019

自定义

(2)、交换机

V100R003C00-V200R006C00:

huawei

V200R001C00–V200R019

V200R006C50

Admin@huaweic.om

V200R020C00及之后版本

自定义

(3)、AC

V200R019C00之前版本

admin@huaweic.om(其他型号)

Admin@huawei(6003、6005、6605、ACU2、AC6800V)

V200R019C00之后版本

自定义

3、路由器恢复的选项

Main Menu

  1. Default Startup
  2. Serial Menu
  3. Network Menu
  4. Startup Select
  5. File Manager
  6. Reboot
  7. Password Manager

Enter your choice(1-7):7

PassWord Menu

  1. Modify the menu password
  2. Clear the console login password
  3. Return

Enter your choice(0-2):2

Clear the console loginpassword Succeed!

PassWord Menu

  1. Modify the menu password
  2. Clear the console login password
  3. Return

Enter your choice(0-2):0

Main Menu

  1. Default Startup
  2. Serial Menu
  3. Network Menu
  4. Startup Select
  5. File Manager
  6. Reboot
  7. Password Manager
    Enter your choice(1-7):1

路由器的顺序是7-2-0-1(密码管理-清空console登录—返回—默认启动),这里注意是千万别要选择6,否则刚操作的就白费了。

4、AC跟交换机的选项

BootLoad Menu

  1. Boot with default mode
  2. Enter startup submenu
  3. Enter ethernet submenu
  4. Enter filesystem submenu
  5. Enter password submenu
  6. Clear password forconsole user
  7. Reboot

(Press Ctrl+E to enter diag menu)

Enter your choice(1-7):6

Note: Clear passwordfor console user? Yes or No(Y/N): y

Clear password forconsole user successfully.

Note: Choose “1.Boot with default mode” to boot, then set a new password.

1.Boot with default mode

  1. Enter startup submenu
  2. Enter ethernet submenu
  3. Enter filesystem submenu
  4. Enter password submenu
  5. Clear password for consoleuser
  6. Reboot

(Press Ctrl+E to enter diag menu)

Enter your choice(1-7): 1

这里千万别选7重启,清空后选择1启动,否则刚清空的会失效,这是为什么很多朋友跳过失败的原因。

5、跳过后修改密码

这个部分建议参考视频讲解,更加详细

sy

[AR2]aaa

[AR2-aaa]local-user admin password irreversible-cipher ccieh3c.com

(修改密码即可,如果console是密码认证,不是用户名认证的情况下可以参考下面这种)

[AR2]user-interface console 0

[AR2-ui-console0]set authentication password cipher

(路由器是直接回车,其他设备有的可以在后面直接跟密码,有的是回车后设置,具体可以在对应设备上面尝试下就行了。

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  jnZtF7Co41Wg   2023年11月22日   22   0   0 linuxApacheci
  jnZtF7Co41Wg   2023年11月24日   29   0   0 分区表cicentos
  py5aPqzocVnd   2023年11月22日   36   0   0 协议ci
ETWZF7L1nsXD