01-16-2024 11:06 PM
Hello Team,
I have these configs,
aaa authentication login default group "aaa_server" local
aaa authentication enable default group "aaa_server" enable
aaa authorization exec default group "aaa_server" if-authenticated
aaa accounting exec default start-stop group "aaa_server"
aaa accounting commands 1 default start-stop group "aaa_server"
aaa accounting commands 15 default start-stop group "aaa_server".
Once i shutdown aaa_server to simulate it being unreachable, am not able to login to device using local database.
Kindly assist.
01-17-2024 12:26 AM
what device model and IOS code running on the devices ?
Make sure you have local user created with privlevel 15.
Make sure you also setup a TACACS timeout to less like 3-5 seonds - default is 60 ( i am sure you have waited long and tried ?)
what is the logs you see on the devices ?
I have this config works all over my Lab devices - using ACS
aaa new-model
!
tacacs server SERVER1
address ipv4 10.10.10.100
key 0 xxxxxxxxxxxxxxxxx
tacacs server SERVER2
address ipv4 20.20.20.200
key 0 XXXXXXXXXXX
aaa group server tacacs+ SERVER_GROUP
server name SERVER1
server name SERVER2
aaa authentication login default group SERVER_GROUP local
aaa authentication enable default group SERVER_GROUP enable
aaa authorization config-commands
aaa authorization exec default group SERVER_GROUP local if-authenticated
aaa authorization commands 1 default group SERVER_GROUP if-authenticated
aaa authorization commands 15 default group SERVER_GROUP local if-authenticated
aaa accounting exec default start-stop group SERVER_GROUP
aaa accounting commands 1 default start-stop group SERVER_GROUP
aaa accounting commands 15 default start-stop group SERVER_GROUP
=====️ Preenayamo Vasudevam ️=====
***** Rate All Helpful Responses *****
01-17-2024 12:45 AM
when i compare our configs,below is the only line i dont have,
aaa authorization exec default group SERVER_GROUP local if-authenticated
is this what i should add, for the device to opt to use local db incase aaa server is unreachable ?
01-18-2024 01:16 AM
any update?
01-19-2024 02:58 PM
YES / NO depends on other part of the config you have timeout settings - Local config you have in place - mostly that should work
But i have asked environment "what device model and IOS code running on the devices ?"
=====️ Preenayamo Vasudevam ️=====
***** Rate All Helpful Responses *****
01-17-2024 12:33 AM
Your config is OK
Can i see
Show user
It maybe you dont have available vty line anymore that why the device reject the new user
MHM
01-17-2024 12:42 AM
PFA
01-17-2024 12:49 AM
Access via console
Clear line vty all
Then try again
MHM
01-17-2024 09:51 PM
funny enough console is also dependent on AAA server. if its offline, console does not work.
should i bring AAA online first, then connect via console and issue the commands?
01-17-2024 09:55 PM
No friend dont try that'
Let me check all command again
Thanks for waiting
MHM
01-17-2024 10:01 PM
Can I see config of vty and console
Thanks
MHM
01-17-2024 10:20 PM
01-19-2024 01:17 AM
Hi friend
this lab show the cases we see when we use exec
the issue is exec local and if-auth depend on priv you use with username command and enable password
so to solve your issue
add new
username xx priv 15 password xxx
enable password xxx
and try access via vty when the AAA not reachable
01-19-2024 02:44 AM
should the enable password match , new user password "xxx" ?
01-19-2024 02:48 AM
No friend
I write xxx which meaning you can use anything for password and username' not meaning it must be match.
Thanks
MHM
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