设为首页 收藏本站
查看: 2063|回复: 0

[经验分享] 华为AC忘记console密码

[复制链接]
发表于 2018-7-24 08:06:34 | 显示全部楼层 |阅读模式
  如果忘记了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后就可以免密码登录到命令行界面,然后就可以更改密码了
<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用户界面的认证方式及密码。
  参考:
  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
  华为智能客服

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-540463-1-1.html 上篇帖子: 华为配置远程telnet 下篇帖子: 华为路由总结
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表