华为AC忘记console密码
admin
2023-03-15 23:01:26
0


如果忘记了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)


        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后就可以免密码登录到命令行界面,然后就可以更改密码了

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
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

    到此处就更改成功了。


    盒式交换机打印信息:
    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用户界面的认证方式及密码。

参考:

http://support.huawei.com/enterprise/pages/doc/subfile/docDetail.jsp?contentId=DOC1000030801&partNo=10052#dc_wlan_password_0004

http://support.huawei.com/huaweiconnect/enterprise/thread-337263.html

https://wenku.baidu.com/view/b2d3cf249ec3d5bbfc0a74bd.html

http://support.huawei.com/ehedex/pages/DOC1000055019DZD0928P/05/DOC1000055019DZD0928P/05/resources/dc/dc_s_troubleshooting_basic_0010.html?ft=0&id=DZD0928P_05_10115

华为智能客服

相关内容

热门资讯

特朗普:预计“很快”收到伊朗对... △美国总统特朗(资料图)当地时间5月9日,央视记者获悉,美国总统特朗普表示,他预计“很快”会收到伊朗...
伊朗拟对霍尔木兹海峡的海底电缆... 据伊朗法尔斯通讯社5月9日报道,伊朗为途经霍尔木兹海峡、承担互联网通信业务的海底光缆,提出了一套管理...
美国一客机起飞过程中撞上行人,... △资料图当地时间5月9日,央视记者获悉,一架从丹佛国际机场飞往洛杉矶的航班在起飞过程中撞上一名闯入跑...
凤凰女记者战地日记丨这哪里还算... 【编者按】这是凤凰卫视驻伊朗记者李睿的战地日记。她身处德黑兰,既是战争的亲历者,也是观察者。在她的日...
中国发布禁令,禁止美国制裁中国... 2026年4月24日美国发布公告,把中国5家石化企业列入制裁名单,理由是参与或协助伊朗的石油交易,引...
电力系统母线安全保护领域取得关... (来源:中国电力新闻网) 转自:中国电力新闻网 近日,山西铝业自主研发的《弧光保护系统安装优化方法、...
第三届“探索雅安·阅见美好”阅... 近日,由雅安市图书馆主办的第三届“探索雅安·阅见美好”阅读打卡活动在市区三雅园及雅安市图书馆开展。 ...
实验型真空冷冻干燥机选型指南:... 导语:实验型真空冷冻干燥机作为科研、高校及企业研发环节的关键设备,其性能稳定性直接影响物料干燥效率与...
丁薛祥调研华为芯片基础技术研究... 5月8日晚,中央电视台《新闻联播》播出了一则重量级画面:中共中央政治局常委、国务院副总理丁薛祥到访华...
王自如公布智能指环项目 售价或... 【CNMO科技消息】5月9日,据CNMO科技了解,王自如近日通过视频展示其研发的智能指环产品,该产品...