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
- Configure console and VTY lines, local users with privilege levels,
login localand SSH only. - Create a custom privilege level for a limited command set.
- Configure AAA authentication and authorization with TACACS+ (or RADIUS) and local fallback.
- Explain method lists, default versus named lists, and applying them to lines.
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 inPrivilege 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 VTYAdmins 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 servers | TACACS+/RADIUS servers, state and counters. |
show privilege | Your current privilege level. |
test aaa group tacacs+ admin <pw> legacy | Tests a login against the server. |
debug aaa authentication | Which method answered each login. |
Exam traps
aaa new-modelimmediately applies default login authentication to every line: configure a local user first.- The local fallback is used only if the server does not respond.
- Command authorization needs
authorization commands <level>on the line too. - Privilege 15 is full access; 1 is user EXEC.
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-configto that level withprivilege 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>(andauthorization exec <name>) underline vty.
Labs
Try it live: Protect the device: AAA with TACACS+ and Control Plane Policing