π§© Topology
- Cisco Router / Switch β RADIUS Server (Windows NPS / FreeRADIUS / ISE)
- Management subnet:
192.168.10.0/24 - RADIUS Server IP:
192.168.10.50 - Shared secret:
Radius@123
1οΈβ£ Basic Device & SSH Setup (Mandatory)
hostname R1
ip domain-name lab.local
crypto key generate rsa modulus 2048
ip ssh version 2
ip ssh time-out 60
ip ssh authentication-retries 3
2οΈβ£ Create Local Fallback User (IMPORTANT)
Used when RADIUS server is unreachable.
username localadmin privilege 15 secret L0cal@123
3οΈβ£ Enable AAA
aaa new-model
4οΈβ£ Configure RADIUS Server
πΉ IOS / IOS-XE (Classic Method)
radius server RAD1
address ipv4 192.168.10.50 auth-port 1812 acct-port 1813
key Radius@123
(Older IOS alternative)
radius-server host 192.168.10.50 key Radius@123
5οΈβ£ Create AAA Method Lists (Best Practice)
aaa authentication login SSH_AUTH group radius local
aaa authorization exec SSH_AUTH group radius local
aaa accounting exec default start-stop group radius
Explanation:
- Authenticate via RADIUS
- Fallback to local
- Authorize privilege level
- Log sessions
6οΈβ£ Apply AAA to VTY Lines (SSH Only)
line vty 0 4
transport input ssh
login authentication SSH_AUTH
authorization exec SSH_AUTH
exec-timeout 10 0
β SSH only
β No Telnet
β Timeout protection
7οΈβ£ Restrict SSH Access with ACL (Highly Recommended)
ip access-list standard MGMT-ACL
permit 192.168.10.0 0.0.0.255
deny any log
line vty 0 4
access-class MGMT-ACL in
8οΈβ£ Privilege Level from RADIUS (Critical for Admin Access)
On RADIUS Server
Return attribute:
Cisco-AVPair = shell:priv-lvl=15
β Gives full admin access
β Without this, user gets privilege 1
9οΈβ£ Verification & Troubleshooting
π Check AAA & RADIUS
show aaa servers
show radius statistics
show run | section aaa
π Check SSH
show ip ssh
show users
π§ͺ Debug (Use Carefully)
debug aaa authentication
debug radius authentication
Disable after testing:
undebug all
π Authentication Flow (Important Concept)
SSH Login
β
AAA Method List
β
RADIUS Server
β
Privilege from RADIUS
β
Fallback to Local (if RADIUS fails)
β οΈ Common Mistakes
β Forgot local fallback user
β RADIUS secret mismatch
β No privilege attribute β user stuck at level 1
β Telnet still enabled
β ACL blocking RADIUS traffic
π§ CCNA / CCNP / Interview Tips
- Why AAA > local authentication
- Difference between Authentication vs Authorization
- Why fallback local user is mandatory
- SSH + RADIUS vs TACACS+
- What happens if RADIUS server is down?
β Minimal Working Config (Quick Paste)
aaa new-model
username localadmin privilege 15 secret L0cal@123
radius server RAD1
address ipv4 192.168.10.50 auth-port 1812 acct-port 1813
key Radius@123
aaa authentication login SSH_AUTH group radius local
aaa authorization exec SSH_AUTH group radius local
ip domain-name lab.local
crypto key generate rsa modulus 2048
ip ssh version 2
line vty 0 4
transport input ssh
login authentication SSH_AUTH
authorization exec SSH_AUTH




