华为AC忘记console密码

简介:

如果忘记了Console口登录密码,用户可以通过以下两种方式来设置新的Console口登录密码:


在能通过telnet登录的情况下重新设置:


1. 通过STelnet/Telnet登录交换机设置新的Console口登录密码
这种方法的前提是:用户拥有STelnet/Telnet账号并且具有管理员的权限。以下涉及的命令行及回显信息以STelnet登录设备修改Console口密码为例。用户通过STelnet账号登录交换机后,请按照如下步骤进行配置。
a. 以登录用户界面的认证方式为密码认证,密码为Huawei@123为例,配置如下。
[HUAWEI] user-interface console 0
[HUAWEI-ui-console0] authentication-mode password
[HUAWEI-ui-console0] set authentication password cipher Huawei@123
[HUAWEI-ui-console0] return
b. 以登录用户界面的认证方式为AAA认证,用户名为admin123,密码为Huawei@123为例,配置如下。
[HUAWEI] user-interface console 0
[HUAWEI-ui-console0] authentication-mode aaa
[HUAWEI-ui-console0] quit
[HUAWEI] aaa
[HUAWEI-aaa] local-user admin123 password irreversible-cipher Huawei@123
[HUAWEI-aaa] local-user admin123 service-type terminal
[HUAWEI-aaa] return



在不能通过telnet登录的情况下通过console线更改:

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

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


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
         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)
 
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)
 
Enter your choice(1-9): 1

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<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>

    到此处就更改成功了。


    盒式交换机打印信息:
    Press Ctrl+B or Ctrl+E to enter BootROM menu ... 2
    password: //输入BootROM密码 
说明: 
    盒式交换机的某些款型支持使用快捷键“Ctrl+E”进入BootROM主菜单,请根据设备的界面提示操作。
    盒式交换机在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用户界面的认证方式及密码。



本文转自 f_066 51CTO博客,原文链接:http://blog.51cto.com/ganmu/1969547,如需转载请自行联系原作者

相关文章
|
9月前
|
数据安全/隐私保护
基础实验5-2.3:QQ帐户的申请与登陆(map的各种用法)
基础实验5-2.3:QQ帐户的申请与登陆(map的各种用法)
52 0
|
7月前
|
C++
25.【 C/C++ QQ登入系统 (人生中第一个趋形系统)】
25.【 C/C++ QQ登入系统 (人生中第一个趋形系统)】
26 0
判断手机登录还是电脑登录效果示例(整理)
判断手机登录还是电脑登录效果示例(整理)
|
10月前
|
Linux 数据安全/隐私保护
Linux权权限系统(假设系统第一个用户名为admin)限系统(假设系统第一个用户名为admin)
Linux权权限系统(假设系统第一个用户名为admin)限系统(假设系统第一个用户名为admin)
42 0
|
11月前
|
安全 关系型数据库 MySQL
从输入任何密码都可以直接登录 MySQL 的 root 用户谈 auth_socket 验证插件---发表到爱可生开源社区
一线的工程师反映了一个奇怪的现象,刚刚从 MySQL 官网上下载了一个 MySQL 5.7.31,安装完成后,发现使用任何密码都能登陆 MySQL,修改密码也不管用,重新启动 MySQL 也不能解决。
353 0
|
测试技术
赏金猎人系列-如何测试注册(Sign up)功能以及相关Tips
正文 本文承接前文赏金猎人系列-如何测试注册(Sign up)功能,继续梳理注册功能的测试流程,相关文章还有: 注册功能测试小结
117 1
|
小程序
微信小程序——解决上传并部署云函数时报错ResourceNotFound.Function, 未找到函数版本,请创建后再试。 (7f2d9d2d-5eac-4575-9n57-acd66cfa587g
微信小程序——解决上传并部署云函数时报错ResourceNotFound.Function, 未找到函数版本,请创建后再试。 (7f2d9d2d-5eac-4575-9n57-acd66cfa587g
微信小程序——解决上传并部署云函数时报错ResourceNotFound.Function, 未找到函数版本,请创建后再试。 (7f2d9d2d-5eac-4575-9n57-acd66cfa587g
ctfshow-网络迷踪-初学再练( 一座雕像判断军事基地名称)
ctf.show 网络迷踪第4关,题目中只有一座雕像,需要根据雕像提交军事基地的名称,推荐使用谷歌识图,溯源到一篇博客,答案就在文章标题中
190 0
ctfshow-网络迷踪-初学再练( 一座雕像判断军事基地名称)
|
数据安全/隐私保护
华为设备默认console密码
admin@huawei.com Admin@huawei.com Admin@huawei huawei.com huawei@123 huawei Change_Me  网名:浩秦; 邮箱:root#landv.pw; 只要我能控制一個國家的貨幣發行,我不在乎誰制定法律。
1449 0