首页 > 其他分享 >华为路由器、交换机、AC忘记密码,保留配置处理方法 密码恢复

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

时间:2023-06-16 12:32:01浏览次数:77  
标签:AC console 密码 交换机 user Enter 密码恢复 password 路由器

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

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

Password: //输入BootROM密码 ([email protected])

以下是密码 试试你的是那个
[email protected](其他型号)

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

[email protected]

第二步

        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及之后的版本,默认密码为[email protected]。

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



1、进入bootrom(bootload)

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

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

[email protected]

V200R020C00及之后版本

自定义

(3)、AC

V200R019C00之前版本

[email protected](其他型号)

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

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

标签:AC,console,密码,交换机,user,Enter,密码恢复,password,路由器
From: https://blog.51cto.com/u_64214/6499172

相关文章

  • GitHub Actions by Example
    GitHubActionsbyExampleGitHubActionsisaconvenientCI/CDserviceprovidedbyGitHub.GitHubActionsbyExample isanintroductiontotheservicethroughannotatedexamples.HelloWorldEventTriggersActionsEnvironmentVariablesParallelJobsJob......
  • springboot整合cache缓存
    第一步:在pom.xml文件中导入对应坐标<!--cache--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-cache</artifactId></dependency>第二步:启用缓存在启动......
  • GlobalProtect配合privacyIDEA做邮箱二步验证
    一、privacyIDEA安装先安装好ubuntu22.04.2LTS #下载签名密钥wgethttps://lancelot.netknights.it/NetKnights-Release.asc#确认指纹gpg--import--import-optionsshow-only--with-fingerprintNetKnights-Release.asc#添加签名密钥mvNetKnights-Re......
  • pycharm无法找到anaconda的环境【通过.conda/environments.txt配置解决】
    Windows10系统,Pycharm2022.3.2(ProfessionalEdition)Useexistingenvironment候选列表没有目标环境候选项,例如:找不到torchgpu环境,则在C盘->用户名->.conda/environments.txt追加D:\anaconda3\envs\torchgpu即可。 ......
  • 如何降低Vue.js项目中Webpack打包文件的大小?
    结论结论:vue中,直接引用文件,可以让打包文件最小。试验记录下面测试项目中引入一个Button组件的代价。基准工程大小:[raywill:shop]npmrunbuild>shop@build/Users/raywill/code/vue/shop>cross-envNODE_ENV=productionwebpack--progress--hide-modulesHash:d902d9dc5e......
  • 项目中使用nacos config 不停的刷config日志
     网上大部分意见是说客户端与服务端的md5不一致导致的我这边是关闭调了nacosconfig的动态刷新,这样会影响config的实时更新。https://blog.csdn.net/virtual_users/article/details/129405590上面链接的方法(删除namespace)试过了对我没用https://blog.csdn.net/qq_35425070......
  • Jackson2ObjectMapperBuilderCustomizer
    //序列化时的命名策略——驼峰命名法builder.propertyNamingStrategy(PropertyNamingStrategy.LOWER_CAMEL_CASE);配置作用  ......
  • oracle 12c cursor mutex X/S
    一、问题描述接到业务反馈,一套4节点12.2.0.1版本rac第三节点无法连接,长时间连接不上后提示超时。经检查数据库处于open状态,监听正常。二、处理2.1数据库检查检查等待事件,存在大量cursor:mutexX、cursor:mutexS。查看这些等待事件对应sql语句为selectSYS_CONTEXT('USEREN......
  • stack、vector的使用和特点
    Stack的方法stack是继承VectorclassStackextendsVector特点:栈模式----遍历时元素是先进后出具体代码实现:publicstaticvoidmain(String[]args){ Stack<String>stack=newStack<>(); //将元素添加到栈顶 stack.push("aaa"); stack.push("bbb"); stack......
  • Oracle最高可用性架构(MAA)|黄金级(GOLD)
    1、什么是MAA参考之前的文章:1、Oracle最高可用性架构(MAA)|青铜级(BRONZE)https://www.cnblogs.com/mingfan/p/16804556.html2、Oracle最高可用性架构(MAA)|白银级(SILVER) https://www.cnblogs.com/mingfan/p/17464913.html2、黄金级(GOLD)MAA我们都知道,单点是系统高可用的......