Guide
AAA with RADIUS and TACACS+ (CCNA and CCNP)
AAA provides a framework for identifying users, deciding what they may access, and recording their activity. This guide connects device administration AAA with RADIUS based network access control.
2 parts · video · 21 practice questions
AAA, RADIUS and TACACS+
AAA means authentication, authorization and accounting. Authentication verifies identity, authorization decides which services, resources or commands an authenticated identity may use, and accounting records session or command activity for audit or billing. A method list is an ordered list of databases or server groups that IOS tries for a particular AAA task.
- TACACS+ port
- TCP port 49
- RADIUS authentication
- UDP port 1812
- RADIUS accounting
- UDP port 1813
- Older RADIUS ports
- 1645 and 1646
TACACS+ is commonly used to administer routers and switches. It uses TCP port 49. Cisco describes TCP as a connection-oriented transport, while UDP offers best-effort delivery. TACACS+ separates authentication, authorization and accounting into distinct functions, and can ask the server to approve or deny individual CLI commands. With command authorization enabled, the device checks a command with the server before executing it. TACACS+ encrypts the packet body, while its header remains visible.
RADIUS is commonly used for network access such as wired or wireless 802.1X. It uses UDP, normally port 1812 for authentication and 1813 for accounting; older deployments may use 1645 and 1646. RADIUS combines authentication and authorization in its access exchange. In classic RADIUS over UDP, the User-Password attribute in an Access-Request is concealed using the shared secret, but the packet header and other attributes are not thereby encrypted. EAP methods and protected RADIUS transports have separate security properties, so this statement is limited to classic RADIUS behavior.
A shared secret is configured on both the network device and its AAA server to protect and validate their protocol exchanges. Keep the secret identical at both ends. TACACS+ is a good fit for per-command device administration; RADIUS is the usual choice when a switch or wireless controller relays 802.1X authentication to a server such as Cisco ISE.
For a login method list such as aaa authentication login default group tacacs+ local, IOS tries the TACACS+ group first and consults the local username database only if the remote method is unavailable, such as when the servers do not respond. If a server explicitly rejects the credentials, IOS stops and rejects the login instead of trying the next method. The same left-to-right availability rule explains group radius local. A local fallback can preserve access during an outage, but it is a security-policy choice and requires a usable local account.
In 802.1X, the supplicant is the client endpoint requesting access, the authenticator is the access switch or wireless controller controlling the port or connection, and the authentication server validates the client and returns the decision, commonly over RADIUS. The authenticator relays the exchange between the endpoint and server; it is not itself the supplicant or the authentication server.
aaa new-model
aaa authentication login default group tacacs+ local
aaa authentication login default group radius local
aaa authorization commands 15 default group tacacs+ENCOR depth: 802.1X, ISE and secure administration
MAC Authentication Bypass (MAB) is an access method for endpoints without an 802.1X supplicant, such as printers, cameras and some phones. If 802.1X times out waiting for an EAPOL response, the switch can use the endpoint's observed MAC address as its identity and send a RADIUS Access-Request with a username and password based on that address. The exact username and password formats can be configured. ISE can then apply policy to that identity; MAB does not automatically grant unrestricted access. The MAC address is an identifier, not a strong secret, so authorization policy still matters.
- DHCP option 55
- Parameter Request List
- CWA redirect result
- redirect ACL and guest portal URL
- EAP chaining
- machine identity and user identity
- SSH VTY transport
- transport input ssh
Profiling determines an endpoint type from information gathered from protocol packets. Catalyst policy classification can use DHCP or HTTP data, MAC addresses and OUIs. Catalyst Device Sensor collects endpoint data such as CDP, LLDP and DHCP, and can send profiling data to ISE in RADIUS accounting messages when session accounting is enabled. DHCP option 55 is the Parameter Request List. Profiling is device classification, not authentication, posture assessment or TACACS+ authorization.
In Central Web Authentication (CWA), the switch obtains an authorization result from ISE through RADIUS. ISE can return an Access-Accept with a redirect ACL and guest portal URL. The switch restricts the port according to its configured redirect ACLs and intercepts the client's HTTP request to redirect the browser to the ISE guest portal. After authentication, ISE can redirect the client to the originally requested URL. The switch does not need to rewrite the client's DNS settings.
EAP-TLS is certificate based and uses mutual TLS authentication: the authentication server presents its server certificate, and the supplicant presents a client certificate. A working deployment therefore needs suitable PKI certificates and trusted certificate chains on both ISE and the client. PEAP and EAP-FAST are different EAP methods and should not be confused with EAP-TLS. TEAP creates a protected TLS tunnel in which inner authentication methods can run. EAP chaining lets ISE evaluate both machine identity and user identity within one EAP session. Cisco documents TEAP for this purpose and also describes EAP-FAST chaining with a supported supplicant. EAP chaining is not the same thing as RADIUS Change of Authorization.
For remote device administration, SSH protects the management session and Telnet does not encrypt it. On a Catalyst IOS XE device, configure a hostname and IP domain name before generating RSA keys. The crypto key generate rsa command creates the key pair and enables the SSH server. Under the VTY lines, transport input ssh permits SSH and prevents Telnet connections on those lines. Configure all VTY lines that accept remote sessions, along with the intended AAA login method.
When troubleshooting AAA login fallback, check server reachability and whether the server timed out or returned an explicit denial: only an unavailable method leads to the next method in the list. For 802.1X or MAB, check the endpoint role and capability, switch port authentication state, RADIUS server reachability and shared secret, then inspect the ISE authentication result and authorization attributes. For CWA, confirm the RADIUS result includes the expected redirect URL and ACL and that the client is making an HTTP request. For EAP-TLS, verify server and client certificates, trust chains, validity and client supplicant settings. For SSH, verify RSA keys, hostname and domain, AAA credentials, and the VTY transport input setting.
aaa authentication dot1x default group radius
interface GigabitEthernet1/0/10
authentication port-control auto
mab
hostname Switch1
ip domain name example.net
crypto key generate rsa
line vty 0 15
transport input sshReferences (8)
- Configuring IEEE 802.1x Port-Based Authentication, Catalyst 9300 IOS XE 16.8
- Device Sensor, Catalyst 9300 IOS XE 17.18
- Policy Classification Engine, Catalyst 9300 IOS XE 17.15
- Web Authentication Redirection to Original URL, Catalyst 9300 IOS XE 17.8
- Configure EAP-TLS Authentication with ISE, Cisco Support
- Configure EAP Chaining with TEAP, Cisco Support
- Configuring Secure Shell, Catalyst 9300 IOS XE 26.x
- Configuring DHCP Relay in BGP EVPN VXLAN Fabric, Catalyst 9300 IOS XE 17.1
Check your understanding
AAA with RADIUS and TACACS+ (CCNA and CCNP)
All 2 sections · no timer
Unlimited retries
Questions from every section are combined into one assessment. Answer them all correctly to complete the article.
Your completion saves in this browser. Sign in to sync it to your account.