Updated October 2026: I re-tested TACACS+ command authorization, built in my home lab on IOL 17.18.2 with Alpine tac_plus-ng, including a dead-server EXEC lockout when only login had local fallback. Details are in the new section before Key Takeaways.
The moment more than one person can log into your routers, you have an access-control problem. Who is allowed in? What are they allowed to do once they are in? And can you prove, after the fact, who typed the command that took the network down? Answering those three questions is what AAA does, and the choice between TACACS+ and RADIUS decides how well it answers them.
This article configures real AAA on Cisco IOS XE, authenticates a live login against a RADIUS server, and shows the actual protocol exchange on the wire. It is the opening piece of the Infrastructure Security cluster guide.
The Three A's
The distinction between the first two matters enormously for the protocol choice, because TACACS+ runs them as separate exchanges, while RADIUS returns its authorization attributes in the same Access-Accept that authenticates the user.
TACACS+ vs RADIUS: The Real Differences
They are often presented as interchangeable. They are not. They were designed for different jobs.
The one-line rule almost everyone uses: TACACS+ for administering the devices, RADIUS for admitting the users. When an engineer SSHes into a switch, that is device administration and TACACS+ is the natural fit, because you want per-command authorization and an obfuscated packet body. When a laptop authenticates onto the wired port, that is network access and RADIUS owns it, because RADIUS carries the 802.1X attributes that assign a VLAN.
The command-authorization point is the decisive one for device administration. With TACACS+ you can permit a junior operator to run show commands and clear counters but nothing that changes config, and every command they attempt is checked against the server in real time. RADIUS returns its authorization once, in the Access-Accept (a privilege level and any other attributes the server sends), and in classic IOS device administration it is not consulted again for each command.
The Golden Rule: Always Have a Local Fallback
Before a single line of AAA config, internalise this, because it is the difference between a good day and being locked out of your entire network: the login, EXEC authorization and command authorization lists you depend on for recovery all end in local, and those named lists are bound to the lines that use them.
An AAA method list is an ordered list of methods, and authentication, EXEC authorization and command authorization each have their own list. The router tries each list in order. If the only method is the AAA server and that server becomes unreachable, remote logins fail. In my re-test, a local login that authenticated still died at % Authorization failed. because the EXEC list had no local; only a console login with its own local lists got back in. A named list does nothing until a line references it, so check the line vty and line con 0 bindings too.
aaa authentication login VTY-AUTH group RAD-GROUP localThat trailing local means "if the server does not answer, fall back to the local username database" for that method list. It does not cover an authoritative reject. Authentication fallback alone is not enough for device admin: if aaa authorization exec and the command authorization lists point only at the TACACS+ group, a dead server can still strand you at % Authorization failed. after a successful local login. Put local on the EXEC and command lists too, and bind each named list to the lines with login authentication, authorization exec and authorization commands. The re-test below shows the gap.
Configuring RADIUS (Live)
The original lab pointed R1 at a FreeRADIUS server on a Linux host. The 192.168.99.x addresses below are example values from that original lab, and the October 2026 re-test did not rebuild RADIUS. Turn on AAA, define the server, group it, and build the method lists:
R1(config)# aaa new-model
R1(config)# radius server PINGLABZ-RAD
R1(config-radius-server)# address ipv4 192.168.99.100 auth-port 1812 acct-port 1813
R1(config-radius-server)# key <radius-key>
!
R1(config)# aaa group server radius RAD-GROUP
R1(config-sg-radius)# server name PINGLABZ-RAD
!
R1(config)# aaa authentication login VTY-AUTH group RAD-GROUP local
R1(config)# aaa authorization exec VTY-AUTH group RAD-GROUP local
!
R1(config)# line vty 0 4
R1(config-line)# login authentication VTY-AUTH
R1(config-line)# authorization exec VTY-AUTHThe shared secret (key) must match on both the router and the server, and it is what encrypts the RADIUS password field. On the FreeRADIUS side, the router is registered as a client with the same secret, and a test user exists with a Cisco privilege attribute:
# clients.conf
client pinglabz-r1 {
ipaddr = 192.168.99.1
secret = <radius-key>
}
# users
netadmin Cleartext-Password := "<password>"
Cisco-AVPair = "shell:priv-lvl=15"The shell:priv-lvl=15 AV-pair is how RADIUS pushes this authorization result: it drops the authenticated user straight to privilege level 15. RADIUS authorization can carry much more than a privilege level (VLANs, ACLs and other attributes), but it arrives once with the Access-Accept. Checking each command as it is typed is what TACACS+ command authorization adds.
Proof it works
The router can test the server group directly. Correct password, then wrong:
R1#test aaa group RAD-GROUP netadmin <password> legacy
Attempting authentication test to server-group RAD-GROUP using radius
User was successfully authenticated.
R1#test aaa group RAD-GROUP netadmin WrongPassword legacy
Attempting authentication test to server-group RAD-GROUP using radius
User authentication request was rejected by server.Accepted and rejected, correctly, against a live server. And the server relationship is healthy:
R1#show aaa servers | include RADIUS|State|Authen:
RADIUS: id 1, priority 1, host 192.168.99.100, auth-port 1812, acct-port 1813, hostname PINGLABZ-RAD
State: current UP, duration 93s, previous duration 0s
Authen: request 6, timeouts 4, failover 0, retransmission 3The exchange on the wire
This is what actually happens when the router authenticates, captured with debug radius authentication:
RADIUS(00000000): Send Access-Request to 192.168.99.100:1812 id 1645/4, len 60
RADIUS: NAS-IP-Address [4] 6 192.168.99.1
RADIUS: User-Name [1] 10 "netadmin"
RADIUS: User-Password [2] 18 *
RADIUS(00000000): Started 5 sec timeout
RADIUS: Received from id 1645/4 192.168.99.100:1812, Access-Accept, len 63Read the security lesson in that output. User-Name is "netadmin", in the clear. NAS-IP-Address is in the clear. Only User-Password is hidden (the *). Anyone sniffing this exchange learns the username and everything else; only the password is protected. This is the RADIUS design, and it is precisely why device administration prefers TACACS+, which obfuscates the whole packet body (its 12-byte header still travels in the clear, and this is not TLS).
One more thing worth noting: modern IOS XE (17.x) now nags about this. The moment you configure a RADIUS or TACACS+ server without TLS, it emits a security warning pointing you toward RadSec (RADIUS over TLS), which encrypts the whole exchange. On a management network you control this is usually acceptable; across untrusted transport it is not.
Configuring TACACS+ and Command Authorization
The device-administration setup. The server address 10.0.13.2 here is an example value from the original lab (the October re-test used 10.56.1.2). Note the extra method list that RADIUS could not provide, command authorization:
R1(config)# tacacs server PINGLABZ-TAC
R1(config-server-tacacs)# address ipv4 10.0.13.2
R1(config-server-tacacs)# key <tacacs-key>
!
R1(config)# aaa group server tacacs+ TAC-GROUP
R1(config-sg-tacacs+)# server name PINGLABZ-TAC
!
R1(config)# aaa authentication login CON-AUTH group TAC-GROUP local
R1(config)# aaa authorization commands 15 CMD-AUTHZ group TAC-GROUP localThat last line is the whole reason TACACS+ exists for device administration. aaa authorization commands 15 means every privilege-15 command a user types is sent to the TACACS+ server, which returns permit or deny before the command runs. The server holds a policy like "user bob may run show and configure but not reload," enforced command by command. RADIUS has no per-command equivalent. On its own, this block is not complete: add `aaa authorization exec` with `group TAC-GROUP local`, and bind the named lists under `line vty` with `login authentication`, `authorization exec` and `authorization commands 15`, or they do nothing. Then check the server state, but do not treat it as a health check:
R1#show tacacs
Tacacs+ Server - public :
Server name: PINGLABZ-TAC
Server address: 10.0.13.2
Server port: 49
Server Status: AliveServer Status: Alive is not proof the server is up. In the October re-test, show tacacs on R1 still said Alive after I had stopped the daemon and the router could not get an answer from it (output below).
The Local Fallback, In Action
Here is why the golden rule matters, demonstrated on the October re-test. I stopped the TACACS+ daemon, then tested the group from R1:
R1#test aaa group TAC-GROUP ploperator <operator-password> legacy
Attempting authentication test to server-group TAC-GROUP using tacacs+
No authoritative response from any server.
R1#show tacacs
Tacacs+ Server - public :
Server name: PINGLABZ-TAC
Server address: 10.56.1.2
Server port: 49
Socket opens: 61
Socket closes: 61
Socket aborts: 0
Socket errors: 0
Socket Timeouts: 0
Failed Connect Attempts: 9
Total Packets Sent: 30
Total Packets Recv: 30
Server Status: AliveThe group fails. With aaa authentication login ... group TAC-GROUP local, local authentication can still succeed when the server does not answer, but that only covers authentication. Without local on the EXEC and command authorization lists, SSH can authenticate and then die at % Authorization failed. Access is not kept until authorization also falls back.
This is not a hypothetical. AAA servers go down, or get isolated by the very outage you are trying to fix. The local keyword only helps when the server does not answer. If the server answers with an authoritative reject (a disabled account, a policy change), the router does not try local. I did not test what a mismatched shared secret does on this image, so do not count on it to fall back. A method list of group TAC-GROUP with no fallback is a loaded gun pointed at your own access.
Configure a local account with a strong secret on every device, exactly for this. It is the account you will use at 3am when the AAA infrastructure is the thing that broke.
Accounting: The Third A
Authentication and authorization control access. Accounting records it, and it is the part people skip until an auditor asks who ran a command.
R1(config)# aaa accounting commands 15 default start-stop group TAC-GROUP
R1(config)# aaa accounting exec default start-stop group TAC-GROUPWith this, every privilege-15 command and every login/logout is logged to the server with a username, timestamp, and source. That is your audit trail. TACACS+ command accounting is genuinely valuable here because it captures the exact command string; RADIUS accounting is coarser, oriented toward session start/stop and byte counts rather than individual commands.
FAQ
Can I run TACACS+ and RADIUS at the same time?
Yes, and it is common: TACACS+ for device admin logins, RADIUS for 802.1X network access, both pointing at the same identity store (often Cisco ISE, which speaks both). They serve different method lists.
Which is more secure?
TACACS+ for device administration, because it obfuscates the whole packet body, so the username is not sent in the clear (the 12-byte header is, and this is not TLS). For network access the question is moot; RADIUS is what carries the 802.1X attributes.
What happens if I forget the local fallback and the server dies?
You can be locked out of remote EXEC even with a local user in the database — that is what we reproduced when only R1's authorization lists lost local and the daemon was stopped. Fresh console (with local console authorization) is the recovery path; restore group ... local on EXEC and commands before you need it.
Why does IOS XE warn about TLS now?
Because plain RADIUS and TACACS+ shared-secret encryption is dated. RadSec (RADIUS/TLS) and TACACS+ over TLS encrypt the transport. On a trusted management network the warning is informational; over untrusted links, act on it.
Is the shared secret the same as the user password?
No. The shared secret authenticates the router to the server and encrypts fields. The user password authenticates the person. Two completely separate credentials.
Re-tested in my home lab (October 2026)
Built in my home lab: I rebuilt device-admin AAA on two Cisco IOL 17.18.2 routers against Alpine tac_plus-ng (not classic tac_plus). R1 was the fault router; R2 kept local authorization fallback as the control. Data links were 10.56.1.0/30 and 10.56.2.0/30 to the server.

