华为设备(交换机、路由器等)Console 线恢复Telnet登录密码
2024-07-18 20:46:11    6    0    0
maker


恢复Telnet登录密码

如果忘记了Telnet登录密码或者希望修改Telnet登录密码,用户可以通过Console口登录交换机后设置新的Telnet登录密码。

以下涉及的命令行以V200R008C00版本为例。

# 通过Console口登录设备。

  1. 将Console通信电缆的DB9(孔)插头插入PC机的串口(COM)中,再将RJ-45插头端插入设备的Console口中。
  2. 在PC上打开终端仿真软件,新建连接,设置连接的接口,配置通信参数如下:
    • 波特率:9600
    • 数据位:8
    • 停止位:1
    • 奇偶校验位:无
    • 流控:无
  3. 单击“Connect”,根据提示输入或配置登录密码,完成登录。

# 以登录VTY0的验证方式为密码验证,密码为YsHsjx_202206为例,配置如下。

<HUAWEI> system-view
[HUAWEI] user-interface vty 0
[HUAWEI-ui-vty0] protocol inbound telnet   //V200R006及之前版本缺省使用的协议为Telnet协议,可以不配置该项;V200R007及之后版本缺省使用的协议为SSH协议,必须配置。
[HUAWEI-ui-vty0] authentication-mode password
[HUAWEI-ui-vty0] set authentication password cipher YsHsjx_202206
[HUAWEI-ui-vty0] user privilege level 15
[HUAWEI-ui-vty0] return
<HUAWEI> save

# 以登录VTY0的验证方式为AAA授权验证,用户名为admin123,密码为YsHsjx_202206为例,配置如下。

<HUAWEI> system-view
[HUAWEI] user-interface vty 0
[HUAWEI-ui-vty0] protocol inbound telnet   //V200R006及之前版本缺省使用的协议为Telnet协议,可以不配置该项;V200R007及之后版本缺省使用的协议为SSH协议,必须配置。
[HUAWEI-ui-vty0] authentication-mode aaa
[HUAWEI-ui-vty0] quit
[HUAWEI] aaa
[HUAWEI-aaa] local-user admin123 password irreversible-cipher YsHsjx_202206
[HUAWEI-aaa] local-user admin123 service-type telnet
[HUAWEI-aaa] local-user admin123 privilege level 15
Warning: This operation may affect online users, are you sure to change the user privilege level ?[Y/N]y
[HUAWEI-aaa] return
<HUAWEI> save​


https://support.huawei.com/hedex/hdx.do?docid=EDOC1100276051&id=ZH-CN_CONCEPT_0177099907 


Pre: 华为设备 官方文档下载链接

Next: 华为设备(交换机、路由器等)Console线接线方法官网介绍

6
Table of content