1、实验拓扑
2、检测用户之间连通性
PC2 ping PC-A
PC-C ping PC-A
3、路由及服务器配置
R1:在路由器R1上配置一个本地用户账号并且利用本地AAA通过console线和VTY连接认证
R1(config)#username admin1 password admin1
R1(config)# aaa new-model
R1(config)#aaa authentication login default local
R1(config)#line console 0
R1(config-line)#login authentication default
------VTY连接认证
R1(config)# aaa authentication login telnet-login local
R1(config)# line vty 0 4
R1(config-line)# login authentication telnet-login
R2:用TACACS+完成服务器上的AAA认证配置
R2(config)#username admin2 password admin2
R2(config)#tacacs-server host 192.168.2.2
R2(config)#tacacs-server key ys
R2(config)#aaa new-model
R2(config)#aaa authentication login default group tacacs+ local
R2(config)#line console 0
R2(config-line)#login authentication default
R3:用RADIUS完成基于服务器的AAA验证的配置
R3(config)#username admin3 password admin3
R3(config)#tacacs-server host 192.168.3.2
R3(config)#tacacs-server key HYS
R3(config)#aaa new-model
R3(config)#aaa authentication login default group radius local
R3(config)#line console 0
R3(config-line)#login authentication default
4、验证AAA服务器配置
A: 用AAA TACACS+服务器验证用户EXEC的登入
用AAA TACACS+服务器验证用户telnet的登入
B:用AAA RADIUS服务器验证用户EXEC的登入
用AAA RADIUS服务器验证用户telnet的登入
C:用户通过EXEC接入本地数据库
用户通过telnet接入本地数据库