基于思科模拟器的AAA配置与验证
拓撲圖:
?
地址表如圖所示
三個路由器之間采用ospf協議達到互通
先做ping通測試
由ApingB
?
?由ApingC
?
?配置AAA認證
在R1上
R1(config)#username shuaiqiyang password wzs
R1(config)#aaa new-model
R1(config)#aaa authentication login default local
R1(config)#line console 0
R1(config-line)#login authentication default
R1上為VTY接入配置本地AAA認證
R1(config)#aaa authentication login TELNET-LOGIN local? //用本地AAA配置一個叫TELNET-LOGIN的命名列表來驗證登入
?
R1(config)#line vty 0 4
?
R1(config-line)#login authentication TELNET-LOGIN
驗證:
1驗證用戶EXEC登入使用本地數據庫
?
?2驗證Telnet配置。讓PC-Aping通R1
在R2用TACACS+配置
R2(config)#username shuaiqiyang2 password wzs
R2(config)#tacacs-server host 192.168.2.2
R2(config)#tacacs-server key asdfgh123
R2(config)#aaa new-model
R2(config)#aaa authentication login default group tacacs+ local
R2(config)#line console 0? ? ?//console 登入配置AAA認證進而可以用默認的AAA認證手段。
R2(config-line)#login authentication default
驗證:用AAA TACACS+服務器驗證用戶EXEC的登入
在R3用RADIUS配置基于服務器的AAA認證
?
R3(config)#username shuaiqiyang3 password wzs
R3(config)#radius-server host 192.168.3.2
R3(config)#radius-server key asdfgh123
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
?
?驗證:用AAA TAACACS+服務器驗證用戶EXEC的登入
?
轉載于:https://www.cnblogs.com/457489yrz/p/10551731.html
總結
以上是生活随笔為你收集整理的基于思科模拟器的AAA配置与验证的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SpringMVC-Helloworld
- 下一篇: 弹力