忘记Console口密码的解决方法

01方法一
方法一:通过stelnet/telnet登录设备修改console口密码。
使用telnet协议存在安全风险,建议用户使用stelnet v2登录设备。
如果用户可以通过stelnet/telnet登录设备,并且具有3级或更高的权限,则可以通过stelnet/telnet登录到设备后修改console口密码,然后保存配置。
01 使用stelnet/telnet账号登录设备,并确认当前账号有3级或更高的权限使用display users命令查看当前设备所有登录用户。其中带“*”标记的为当前用户的用户界面,对应编号为vty1。
 display users
note:                                                                           
user-intf: the absolute number and the relative number of user interface        
authen: whether the authentication passes                                       
author: command line authorization flag                                         
--------------------------------------------------------------------------------
  user-intf   delay     type   network address   authen    author   username    
--------------------------------------------------------------------------------
  34  vty 0   0053  tel    10.135.18.67      pass      yes      unspecified
*  35  vty 1  0000  tel    10.135.18.91      pass      yes      unspecified
使用display user-interface命令可以显示所有用户的权限,确定vty1对应的等级为15,有权限修改console口密码。
 display user-interface
  idx  type     tx/rx      modem privi actualprivi auth  int       
  0    con 0    9600       -     15    -           p     -    
+ 34   vty 0               -     15    15          p     -   
+ 35   vty 1               -     15    15          p     -   
......
02 修改console口密码,以修改为密码认证为例
 system-view
[~huawei] user-interface console 0
[~huawei-ui-console0] authentication-mode password
[*huawei-ui-console0] set authentication password
please configure the login password (8-16)
enter password:   //输入密码
confirm password:   //再次输入密码进行确认
[*huawei-ui-console0] user privilege level 3
[*huawei-ui-console0] commit
[~huawei-ui-console0] return
03 为了防止重启后配置丢失,选择保存配置
 save
warning: the current configuration will be written to the device. continue? [y/n]:y
now saving the current configuration to the slot 1 
info: save the configuration successfully.
  02 方法二
方法二:通过bios菜单设置新的console口密码
设备的bios提供了清空console口登录密码的功能,用户可以在设备启动后修改console口登录密码,然后保存配置。
(1)进入到bios菜单需要重启设备(可以通过将设备先下电再上电的方式进行重启),会导致业务中断,请视具体情况做好设备备份,并尽量选择业务量较少的时间操作。设备启动过程中不要对设备进行下电操作。
(2)对于ce12800系列交换机,如果设备是双主控,则需要在执行以下操作前将备用主控板拔下,待执行完以下操作后,再插上备用主控板,执行save命令以保证主用主控板和备用主控板配置一致。
(3)根据以下步骤完成设备启动后,仅本次通过console口登录时不需要输入密码,原来的console口登录密码仍然保存在配置文件中。登录后请及时设置新的登录密码,否则下次通过console口登录时还是需要输入原来的密码。
01 通过console口连接设备,并重启设备
当界面出现以下信息时,请3秒内按下快捷键“ctrl+b”并输入bios密码,进入bios主菜单。
press ctrl+b to enter bios menu or ctrl+e to boot dfx:  1
password:   //输入bios密码。
02 根据设备的提示,在bios主菜单下选择“modify console password”,出现以下界面信息,选择y后,设备将会继续启动
caution: a new console password must be set after the restart.
continue now? yes(y) or no(n):y
03 设备完成系统启动后,本次通过console口登录时不需要认证,登录后需要及时修改console口密码,以修改为密码认证为例
 system-view
[~huawei] user-interface console 0
[~huawei-ui-console0] authentication-mode password
[*huawei-ui-console0] set authentication password
please configure the login password (8-16)
enter password:   //输入密码
confirm password:   //再次输入密码进行确认
[*huawei-ui-console0] user privilege level 3
[*huawei-ui-console0] commit
[~huawei-ui-console0] return
04 为了防止重启后配置丢失,选择保存配置
 save
warning: the current configuration will be written to the device. continue? [y/n]:y
now saving the current configuration to the slot 1 
info: save the configuration successfully.
  03 方法三
方法三:通过bootloader菜单修改console口密码
设备的bootloader提供了清空console口登录密码的功能,用户可以在设备启动后修改console口登录密码,然后保存配置。
(1)要进入到bootloader菜单需要重启设备(可以通过将设备先下电再上电的方式进行重启),会导致业务中断,请视具体情况做好设备备份,并尽量选择业务量较少的时间操作。设备启动过程中不要对设备进行下电操作。
(2)对于12800e&16800系列交换机,如果设备是双主控,则需要在执行以下操作前将备用主控板拔下,待执行完以下操作后,再插上备用主控板,执行save命令以保证主用主控板和备用主控板配置一致。
(3)根据以下步骤完成设备启动后,仅本次通过console口登录时不需要输入密码,原来的console口登录密码仍然保存在配置文件中。登录后请及时设置新的登录密码,否则下次通过console口登录时还是需要输入原来的密码。
01 通过console口连接设备,并重启设备
当界面出现以下信息时,请3秒内按下快捷键“ctrl+b”并输入bootloader密码,进入bootloader主菜单。
press ctrl+b to enter boot menu or ctrl+e to boot dfx: 1
password:   //输入bootloader密码。
02 根据设备的提示,在bootloader主菜单下选择第6项,再选择“modify console password”,出现以下界面信息,选择y后,设备将会继续启动
caution: a new console password must be set after the restart.
continue now? yes(y) or no(n):y
03 设备完成系统启动后,本次通过console口登录时不需要认证,登录后需要及时修改console口密码,以修改为密码认证为例
 system-view
[~huawei] user-interface console 0
[~huawei-ui-console0] authentication-mode password
[*huawei-ui-console0] set authentication password
please configure the login password (8-16)
enter password:   //输入密码
confirm password:   //再次输入密码进行确认
[*huawei-ui-console0] user privilege level 3
[*huawei-ui-console0] commit
[~huawei-ui-console0] return
04 为了防止重启后配置丢失,选择保存配置
 save
warning: the current configuration will be written to the device. continue? [y/n]:y
now saving the current configuration to the slot 1 
info: save the configuration successfully。


用于驱动下一代SiC/GaN功率转换器的IC生态系统
现实中的物联网是怎样的
看点:电机振动原因分析
投资400亿欧元加快电动车研发 德车企欲争夺海外市场
关于WEBENCH设计工具性能及应用介绍
忘记Console口密码的解决方法
电源抑制比提高电路图
三极管放大电路的常见分析方法
GaN晶体管与其驱动器的封装集成消除了共源电感
与其畏惧人工智能还不如做到自我约束
为什么国产工业机器人精度不行
电流传感器在伺服驱动器中的应用实例分析
泰克推出基于MSO64示波器一致性测试及分析调试系统
提高公安机关的警务处置能力 建设成为完善现代智慧城市服务体系
谷歌旗下的YouTube放大招 将支持4K 360度视频直播
X-ray检测设备在汽车电子检测维修中的重要性
FLIR推出新款甲烷气体探测热像仪
锂离子电池中SEI的形核生长机制研究
同星智能TSMaster软件项目荣获2023中国汽车供应链优秀创新成果奖
详解Modbus通讯协议的用法