远程登录
设置console
<Huawei>sys
[Huawei]user-interface console 0
[Huawei-ui-console0]set authentication password cipher 123
[Huawei-ui-console0]authentication-mode password
[Huawei-ui-console0]display this (显示当前配置)
[Huawei-ui-console0]q
ctrl + ]
远程登录的方式
- 仅凭密码
- 用户和密码
- 加密

配置路由器的ip地址
配置登录方:
<Huawei>sys
[Huawei]interface Ethernet 0/0/0
[Huawei-Ethernet0/0/0]ip address 10.0.0.1 24
配置被登录方:
system-view
interface Ethernet 0/0/0
ip address 10.0.0.1 24
改名:
sysname R1
仅凭密码登录
被登录方:
user-interface vty 0 4 (创建了5个虚拟接口)
authentication-mode password (设置为密码登录模式)
set authentication password cipher 123 (设置密码为123,测试路由的设置方法)
user privilege level 3 (设置权限等级,数字越大权限越大)
检验
登录方:
ctrl + z (进入用户模式)
telnet 【被登录方ip】
用户名和密码
被登录方:
[R2]aaa (进入三a视图,存储用户名和密码的工具)
[R2-aaa]local-user 123 password cipher 123 (创建一个用户)
[R2-aaa]local-user 123 privilege level 3 (设置用户等级)
[R2-aaa]q
[R2]user-interface vty 0 4
[R2-ui-vty0-4]authentication-mode aaa (调用三a视图)
验证
登录方:
<R1>telnet 10.0.1.2
[R2]sysname 888 (R2名字被改为888)