AAA (Authentication, Authorization and Accounting)
Cheat sheet · https://pcornel.dk/topic.php?topic=750
Answer
AAA (Authentication, Authorization, Accounting) controls who can log in, what they may do, and records what they did. On Cisco IOS it is enabled with aaa new-model and configured as method lists that point to local users, RADIUS or TACACS+.
Remember
A method list is tried in order, but the next method is used only if the previous one is unavailable (no answer) — not if it rejects the user. Always include local as the last method and keep a local admin account. Test with a second session open before closing the first.
First checks
show running-config | section aaa— method lists for login, exec and commands.show aaa servers— RADIUS/TACACS+ servers, state and request counters.show aaa sessions— active AAA sessions.test aaa group <group> <user> <password> new-code— test authentication against a server.debug aaa authentication— step-by-step decision (briefly).
Commands
show aaa servers- Local state
Verify in this order
aaa new-model → method list defined → applied to lines → login request sent to the first method → server answers accept/reject → fallback only if unavailable → authorization and accounting recorded
Where it usually breaks
local configuration → reachability/transport → request/negotiation → server or policy decision → response/state installation → client-visible result
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=750