要求:
1,配置三台路由器的主机名,IP地址
2,配置R1为Password认证,级别=15
3,配置R2为AAA认证,用户名为hcip,级别=1
4,配置R3为AAA认证,用户名为hcip,级别=2
拓扑图:
配置命令:
AR1
sys
sysname R1
int g0/0/0
ip add 1.0.0.2 24
q
user-interface vty 0 4
user privilege level 15
set authentication password cipher hcia
AR2
sys
sysname R2
int g0/0/0
ip add 1.0.0.3 24
q
user-interface vty 0 4
authentication-mode aaa
user privilege level 1
aaa
local-user hcip password chipher passwd
local-user hcip privilege level 1
loacal-user hcip service-type telnet
AR3
sys
sysname R3
int g0/0/0
ip add 1.0.0.4 24
q
user-interface vty 0 4
authentication-mode aaa
user privilege level 2
aaa
local-user hcip password chipher passwd
local-user hcip privilege level 2
local-user hcip service-type telnet
验证:
R3Telnet登录R1
<R3>telnet 1.0.0.2
Press CTRL_] to quit telnet mode
Trying 1.0.0.2 ...
Connected to 1.0.0.2 ...
Login authentication
Password:
<R1>
R1Telnet登录R3
<R1>telnet 1.0.0.4
Press CTRL_] to quit telnet mode
Trying 1.0.0.4 ...
Connected to 1.0.0.4 ...
Login authentication
Username:hcip
Password:
<R3>