交换机密码找不到?无法登陆?学会这招不愁密码记不住!

交换机telnet及console口密码都找不到,不妨试试下边方法,只需准备一条串口线轻松帮您解决。

设备的BootROM提供了清除Console口密码的功能,可以在用户使用Console口登录的时候跳过密码检查。这样系统启动后除了不需要输入Console密码外,与正常启动相同,也会完成所有配置加载。设备启动后重新配置验证方式和Console口密码,然后保存配置。

注意:

· 要进入到BootROM菜单需要重启设备,会导致业务中断,请视具体情况做好设备备份,并尽量选择业务量较少的时间操作。

· 清除Console口密码登录后请马上配置新的密码。

· 在此操作过程中不要对设备进行下电。

· 如果交换机是双主控环境,需要在重启交换机之前将备主控板拔下,重启后再将备主控板插上

在bootrom下清除console口密码操作步骤:

1、用串口线连接设备,然后重启。当出现“Press Ctrl+B to enter Boot Menu :”打印信息时,按下“Ctrl+B”并键入密码(缺省为“[email protected]”,V100R006及之前版本可能为“9300”),进入BootROM主菜单。

2、清除console口登录密码。

MAIN MENU

1. Boot with default mode

2. Boot from Flash

3. Boot from CFCard

4. Enter serial submenu

5. Enter ethernet submenu

6. Enter file system submenu

7. Enter test submenu

8. Modify BootROM password //V200R006及之前版本:Modify BootROM password,V200R007及之后版本:Enter password submenu

9. Modify Flash description area

10. Clear password for console user

11. Reboot

Enter your choice(1-11): 10

Note: Clear password for console user? Yes or No(Y/N): y

Clear password for console user successfully.

Note: Choose "1. Boot with default mode" to boot, then set a new password

3、根据设备的提示,在bootroom主菜单下选择‘1’启动设备。

4、完成系统启动后,通过console口登录时不需要认证,登陆后配置console口密码,以修改为密码认证,并修改密码为‘huawei@123’为例。

 system-view
[HUAWEI] user-interface console 0

[HUAWEI-ui-console0] authentication-mode password
[HUAWEI-ui-console0] set authentication password cipher huawei@123
[HUAWEI-ui-console0] return

5、为了防止重启后配置丢失,保存配置。

 save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 4.
Save the configuration successfully.


分享到:


相關文章: