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

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 ssh

R1 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
TransportTCP 49UDP 1812/1813 (old: 1645/1646)
EncryptsThe whole payloadOnly the password
AAA functionsSeparate (command authorization possible)Authentication and authorization combined
Typical useDevice administrationNetwork access (802.1X, VPN)
IOS configtacacs server NAMEradius server NAME + address ipv4 X auth-port 1812 acct-port 1813

Troubleshooting order

  1. Can the router reach the server from the source interface the server expects? (ping 10.0.50.5 source Gi0/2)
  2. Does the key match? TACACS+ shows a decryption error; RADIUS shows no reply or a bad authenticator.
  3. Is the router a client on the server, with the right source address?
  4. Is the right list applied to the right line? show run | section line.
  5. Run test aaa group TAC netadmin Backup#1 legacy to test without logging in.
  6. debug aaa authentication and debug tacacs show 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=PASS

Commands

show aaa serversEach server's state, requests, timeouts and failures.
show tacacs / show radius statisticsPer-server counters.
test aaa group <group> <user> <password> legacyTest the server without logging in.
debug aaa authenticationWhich list and method are used, and the result.
show aaa method-lists allEvery list and its methods.

Exam traps

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> under line vty.

Labs

Try it live: AAA troubleshooting: TACACS+, RADIUS and the local fallback

More topics in 3.0 Infrastructure Security