~/netref / AAA & Access Control
##

AAA & Access Control

Authentication, Authorization, Accounting — enforced by RADIUS or TACACS+, with 802.1X at the edge.

RADIUSTACACS+
TransportUDP 1812/1813TCP 49
EncryptsPassword onlyEntire payload
AAACombines authN + authZSeparates A / A / A
StandardOpen (RFC 2865)Cisco proprietary
Best forNetwork access (802.1X)Device admin (CLI)

// facts

  • AAA = Authentication (who) · Authorization (what) · Accounting (log)
  • 802.1X: supplicant → authenticator (switch) → RADIUS server
  • EAP carries the authentication conversation
  • Port security violation modes: protect / restrict / shutdown
  • Zero Trust: never trust, always verify — per request

// 802.1X roles

Supplicant
client
EAPOL ▶
Authenticator
switch / AP
RADIUS ▶
Auth Server
RADIUS
The port stays in an unauthorized state (only EAPOL allowed) until the server returns Access-Accept.
// EAP methods
EAP-TLSCertificates on both client & server — strongest
PEAPServer cert + inner MSCHAPv2 (password)
EAP-TTLSServer cert + tunneled legacy auth
EAP-FASTCisco PAC-based tunnel
LEAPCisco legacy — weak, avoid
// port-security modes
protectSilently drop unknown-MAC frames
restrictDrop + increment counter / SNMP trap
shutdownErr-disable the port (default)
802.1x / radius · cisco ios
aaa new-model
radius-server host 10.0.0.100 key MyRadiusKey
aaa authentication dot1x default group radius
dot1x system-auth-control
!
interface Gi0/1
 switchport mode access
 dot1x port-control auto
 dot1x host-mode single-host
 dot1x guest-vlan 123
 dot1x auth-fail vlan 456
verify
show dot1x interface Gi0/1
show dot1x statistics
dot1x re-authenticate interface Gi0/1