5.1 Configure and verify device access control

ENCOR 350-401 v1.2 · 5.0 Security

Device access control decides who reaches a router's CLI and what they can do. ENCOR covers it at two levels: lines and local users (console, VTY, privilege levels) and AAA with a RADIUS or TACACS+ server for authentication and authorization, with a local fallback.

What you must know

Lines and local user authentication

username admin privilege 15 secret Adm1n!Pass
username noc privilege 5 secret N0c!Pass
privilege exec level 5 show running-config
privilege exec level 5 clear counters
!
line con 0
 login local
 exec-timeout 10 0
line vty 0 15
 login local
 transport input ssh
 access-class MGMT in

Privilege levels run from 0 to 15: level 1 is user EXEC, 15 is full privileged EXEC. Commands can be moved to an intermediate level with privilege, so a user at level 5 gets exactly those extra commands.

AAA authentication and authorization

aaa new-model
tacacs server ISE1
 address ipv4 10.0.50.15
 key T4c4cs!Key
aaa group server tacacs+ ADMINS
 server name ISE1
!
aaa authentication login VTY group ADMINS local
aaa authentication login default local
aaa authorization exec VTY group ADMINS local
aaa authorization commands 15 VTY group ADMINS local
aaa accounting exec default start-stop group ADMINS
!
line vty 0 15
 login authentication VTY
 authorization exec VTY
 authorization commands 15 VTY

Admins on SSH are authenticated and authorized by the server (1); the console stays local so a broken AAA path never locks everyone out. Named method lists are applied on the lines; the default list applies wherever no named list is.

Commands

show aaa serversTACACS+/RADIUS servers, state and counters.
show privilegeYour current privilege level.
test aaa group tacacs+ admin <pw> legacyTests a login against the server.
debug aaa authenticationWhich method answered each login.

Exam traps

Check yourself

A NOC user must see the running config but not change it. How?
Create the user at an intermediate level (say 5) and move show running-config to that level with privilege exec level 5 show running-config.
After aaa new-model, the console asks for a username nobody has. Why?
AAA's default login method uses the local database; create a local user before enabling AAA.
What applies a named method list to the VTY lines?
login authentication <name> (and authorization exec <name>) under line vty.

Labs

Try it live: Protect the device: AAA with TACACS+ and Control Plane Policing

More topics in 5.0 Security