Local AAA
Cheat sheet · https://pcornel.dk/topic.php?topic=754
Answer
Local AAA authenticates users against accounts stored on the device itself (username <name> privilege <level> secret <password>), with aaa authentication login default local.
Remember
Use secret (hashed, type 8/9 when supported), not password. Without aaa new-model, login local under the line does the same job. Privilege 15 gives full access at login.
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- Inspect AAA server state/statistics.
username <user> secret <password>- Create a local user with a hashed secret (used for SSH logins).
aaa new-model- Enable the AAA model; required before AAA method lists take effect. Keep console access while testing.
aaa authentication login default local- Authenticate logins against the local username database.
aaa authorization exec default local- Authorize EXEC shells (privilege level) from the local user database.
show usersshow privilege
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
wrong service/list → rejected local identity → authorization mismatch → missing audit → untested recovery
Local AAA · technical reference
| Property | Local AAA implication |
|---|---|
| Dependency | No remote AAA transport required |
| Lifecycle | Per-device account management |
| Common role | Break-glass / fallback |
| Risk | Drift and reduced central audit if overused |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=754