Cisco IOS supports 16 privilege levels that can be assigned to individual user accounts, enabling granular access control on routers and switches. Levels 2 through 14 are fully customizable, allowing specific commands to be mapped to each level to enforce least privilege.
Cisco Privilege Levels
One thing that you can do is you can set a privilege level for different user accounts. So let's take a look at setting privilege levels on our equipment.
The first thing we'll take a look at is the privilege level that we're at right now. Here I am in just the user exec mode, so in the user exec mode I'm going to type in show privilege to see what level I'm at, and I am at a level one right now. So you can equate the user exec mode with level one.
If I get into the privileged exec mode, so I'm going to type in the password here to get into the privileged exec mode, and in this privileged exec mode, if now I type in show privilege, you can see that I am at 15. So there's the difference between the basic user exec mode and privileged exec mode.
There's a total of 16 different levels. There's 0 through 15, one being the user exec mode and 15 being the privileged exec mode, and then 2 through 14 is assignable. So what you can do is you can create different levels within there, so that way you can practice that least privilege and only give people certain rights into certain sections of the router or switch.
So the next question is, how do we use this? In here I'm going to get into the global config mode, and then we're going to configure a user on the local database. So let's start out with username and then whoever that we're adding to this. Maybe we're adding Susan to this, so we'll add the username of Susan. And privilege: what level do we want to give her? This could be one, this could be 15. In fact, I'll use the question mark and you can see that there's the privilege levels there. So I'm going to assign 15 to Susan. And then the password that we're going to give Susan, so password and then whatever password that we're going to set up for her. So there it is. Then we'll hit enter, and now we set up a user account for Susan.
If we wanted to give some custom privileges to Susan, what we could do is we could change that from 15 to one of our custom levels. So maybe we're going to do two, because that's the next one. So we set up two right there, but now we need to tell this device what a privilege level of two actually means, because right now it doesn't really know what commands are associated with a privilege level of two.
So what we'll do is a privilege exec level, and then we're going to specify it for level two, and then the commands that we want to associate with this. So maybe we want Susan to be able to take a look at the running config, so we'll do a show running-config and then hit enter, and now that command is associated with Susan or anybody else that's assigned to a level two.
Now we can assign certain levels to certain roles. For instance, let's say we had a tiered system with our support. Then we give tier one certain executable commands that they can work with when they're on this device, and then the tier 2 could have an escalated level of privilege so that way they can do more on this.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →