如果忘记了Console口登录密码,用户可以通过以下两种方式来设置新的Console口登录密码:
在能通过telnet登录的情况下重新设置:
1. 通过STelnet/Telnet登录交换机设置新的Console口登录密码
这种方法的前提是:用户拥有STelnet/Telnet账号并且具有管理员的权限。以下涉及的命令行及回显信息以STelnet登录设备修改Console口密码为例。用户通过STelnet账号登录交换机后,请按照如下步骤进行配置。
a. 以登录用户界面的认证方式为密码认证,密码为[email protected]为例,配置如下。
[HUAWEI] user-interface console 0
[HUAWEI-ui-console0] authentication-mode password
[HUAWEI-ui-console0] set authentication password cipher [email protected]
[HUAWEI-ui-console0] return
b. 以登录用户界面的认证方式为AAA认证,用户名为admin123,密码为[email protected]为例,配置如下。
[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 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密码 ([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) 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 :`[email protected]#$%^&*()-_=+|[{}];:‘",<.>/?). 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及之后的版本,默认密码为[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用户界面的认证方式及密码。
参考:
http://support.huawei.com/huaweiconnect/enterprise/thread-337263.html
https://wenku.baidu.com/view/b2d3cf249ec3d5bbfc0a74bd.html
华为智能客服