Working command authorization
The operator logged in over SSH through TACACS+ at privilege 15:
R1#show privilege
Current privilege level is 15Then configure terminal went straight back to the exec prompt without entering config mode, because the server denied it:
R1#configure terminal
R1#show tacacsThe tac_plus-ng log shows the permit and the deny:
2026-10-21 18:48:10 +0000 10.56.1.1 ploperator tty2 <mgmt> readonly permit shell show ip interface brief <cr>
2026-10-21 18:48:10 +0000 10.56.1.1 ploperator tty2 <mgmt> readonly deny shell configure terminal <cr>Break it: TACACS dead without EXEC local fallback
After removing only R1's local terms from EXEC/command authorization and stopping the daemon, valid local SSH authentication still failed at authorization:
% Authorization failed.
Connection to <mgmt> closed by remote host.A fresh console login with the local account landed in user EXEC, and enable got back to privilege 15 so the lists could be repaired:
Username: breakglass
Password:
R1>enable
R1#Fix: local on EXEC and commands
With group TAC-GROUP local restored on the EXEC and command lists (and the console lines bound to local lists), a fresh SSH session as the local breakglass user reached privilege 15 and config mode while TACACS+ stayed down:
R1#show privilege
Current privilege level is 15
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#endA fresh console login as the same local user also went straight to privileged EXEC:
Username: breakglass
Password:
R1#On that console, show privilege returned Current privilege level is 15 and configure terminal entered config mode, with the daemon still stopped.
Other measured nuances: named method lists need line bindings; an authoritative TACACS+ reject does not fall through to local the way a non-answer does; show tacacs still said Alive after the daemon was stopped; RADIUS, TLS and 802.1X paths in the original article were not re-tested in this run.
Key Takeaways
- AAA is three questions: who are you (authentication), what may you do (authorization), what did you do (accounting).
- TACACS+ for administering devices, RADIUS for admitting users. TACACS+ obfuscates the packet body (the header stays clear) and does per-command authorization; RADIUS carries 802.1X attributes.
- The live RADIUS debug shows the username and everything but the password in the clear. That exposure is why device admin prefers TACACS+.
- Every method list you rely on for recovery ends in
local: login, EXEC and commands, and each named list is bound to its lines. The lab proved the gap: with TACACS+ dead and authorization lackinglocal, a local login still failed at EXEC; restoringlocalon EXEC and commands got fresh SSH and console sessions to privilege 15 while the daemon stayed stopped. - RADIUS authorization arrives once, in the Access-Accept (for device admin, typically
shell:priv-lvl=15, though it can carry much more). TACACS+ authorization is command by command. - Turn on accounting, or you cannot prove who did what.
- IOS XE 17.x nudges you toward RadSec/TLS. Heed it on untrusted transport.
Next: hardening the management plane, or the Infrastructure Security cluster guide.