CISCO 配置radius

 

conf  t
aaa  new-model
aaa  authentication  login  rad_auth  radius
aaa  authentication  login  no_radius  none
enable  secret  cisco              (cisco为网络设备原有口令)
radius-server  host  10.65.192.x0    (10.65.192.x为radius认证服务器ip)
radius-server  timeout  30          (30为超时时间,单位为秒)
radius-server  key  teczm          (共享密钥为teczm)
line con 0                        (此段表示通过con口管理时不进行radius认证)
login  authen  no_radius
transport  input  none
exit

line  v  0  4                    (以下配置telnet)
login  authe  rad_auth
exit

exit

配置完成,可使用show run 查看配置文件


配置完成后,可实现cisco设备远程telnet登录radius认证。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在 Cisco 设备上进行 RADIUS 配置,需要完成以下步骤: 1. 配置 RADIUS 服务器信息: ``` aaa group server radius radius-group server-private x.x.x.x auth-port 1812 acct-port 1813 key radius-secret ``` 2. 配置需要进行 RADIUS 认证的接口: ``` interface GigabitEthernet0/0 authentication port-control auto authentication periodic authentication violation restrict authentication event fail action next-method authentication event server dead action authorize vlan 10 authentication event server alive action reauthenticate authentication host-mode multi-auth authentication order mab dot1x authentication priority mab dot1x authentication port-control auto mab ``` 上述命令中,`interface GigabitEthernet0/0` 是需要进行 RADIUS 认证的接口,`authentication host-mode multi-auth` 表示启用多重认证模式,`authentication priority mab dot1x` 表示先使用 MAB 认证方法,如果 MAB 认证失败再使用 dot1x 认证方法。 3. 配置 RADIUS 认证服务器: ``` radius-server host x.x.x.x auth-port 1812 acct-port 1813 key radius-secret ``` 4. 配置 VLAN: ``` vlan 10 name radius-auth-vlan ``` 上述命令中,`vlan 10` 是需要进行 RADIUS 认证的 VLAN。 5. 配置 AAA 认证: ``` aaa new-model aaa authentication login default group radius-group local aaa authorization exec default group radius-group local aaa authorization network default group radius-group local aaa accounting dot1x default start-stop group radius-group ``` 上述命令中,`aaa authentication login default group radius-group local` 表示使用 RADIUS 服务器进行登录认证,如果 RADIUS 认证失败则使用本地认证,`aaa authorization exec default group radius-group local` 表示使用 RADIUS 服务器进行特权级认证,如果 RADIUS 认证失败则使用本地认证,`aaa authorization network default group radius-group local` 表示使用 RADIUS 服务器进行网络授权,如果 RADIUS 认证失败则使用本地授权,`aaa accounting dot1x default start-stop group radius-group` 表示使用 RADIUS 服务器进行账户登录和注销的计费。 以上是 Cisco RADIUS 配置的基本步骤,具体配置根据实际需求进行调整。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值