Cisco – TACACS+ – Cisco Router – Failover to local database not operating as it should

authenticationciscotacacs

I have TACACS+ working and now I am trying to set it up so that it will failover locally if the TACACS+ server is unavailable.

My goal is for it to check the TACACS server first, then failover if it is not contactable.

It is my understanding that the below configuration line would achieve this, with the word "local" coming AFTER the "group tacacs+" command to achieve this:

aaa authentication login vtymethod group tacacs+ local

Test: I disable the TACACS service on the server and try and authenticate with a local user and am told that the user is not in a group (like it was being rejected by TACACS).

I can achieve the end goal as stated above with the following command line instead:

aaa authentication login vtymethod local group tacacs+

So that it checks if the user is firstly available locally first… it was ALWAYS my understanding that putting it last would allow it to failover and would like TACACS to be checked first…

Any tips on where I am going wrong here?

Best Answer

I actually am already doing this with a variety of Cisco switches and routers. Here are the relevant lines of code from the IOS configs.

aaa new-model
aaa authentication login default group tacacs+ local
tacacs-server host **redacted**
tacacs-server directed-request
tacacs-server **redacted**

As you can see, yes you follow "tacacs+" with "local".

As to how long failover takes, when you attempt to authenticate the TACACS source must be unreachable by the router for at least 15 seconds (5 seconds for timeout and 3 attempts to contact the server) before the authentication source will change to local. https://supportforums.cisco.com/discussion/11350726/two-acs-server-failover

Related Topic