Defining Per User Privileges
Problem
You want to set different privilege levels to different users.
Solution
To assign a particular privilege level to user, use the following set of commands:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#aaa new-modelRouter1(config)#aaa authentication login default localRouter1(config)#aaa authorization exec default localRouter1(config)#usernameslowellprivilegeRouter1(config)#10 password maceng#1privilege exec levelRouter1(config)#10 show ip routeprivilege exec levelRouter1(config)#1 show ipprivilege exec levelRouter1(config)#1 showendRouter1#
You can also create several global privilege levels, which any user can access with the appropriate password:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#enable secret levelRouter1(config)#10 lvl10passwdprivilege exec levelRouter1(config)#10 show ip routeprivilege exec levelRouter1(config)#1 show ipprivilege exec levelRouter1(config)#1 showendRouter1#
Discussion
Sometimes having two privilege level groups doesn’t give fine enough granularity. For example, you might have three levels of administrators. The user-level staff members are not allowed to see the router’s routing table. The mid-level staff can see the routing table, but they aren’t allowed to make configuration changes. Only the highest-level engineers have access to everything.
You could accomplish this by using ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access