[r1]路由下
int g0/0/0
ip add 10.0.10.20 24
[r2]路由下
int g0/0/0
ip add 10.0.0.100 24
[r1]路由下
telnet server enable
aaa //进入aaa视图下
local-user 123 password cipher 123 //创建用户,并设置密码123
local-user 123 privilege level 15 //设置用户等级
local-user 123 service-type telnet //为123这个用户开启telnet服务
quit
user-interface vty 0 4
authentication-mode aaa //配置VTY,身份认证方式为AAA认证,允许用户以telnet的方式接入
quit
成功登录!!!