3.1 Troubleshoot device access with IOS AAA: TACACS+, RADIUS and local users
ENARSI 300-410 v1.1 · 3.0 Infrastructure Security
AAA decides who may log in to a router (authentication), what they may do (authorization) and records what they did (accounting). Credentials can come from TACACS+, RADIUS or the local user database. Troubleshooting is about the method list order, server reachability, keys, and knowing when IOS falls back to the next method.
What you must know
- Build method lists for login, exec and commands, and apply them to lines.
- Configure TACACS+ and RADIUS servers and server groups.
- Know that only an ERROR (no reply) moves to the next method; a FAIL (wrong password) does not.
- Verify with
test aaa,debug aaa authenticationandshow tacacs/show aaa servers.
Method lists
aaa new-model
username netadmin privilege 15 secret Backup#1
!
tacacs server ISE
address ipv4 10.0.50.5
key T4c4cs!
aaa group server tacacs+ TAC
server name ISE
ip tacacs source-interface GigabitEthernet0/2
!
aaa authentication login VTY group TAC local
aaa authorization exec VTY group TAC local
aaa accounting exec default start-stop group TAC
!
line vty 0 4
login authentication VTY
authorization exec VTY
transport input sshR1 asks ISE first (1). Only when ISE does not answer (timeout, unreachable, wrong key on some versions) does R1 try the next method, the local database (2). A rejected password from ISE is final.
TACACS+ versus RADIUS
| TACACS+ | RADIUS | |
|---|---|---|
| Transport | TCP 49 | UDP 1812/1813 (old: 1645/1646) |
| Encrypts | The whole payload | Only the password |
| AAA functions | Separate (command authorization possible) | Authentication and authorization combined |
| Typical use | Device administration | Network access (802.1X, VPN) |
| IOS config | tacacs server NAME | radius server NAME + address ipv4 X auth-port 1812 acct-port 1813 |
Troubleshooting order
- Can the router reach the server from the source interface the server expects? (
ping 10.0.50.5 source Gi0/2) - Does the key match? TACACS+ shows a decryption error; RADIUS shows no reply or a bad authenticator.
- Is the router a client on the server, with the right source address?
- Is the right list applied to the right line?
show run | section line. - Run
test aaa group TAC netadmin Backup#1 legacyto test without logging in. debug aaa authenticationanddebug tacacsshow each step and the result (PASS, FAIL, ERROR).
R1# debug aaa authentication
AAA/BIND(00000012): Bind i/f
AAA/AUTHEN/LOGIN (00000012): Pick method list 'VTY'
TPLUS: Queuing AAA Authentication request 18 for processing
TPLUS(00000012)/0/NB_WAIT: socket event 2
TPLUS: Communication failure: no response
AAA/AUTHEN/LOGIN (00000012): Method=LOCAL
AAA/AUTHEN(00000012): Status=PASSCommands
show aaa servers | Each server's state, requests, timeouts and failures. |
show tacacs / show radius statistics | Per-server counters. |
test aaa group <group> <user> <password> legacy | Test the server without logging in. |
debug aaa authentication | Which list and method are used, and the result. |
show aaa method-lists all | Every list and its methods. |
Exam traps
- A FAIL from the server never falls back to local; only an ERROR does.
aaa new-modelchanges every line at once.- The server sees the source address of the outgoing interface unless you set
ip tacacs source-interface. - A named list does nothing until it is applied to a line.
localbeforegroupmeans the server is used only for users not in the local database (and only if local errors).
Check yourself
- ISE rejects the password. Does R1 try the local user?
- No. A rejection is a FAIL, which is final.
- Which protocol allows per-command authorization and encrypts the whole body?
- TACACS+.
- You see
Communication failure: no response. Name two causes. - The server is unreachable from the source interface, or the router is not a configured client (wrong source address or key).
- Where is a named authentication list applied for SSH?
login authentication <name>underline vty.
Labs
Try it live: AAA troubleshooting: TACACS+, RADIUS and the local fallback