一、配置路由器登录方式
1、配置路由器管理IP
<Huawei> system-view[Huawei] interface gigabitethernet 0/0/0[Huawei-GigabitEthernet0/0/0] ip address 192.168.1.1 24[Huawei-GigabitEthernet0/0/0] quit
2、启用http
[Huawei] http secure-server enable
3、配置Web用户和用户级别
以用户名admin ,密码123为例
[Huawei] aaa[Huawei-aaa] local-user admin password cipher 123[Huawei-aaa] local-user admin privilege level 15[Huawei-aaa] local-user admin service-type http[Huawei-aaa] return<Huawei> save
二、配置Telnet登录
华为Telnet登录验证方式:
AAA方式:使用用户名+密码方式登录。
Password方式:使用用户名+密码方式登录。
(一)AAA方式:
<Huawei> system-view[Huawei] user-interface vty 0[Huawei-ui-vty0] protocol inbound telnet[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[Huawei-aaa] return<Huawei> save
(二)Password方式
<Huawei> system-view[Huawei] user-interface vty 0 4[Huawei-ui-vty0-4] authentication-mode password[Huawei-ui-vty0-4] set authentication password cipher YsHsjx_202207[Huawei-ui-vty0-4] return
参考:
路由器启用web登录:https://support.huawei.com/enterprise/zh/doc/EDOC1000079624/3fec391b
路由器启用Telnet登录:https://support.huawei.com/enterprise/zh/doc/DOC1000079675/2404efd8