Pcornel
Networking · Security › AAA

Local AAA

Cheat sheet · https://pcornel.dk/topic.php?topic=754

Back to the Topic

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 users
show 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

PropertyLocal AAA implication
DependencyNo remote AAA transport required
LifecyclePer-device account management
Common roleBreak-glass / fallback
RiskDrift 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

Confirmation

Confirm action

Continue?