AAA for network devices: TACACS+, RADIUS, command authorisation and accounting on Cisco IOS
In short: AAA moves device logins from local passwords on every box to a central server. TACACS+ suits administrator access, with per-command authorisation and full accounting, while RADIUS suits network access such as 802.1X and VPN. A good design uses individual accounts, a local fallback account for emergencies, and logs every command entered.
Why centralise
With local accounts, every switch has its own copy of every admin's password. When someone leaves, you must change dozens of devices, and you cannot tell who made which change. AAA, authentication (who are you?), authorisation (what may you do?) and accounting (what did you do?), solves this with a central server such as Cisco ISE, Aruba ClearPass, FreeRADIUS or a TACACS+ server linked to Active Directory.
Basic TACACS+ configuration
aaa new-model
!
tacacs server ISE-1
address ipv4 10.10.5.70
key Example-Shared-Key-1
tacacs server ISE-2
address ipv4 10.10.5.71
key Example-Shared-Key-1
aaa group server tacacs+ ADMIN-AAA
server name ISE-1
server name ISE-2
ip tacacs source-interface Vlan99
!
aaa authentication login default group ADMIN-AAA local
aaa authorization exec default group ADMIN-AAA local if-authenticated
aaa accounting exec default start-stop group ADMIN-AAA
aaa accounting commands 15 default start-stop group ADMIN-AAA
!
username breakglass privilege 15 algorithm-type scrypt secret Example-Only
line vty 0 15
transport input ssh
group ADMIN-AAA localmeans "try the TACACS+ servers; if none answer, use the local account". The local break-glass account is only used when the servers are unreachable, so keep its password in a safe and change it after each use.- Exec authorisation lets the server set the user's privilege level (for example 15 for engineers, 1 for help desk read-only).
- Accounting records logins and every privileged command, with the username and time.
Command authorisation
TACACS+ can check each command before it runs:
aaa authorization commands 15 default group ADMIN-AAA local if-authenticated
aaa authorization config-commands
On the server you might allow the help desk group show commands and shutdown / no shutdown on access ports, while engineers can do everything. This is where TACACS+ is clearly stronger than RADIUS.
Avoiding lockouts
- Configure AAA with a second session open, and test a new login before closing the first.
- Always include
localas a fallback, and make sure the local account exists before enabling AAA. - Check the source interface: the AAA server must recognise the device's address and shared key.
- Keep the console line with a fallback too, for out-of-band recovery.
- Test what happens when both servers are down.
Checking it
show aaa servers shows each server's state and request counts. test aaa group ADMIN-AAA username password legacy tests a login. On the server, live logs show each authentication and command.
Real-world example: who changed the VLAN?
A company's guest Wi-Fi VLAN was accidentally added to a trunk carrying the finance network, and nobody admitted to it. All engineers used the same local "admin" account, so there was no way to tell. After moving to TACACS+ with individual accounts and command accounting, the next such mistake was traced in seconds, and the engineer learned from it without a blame hunt.
Practice
Which protocol, TACACS+ or RADIUS, encrypts the whole payload and supports per-command authorisation?
What does aaa authentication login default group ADMIN-AAA local do if the servers are unreachable?
What does command accounting record?
Key takeaways
- AAA centralises authentication, authorisation and accounting for devices.
- TACACS+ suits admin access; RADIUS suits network access like 802.1X.
- Keep a local break-glass account as fallback and test before closing sessions.
- Command authorisation and accounting give control and an audit trail.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.