Use it to give administrators individual accounts from a central server, with a local fallback.
AAA (Authentication, Authorization and Accounting)
1. show running-config | section aaa — which method list applies to VTY and console?
2. show aaa servers — server UP, requests answered?
3. test aaa group <group> <user> <password> new-code — accepted?
4. Server reachable from the right source interface? (ip radius source-interface / ip tacacs source-interface)
5. Keep a working session open until a new login succeeds.
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
1. Verify source interface/VRF and server reachability.
2. Verify shared secret, ports and group membership.
3. Verify line/service method list.
4. Test authentication, authorization and accounting separately.
5. Prove fallback safely.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 First 30 seconds Verify boundary
Immediate answer: Separate transport/server reachability, method-list selection, server response and local authorization result.
Verification chain: Client action → method list → server reachability → authentication response → authorization/accounting → service
Stop condition: A reachable AAA server does not show the intended method list or authorization policy was used.
Step 2 Verification & troubleshooting Narrow the fault
1. Verify source interface/VRF and server reachability.
2. Verify shared secret, ports and group membership.
3. Verify line/service method list.
4. Test authentication, authorization and accounting separately.
5. Show fallback safely.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
AAA authentication verifies who a user is, against local users or a TACACS+/RADIUS server, before granting access to a device or the network.
Subtopic AAA AuthorizationAAA authorization decides what an authenticated user may do, for example the privilege level or which commands are allowed, typically per command with TACACS+.
Subtopic AAA AccountingAAA accounting records what users did and when — logins, commands, session times — and sends the records to a TACACS+ or RADIUS server for audit and billing.
Subtopic Local AAALocal AAA authenticates the selected administrative service against the device-local database.
Subtopic TACACS+TACACS+ administrative AAA must be read as separate authentication, authorization and accounting decisions for an exact service/method list.
Subtopic RADIUSRADIUS administrative AAA must be read as separate authentication, authorization and accounting decisions for an exact service/method list.
Subtopic VerificationVerify AAA with show aaa servers (server state and counters), test aaa group <group> <user> <password> legacy, and debug aaa authentication in a lab; always keep a local fallback login.
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.
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).
ReferenceWhy it matters1 section · depth on demand
Overview
AAA is the framework for controlling administrative access: authentication shows who someone is, authorisation decides what they may do, and accounting records what they did. Centralising AAA on a server means accounts are created and removed in one place, every action can be traced to a named person, and privileges can be limited by role instead of sharing a single enable password.
AAA on network devices: Authentication (who are you), Authorization (what may you do), Accounting (what did you do).
aaa new-model
aaa group server tacacs+ ISE
server name ISE1
server name ISE2
aaa authentication login VTY group ISE local
aaa authorization exec VTY group ISE local if-authenticated
aaa authorization commands 15 VTY group ISE local if-authenticated
aaa accounting exec default start-stop group ISE
aaa accounting commands 15 default start-stop group ISE
line vty 0 15
login authentication VTY
authorization exec VTY
authorization commands 15 VTY
TACACS+ (TCP 49, per-command authorization, encrypts the whole payload) suits device administration; RADIUS (UDP 1812/1813) suits network access (802.1X, VPN). Keep a local fallback account for when servers are unreachable.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
AAA: authentication, authorisation and accounting
AAA controls who may log in to network devices, what they may do, and records what they did. RFC 8907 describes TACACS+, the protocol most used for device administration: it separates authentication, authorisation and accounting into three distinct functions, runs over TCP port 49, supports per-command authorisation and privilege levels, and sends start, stop and watchdog accounting records; RFC 2865 describes RADIUS, which combines authentication and authorisation, runs over UDP 1812 and is used mainly for network access (802.1X, VPN).
TACACS+ versus RADIUS
| TACACS+ (RFC 8907) | RADIUS (RFC 2865) | |
|---|---|---|
| Transport | TCP 49 | UDP 1812 (1645 historically) |
| Functions | Authentication, authorisation, accounting separate | Authentication and authorisation combined |
| Command authorisation | Per command | Not designed for it |
| Body protection | Whole body obfuscated (MD5-based, not real encryption) | Only the password attribute hidden |
| Typical use | Device administration | Network access: 802.1X, VPN, Wi-Fi |
Security notes (RFC 8907)
TACACS+ obfuscation provides no real integrity, replay protection or forward secrecy; the RFC recommends running it over a secure transport on a separate network, using long unique shared secrets per client, accepting connections only from defined clients and treating accounting data as potentially modifiable.
R1(config)# aaa new-model
R1(config)# tacacs server ISE-1
R1(config-server-tacacs)# address ipv4 10.20.0.15
R1(config-server-tacacs)# key <long-unique-secret>
R1(config)# aaa group server tacacs+ TACACS-GROUP
R1(config-sg-tacacs+)# server name ISE-1
R1(config-sg-tacacs+)# ip tacacs source-interface Loopback0
R1(config)# aaa authentication login default group TACACS-GROUP local
R1(config)# aaa authorization exec default group TACACS-GROUP local if-authenticated
R1(config)# aaa authorization commands 15 default group TACACS-GROUP local if-authenticated
R1(config)# aaa accounting commands 15 default start-stop group TACACS-GROUP
R1# show tacacs | include Server address|Socket|Total
R1# test aaa group TACACS-GROUP netadmin <password> legacy
Fallback
Always include local as the last method so a local emergency account works when all AAA servers are unreachable, and monitor its use.
Documented example, not captured output.
AAA on Cisco IOS XE
aaa new-model
tacacs server ISE1
address ipv4 10.99.0.10
key <key>
aaa group server tacacs+ TAC
server name ISE1
aaa authentication login default group TAC local
aaa authorization exec default group TAC local if-authenticated
aaa authorization commands 15 default group TAC local if-authenticated
aaa accounting commands 15 default start-stop group TAC
ip tacacs source-interface Loopback0
Documented example, not captured output. Keep a local fallback account and test from a second session before saving.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Security → AAA. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
AAA / RADIUS / TACACS+ evidence chain
Configuration, operational state, counters and downstream proof remain separate.
| Boundary | Question | Evidence | Does not prove |
|---|---|---|---|
| Definition | What is configured or intended? | running configuration / controller policy | live operation |
| Local state | Is the feature active at the expected scope? | show aaa servers | remote success |
| Counters | Did controlled traffic or an event reach this stage? | scoped counters/timestamps | complete return path |
| Next boundary | What consumes or transports this state? | management session → method list → server group → authentication → authorization → accounting → tested fallback | application success |