在思科模拟器上配置AAA认证


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接入本地数据库

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM