AAA配置详述


 

【路由器上的配置】 
1、 enable AAA: 
Router(config)#aaa new-model

 

2、Configuring TACACS+ and RADIUS clients: 
对TACACS+: 
Router(config)#tacacs-server host ip-address 
Router(config)#tacacs-server key word 


对RADIUS: 
Router(config)#radius-server host ip-address 
Router(config)#radius-server key word

 

3、Configuring AAA authentication: 
Router(config)#aaa authentication type {default|list-name} method1 […[method4]] 
type分为:login、enable、ppp、local-override、arap、nasi、password-prompt和username-prompt,其中常用的为前面四个。 
login:为想进入到EXEC命令行模式的用户认证。 
enable:决定用户是否可以访问特权级命令级。 
ppp:在运行PPP的串行口上指定认证。 
local-override:用于某些特殊用户(如系统管理员)快速登录,先使用本地数据库,如果失败再使用后面的认证方式。 


List type分两种,一种是default,一种是命名list。用来指代后面的认证方式列表method1 […[method4]] 
不同的type对应不同的Method,后面的认证方式只有当前面的认证方式返回了一个出错信息时使用(最多四种Method),而不是在前面的认证失败时使用。一般分为以下几种: 

4、Configuring AAA authorization: 
Router(config)#aaa authorization type {default|list-name} method1 […[method2]] 
type分为: 

Method分为: 

List type与authentication一样分两种:default和命名list

5、Configuring AAA accounting: 
Router(config)#aaa accounting type {default|list-name} Record-type method1 […[method2]] 
type分为: 

Record-type分为: 

Method分为:group tacacs+和group radius 
List type与authentication一样,分为:default和命名list

【配置示例】
(RADIUS的authentication配置与下相似,可选做,但其不能实行authorization) 
Building configuration... 
Current configuration : 4102 bytes 
! 
version 12.2 
aaa new-model 
! 
! 
aaa authentication login TELNET group tacacs+ local enable none  (只是个名称)
aaa authorization exec TELNET group tacacs+ local 
aaa accounting exec TELNET start-stop group tacacs+ 
aaa accounting commands 15 TELNET start-stop group tacacs+ 
aaa accounting network TELNET start-stop group tacacs+ 
aaa accounting connection TELNET start-stop group tacacs+ 
aaa accounting system default start-stop group tacacs+ 
aaa session-id common   3A认证会话数采用的普通id编号unique则依据不同审计类型采用唯一的会话数编号
enable password 7 070C285F4D060D00161F 
! 
tacacs-server host 10.2.0.1 
tacacs-server key ciscoteam 
privilege configure level 7 snmp-server host 
privilege configure level 7 snmp-server enable 
privilege configure level 7 snmp-server 
privilege exec level 7 ping 
privilege exec level 7 configure terminal 
privilege exec level 7 configure 
! 
line con 0 
exec-timeout 0 0 
logging synchronous 
line aux 0 
line vty 0 4 
insecure 
authorization exec TELNET 
accounting connection TELNET 
accounting commands 15 TELNET 
accounting exec TELNET 
logging synchronous 
login authentication TELNET 
transport input telnet 
! 
no scheduler allocate 
end

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Mr. Sun_

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值