Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

AAA (Authentication, Authorization and Accounting)

Direct 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+.

When to use this

Use it to give administrators individual accounts from a central server, with a local fallback.

First 30 seconds

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.

Operational verification

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

Evidence · next step

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.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · IOS/IOS XE
Scope / prerequisiteUse it to give administrators individual accounts from a central server, with a local fallback.
What next?3 suggested next steps
Child topics (this level)7
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

command output · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points

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.

Key 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).
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)
TransportTCP 49UDP 1812 (1645 historically)
FunctionsAuthentication, authorisation, accounting separateAuthentication and authorisation combined
Command authorisationPer commandNot designed for it
Body protectionWhole body obfuscated (MD5-based, not real encryption)Only the password attribute hidden
Typical useDevice administrationNetwork 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
Technical changelog & impact

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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

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.

Aliases that resolve here
AAARADIUSTACACS plus
Embedded reference data

Quick lookup tables

AAA / RADIUS / TACACS+ evidence chain

Configuration, operational state, counters and downstream proof remain separate.

BoundaryQuestionEvidenceDoes not prove
DefinitionWhat is configured or intended?running configuration / controller policylive operation
Local stateIs the feature active at the expected scope?show aaa serversremote success
CountersDid controlled traffic or an event reach this stage?scoped counters/timestampscomplete return path
Next boundaryWhat consumes or transports this state?management session → method list → server group → authentication → authorization → accounting → tested fallbackapplication success
Confirmation

Confirm action

Continue?