08-03-2016 08:43 AM - edited 03-08-2019 06:51 AM
I'm having problems when using radius for IOS authentication and falling back to local credentials. When the IOS device comes up, I just get "% Authentication failed" messages, with no login prompt. Then about three or four minutes after boot, I can finally get a login prompt and I can login using local credentials.
My aaa/radius configuration is:
!
aaa authentication login default group radius local
!
radius-server dead-criteria time 2 tries 3
radius-server deadtime 5
!
radius server FOO1
address ipv4 192.168.2.1 auth-port 1812 acct-port 1813
timeout 2
retransmit 3
key XXXXX
What am I missing to get IOS to fail back to local credentials sooner?
Thanks,
GTG
08-03-2016 03:28 PM
no radius-server dead-criteria time 2 tries 3
no radius-server deadtime 5
08-03-2016 11:26 PM
My initial Radius config didn't have those commands. I'd added them hoping they might help resolve the problem :-(
Gordon.
PS - You do know that avatar picture isn't Thomas... ;-)
08-04-2016 12:47 PM
no aaa authentication login default group radius local
no radius-server dead-criteria time 2 tries 3
no radius-server deadtime 5
no radius server FOO1
no aaa new-model
aaa new-model
aaa group server radius RADIUS
server 192.168.2.1 auth-port 1812 acct-port 1813
aaa authentication login RAD_LOC group RADIUS local
line vty 0 15
login authentication RAD_LOC
copy run start
reload
08-05-2016 12:57 AM
I'd just like to clarify the problem: Radius does usually work on the device. The problem is when the device initially boots up and isn't connected to the network (or can't talk to the radius server) It can take 3-4 minutes for the system to failover from radius authentication to local. Both authentication schemes work - it's just taking *way* too long to failover.
e.g. When the device boots, you have to wait through multiple instances of:
switch con0 is now available
Press RETURN to get started.
User Access Verification
% Authentication failed
% Authentication failed
% Authentication failed
Before you get a login prompt where local authentication works. If the device is connected to the network and the radius server is working, then you get a login prompt instantly, and you can login fine.
GTG
08-17-2016 02:12 AM
radius-server retransmit 1
radius-server timeout 3
no radius-server deadtime
08-17-2016 02:13 AM
LukeOxley
Please rate helpful posts and mark correct answers.
11-20-2016 08:49 PM
Hi Gordon,
Not sure if this is an issue - thread is a little old, but your RADIUS timeout may be a little short, depending on your environment. You can try and set "timeout 10" and if successful drop it to a lower value if required.
Cheers,
Chris
08-05-2016 12:58 AM
I've made the changes you suggested, and there's no difference.
GTG
08-04-2016 05:23 PM
Hello
Try decreasing the retries/timeout/dead timings
radius-server retransmit (x)
radius-server timeout (secs)
radius-server deadtime (sec)
res
Paul
08-04-2016 09:10 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide