简单组网(路由器用户验证配置)
配置TELNET用户认证。
1、网络拓扑
2、接口地址配置
AR1
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 1.1.1.1 255.255.255.0
[Huawei-GigabitEthernet0/0/1]quit
AR2
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 1.1.1.2 255.255.255.0
[Huawei-GigabitEthernet0/0/0]quit
[Huawei]
3、TELNET认证配置(AR1)
虚拟终端配置
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode aaa
[Huawei-ui-vty0-4]quit
AAA用户配置
[Huawei]aaa
[Huawei-aaa]local-user admin password cipher 123456
[Huawei-aaa]local-user admin privilege level 15
[Huawei-aaa]local-user admin service-type telnet
[Huawei-aaa]quit
开启telnet服务
[Huawei]telnet server enable
[Huawei]
用户类型
8021x 802.1x user
bind Bind authentication user
ftp FTP user
http Http user
ppp PPP user
ssh SSH user
sslvpn Sslvpn user
telnet Telnet user
terminal Terminal user
web Web authentication user
x25-pad X25-pad user
4、AR2测试
<Huawei>telnet 1.1.1.1
Press CTRL_] to quit telnet mode
Trying 1.1.1.1 ...
Connected to 1.1.1.1 ...Login authentication
Username:admin
Password:
-----------------------------------------------------------------------------
User last login information:
-----------------------------------------------------------------------------
Access Type: Telnet
IP-Address : 1.1.1.2
Time : 2020-09-03 16:49:13-08:00
-----------------------------------------------------------------------------
<Huawei>
读书和健身总有一个在路上