侧边栏壁纸
博主头像
梦荟楼

干啥啥不行,干饭第一名

  • 累计撰写 24 篇文章
  • 累计创建 59 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

华为交换机路由器重置密码

梦荟楼
2022-03-28 / 0 评论 / 1 点赞 / 366 阅读 / 1,608 字 / 正在检测是否收录...
温馨提示:
本文最后更新于 2022-05-02,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。

重置 console 密码

重启路由器,在路由器出现以下提示信息时按Ctrl+B,进入BootROM菜单。

BIOS Creation Date : Nov 10 2011, 14:41:12                                      
DDR DRAM init : OK                                                              
Start Memory Test ? ('t' or 'T' is test):skip                                   
Copying Data : Done                                                             
Uncompressing : Done                                                            
USB2 Host Stack Initialized.                                                    
USB Hub Driver Initialized                                                      
USBD  Wind River Systems, Inc. 562 Initialized                                  
Octeon Host Controller Initialize......Done.                                    
                                                                                
                                                                                
Press Ctrl+B to break auto startup ... 3     

BootROM菜单初始化密码为[email protected]

进入BootROM菜单后,选择第7项,进入Password Manager菜单。

       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-6):7 

选择第2项,清除Console登录密码。然后选择0返回

        PassWord Menu                                                           
                                                                                
    1. Modify the menu password                                                 
    2. Clear the console login password                                         
    0. Return                                                                   
                                                                                
Enter your choice(0-1):2
Clear the console login password Succeed!

        PassWord Menu                                                           
                                                                                
    1. Modify the menu password                                                 
    2. Clear the console login password                                         
    0. Return                                                                   
                                                                                
Enter your choice(0-1):0

选择第1项,继续启动,即可登录设备。

        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-6):1

修改密码

如忘记密码建议新建一个用户,因为再生产环境中很难保证原用户没有绑定什么服务
一下为新建(修改)AAA认证的用户,用户名为admin123,密码为[email protected]

<Huawei> system-view
[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 [email protected]
[Huawei-aaa] local-user admin123 privilege level 15
[Huawei-aaa] local-user admin123 service-type terminal
[Huawei-aaa] return
<Huawei> save

修改web密码

以用户名为admin123,新密码为[email protected],用户级别为15为例

<Huawei> system-view
[Huawei] aaa
[Huawei-aaa] local-user admin123 password irreversible-cipher [email protected]
[Huawei-aaa] local-user admin123 service-type http
[Huawei-aaa] local-user admin123 privilege level 15
[Huawei-aaa] return
<Huawei> save
1

评论区