Use it for device administration with per-command authorization and accounting.
TACACS+
1. TCP 49; encrypts the whole payload.
2. Separates authentication, authorization and accounting — best for device admin and command authorization.
3. test aaa group tacacs+ user pass new-code.
service/line binding → method list/group/source → server exchange → authentication result → authorization decision → configured accounting receipt → tested recovery
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
tacacs server <name>Primary Commands
Configuration and operational commands for this Topic.
tacacs server <name>ReferenceDefine a named TACACS+ server.
Use when: Use this command at the AAA / RADIUS / TACACS+ boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Server reachability does not prove credentials, authorization or accounting; login success does not prove command authorization.
Cisco IOS / IOS XE · mixedaddress ipv4 <server>ReferenceSet the IPv4 address of a named TACACS+ server (inside tacacs server configuration).
Use when: Use this command at the AAA / RADIUS / TACACS+ boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Server reachability does not prove credentials, authorization or accounting; login success does not prove command authorization.
Cisco IOS / IOS XE · mixedkey <secret>ReferenceSet the shared key used with a TACACS+ server.
Use when: Use this command at the AAA / RADIUS / TACACS+ boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Server reachability does not prove credentials, authorization or accounting; login success does not prove command authorization.
Cisco IOS / IOS XE · mixedaaa group server tacacs+ <group>ReferenceCreate a named TACACS+ server group for AAA method lists.
Use when: Use this command at the AAA / RADIUS / TACACS+ boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Server reachability does not prove credentials, authorization or accounting; login success does not prove command authorization.
Cisco IOS / IOS XE · mixedserver name <name>ReferenceReference a defined TACACS+ server inside a server group.
Use when: Use this command at the AAA / RADIUS / TACACS+ boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Server reachability does not prove credentials, authorization or accounting; login success does not prove command authorization.
Cisco IOS / IOS XE · mixedaaa authentication login default group <group> localReferenceAuthenticate logins against the AAA server group, falling back to local users only if the servers are unreachable.
Use when: Use this command at the AAA / RADIUS / TACACS+ boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Server reachability does not prove credentials, authorization or accounting; login success does not prove command authorization.
Cisco IOS / IOS XE · mixedaaa authorization exec default group <group> localReferenceAuthorize EXEC shells through the AAA server group, falling back to local authorization.
Use when: Use this command at the AAA / RADIUS / TACACS+ boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Server reachability does not prove credentials, authorization or accounting; login success does not prove command authorization.
Cisco IOS / IOS XE · mixedaaa accounting exec default start-stop group <group>ReferenceSend EXEC session start/stop accounting records to the named AAA server group.
Use when: Use this command at the AAA / RADIUS / TACACS+ boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Server reachability does not prove credentials, authorization or accounting; login success does not prove command authorization.
Cisco IOS / IOS XE · mixedShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
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 TACACS+: safe success, reject and fallback lab Verify boundary
Authored isolated administrative-access lab: one IOS / IOS XE device, one TACACS+ server group, a deliberately scoped test service/list and a prevalidated independent console/recovery path. Keep a known-good session open as additional protection; it does not replace console recovery or show new sessions work.
Test a permitted lab user, an explicit server rejection and a permitted user denied one selected command/EXEC action. Correlate each outcome with the exact method list and server decision. For accounting, verify the configured session start/stop or selected command record arrives at the collector; inspect its actual type rather than assuming all events are enabled.
Separately simulate the whole relevant group being unavailable in this lab. With a reviewed local fallback and valid local recovery account, verify the configured error path using a new test session. An explicit reject must not be mislabeled as this outage case.
Save the exact original authentication, authorization, accounting and line/service bindings. Restore scoped changes through the independent recovery path and test new access plus intended restrictions before closing recovery sessions. Do not weaken production authorization or disconnect all live servers to show fallback. No executed test or new verification is claimed.
Step 2 Verification and output interpretation Verify boundary
Verify server reachability from the configured source context, server-group state and AAA transactions for authentication, authorization and accounting separately. Correlate a test username/device timestamp on the TACACS+ server. If a request times out, distinguish transport/server failure from an explicit reject. A server marked reachable does not show the requested user or command will be authorized, and an authenticated session does not show accounting records were ingested. Verify each AAA layer separately.
Step 3 TACACS+: distinguish rejection, server error and authorization Narrow the fault
Walk these boundaries independently:
1. No matching server request: inspect the selected method list/service binding, source address, VRF, route, filter and server group. Do not assume the displayed group is the one the failing service uses.
2. Server reachable but exchange invalid: inspect shared-secret/client identity and transport/counter evidence securely. Reachability alone does not show a valid AAA response.
3. Explicit authentication rejection: investigate the identity/credential/server policy. In the scoped IOS login method-list model, a negative response does not mean “try local next.” The next method is considered when the preceding method reports an error/unavailability according to its configured semantics, not every rejection.
4. Login succeeds but EXEC or commands fail: inspect the separate authorization list, returned attributes/privilege and command policy. An authentication success is not command authorization evidence.
5. Action succeeds but audit is missing: inspect whether the configured accounting record type was generated, sent and received. Accounting is not interchangeable with authentication or authorization.
Compare device and server observations without logging secrets. A server-test command generates traffic and may affect lockout counters; it is a bounded test, not a passive read.
Step 4 TACACS+ observation and test checklist Narrow the fault
1. Identify the exact administrative service, user and time window; preserve independent console/recovery access.
2. Inspect active method-list and line/service bindings, group membership, source/VRF and TCP/49 for the selected TACACS+ server.
3. Read supported AAA/server state and sanitized logs; separate timeout/error from explicit rejection.
4. In an isolated or explicitly approved bounded test, verify authentication, EXEC/command authorization and configured accounting independently.
5. Test the reviewed outage fallback using a new session without treating rejection as outage. Confirm normal server-based policy again after restoration.
Configuration edits, authentication probes, server isolation and debug are interventions. Define stop conditions, avoid account-lockout surprises and restore exact prior bindings. Do not infer a safe fallback merely from a local keyword.
Inspect actual service/list bindings. Explicit rejection is different from method error/unavailability; local fallback is not tried after every rejection. Authentication success does not prove EXEC/command permission or accounting. Preserve independent recovery access before tests.
1. Identify service/list and retain console recovery.
2. Inspect source/VRF, server group and TCP/49 for the selected TACACS+ server.
3. Correlate device/server state and sanitized response.
4. Separate authentication, authorization and accounting results.
5. Test success/reject/group-unavailable behavior only in a bounded lab or approved scope; restore and verify normal access.
ReferenceWhat it is1 section · depth on demand
What TACACS+ contributes to administrative AAA
ReferenceHow it works1 section · depth on demand
TACACS+: configuration is not an observation
Scope: Cisco IOS / IOS XE administrative login/EXEC AAA for the selected service and method list. Network-access/EAP, ASA and NX-OS behavior require separate scope.
aaa accounting exec default start-stop group <group> is configuration that changes AAA behavior; it is not a read-only diagnostic. Login authentication, EXEC/command authorization and accounting are separately configured decisions. Inspect the relevant running configuration for named/default method lists, server group, source/VRF and actual console/VTY/service binding. Do not paste a default method-list change merely to investigate one session.
Use supported show aaa servers and protocol-specific server statistics on the deployed release, together with sanitized server logs for the same user, service and time. Verify TCP/49 for the selected TACACS+ server; ICMP reachability alone shows neither the AAA exchange nor the applied policy. Never put real passwords or shared secrets in examples or captured output.
Reference: Cisco IOS AAA command reference.
ReferenceImportant terms & boundaries5 sections · depth on demand
Key operational limits
- Authentication, authorization and accounting are separate decisions
- TACACS+ commonly separates AAA functions and encrypts the payload
- RADIUS commonly combines authentication/authorization and is widely used for network access
localfallback is evaluated only according to method-list reachability/failure semantics, not every rejection- Test new method lists on a spare session before closing the known-good session.
In depth
TACACS+: central device administration with per-command control
The Catalyst 9300 TACACS+ guide states that TACACS+ is configured only through AAA commands (after aaa new-model), that authentication, authorization and accounting are separate modular services, and that all exchanges between the switch and the TACACS+ daemon are encrypted. TACACS+ and AAA are disabled by default. show tacacs displays server statistics.
C9300(config)# aaa new-model
C9300(config)# tacacs server ISE-1
C9300(config-server-tacacs)# address ipv4 10.10.50.31
C9300(config-server-tacacs)# key 7 <key>
C9300(config)# tacacs server ISE-2
C9300(config-server-tacacs)# address ipv4 10.10.50.32
C9300(config-server-tacacs)# key 7 <key>
C9300(config)# aaa group server tacacs+ ISE
C9300(config-sg-tacacs+)# server name ISE-1
C9300(config-sg-tacacs+)# server name ISE-2
C9300(config-sg-tacacs+)# ip tacacs source-interface Loopback0
C9300(config)# aaa authentication login default group ISE local
C9300(config)# aaa authorization exec default group ISE local if-authenticated
C9300(config)# aaa accounting commands 15 default start-stop group ISE
C9300# show tacacs
C9300# test aaa group ISE alice <password> new-code
TACACS+ characteristics
| Property | Value |
|---|---|
| Transport | TCP port 49 |
| Encryption | The whole packet body (with the shared key) |
| AAA separation | Authentication, authorization and accounting in separate exchanges |
| Per-command authorization | Supported |
| Typical server | Cisco ISE (Device Administration), other TACACS+ daemons |
Design checklist
| Item | Reason |
|---|---|
| Two servers in the group | Redundancy |
| Fixed source interface | Servers identify devices by source IP |
| Local fallback and a break-glass account | Access during outages |
| Separate console method list | Console access without dependence on the network |
| Command accounting | Audit trail for changes |
Troubleshooting
| Symptom | Check |
|---|---|
| Login falls back to local | show tacacs (socket errors, timeouts), server reachability from the source interface |
| Rejected at the server | Server logs; device registered with the right IP and key |
| Commands denied | Server command set and shell profile |
Newer IOS XE releases also support TACACS+ over TLS 1.3, which replaces the shared-key encryption with TLS.
Documented example, not captured output.
Quick reference
TACACS+ is a Cisco-originated AAA protocol over TCP 49 that encrypts the whole payload and separates authentication, authorisation and accounting. It supports per-command authorisation and accounting, which makes it the preferred protocol for device administration.
tacacs server ISE1
address ipv4 10.0.0.60
key <secret>
aaa group server tacacs+ TACACS
server name ISE1
ip tacacs source-interface Loopback0
Documented example, not captured output.
Cisco ISE (Device Administration) is a common TACACS+ server.
State model and technical mechanics
TACACS+ exchanges AAA requests between the network access device and a TACACS+ server over its transport session, with device/server shared secret protecting protocol content according to the supported implementation. Its architecture is especially suited to administrative access because authentication can be separated from EXEC/command authorization and accounting. The network device is the AAA client/NAS in this relationship; the human administrator does not normally contact the TACACS+ server directly.
Limits and common misconceptions
TACACS+ is centralized AAA, not a general device-encryption mechanism and not evidence of secure management transport; SSH/HTTPS still protect the administrator-to-device session. Shared-secret/protocol protection and network path security are separate considerations. TACACS+ availability can become a management dependency, so fallback and redundancy must be intentional. Keep AAA decision layers and transport health separate when interpreting results. A user can authenticate and then fail authorization; accounting can fail while login and command execution continue; a reachable TACACS+/RADIUS server can reject a request because policy is working as designed.
ReferenceConfiguration & state1 section · depth on demand
Design and configuration model
Define named TACACS+ servers/groups, shared secrets, source interface/VRF and ordered AAA method lists. Use redundant servers and deterministic source addressing so server policy and return routing remain stable. Apply command authorization only after server-side policy is prepared. Protect shared secrets and do not place production keys in reference content. Maintain local recovery and console access so a server/network change cannot permanently lock administrators out.
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 → TACACS+. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc8907.html · confidence 94%Quick lookup tables
TACACS+ · technical reference
Compact network access/security mechanics, policy and evidence boundaries for fast lookup.
| Capability | TACACS+ reference |
|---|---|
| Authentication | Central identity decision |
| Authorization | EXEC / command policy |
| Accounting | Administrative records |
| Management transport | Still use SSH/HTTPS separately |