Does privilege level work in Packet Tracer’s Switch-PT

packet-tracerswitch

On Switch-PT in Packet Tracer, I'm trying to set a user with username b and secret b, with privilege level 5:

username b privilege 5 secret b
line console 0
login local

But when I do show running-config, the output for the username shows:

username b secret 5 $1$mERr$k9GHGlBNgfi56AfbMB8eT1

show run does not show that the user is assigned to a privilege level.

But when I login with username b and password b, I go straight into Privileged EXEC mode, and when I do show privilege, I get:

Current privilege level is 5

What's confusing is that show running-config does not show that the user is assigned to a privilege level whereas when I login with the username and password, it shows that I'm in privilege level 5.

But then I can still issue configure terminal, which I'm not sure why, because shouldn't users with privilege level less than 15 not be able to go into global configuration mode?

I tried running the same commands on a Router-PT, and my show running-config output is:

username b privilege 5 secret 5 $1$mERr$k9GHGlBNgfi56AfbMB8eT1

When I login with the username and password, I also go into Privileged EXEC mode, and show privilege still says:

Current privilege level is 5

, but I can not go into global config mode with configure terminal

It seems like configuring a privilege level for a user works fine on the router, but I'm confused on why isn't it working like the same on the switch.

Best Answer

First- as many others PT is not IOS and many functions are either limited or do not work.

Second: Cisco defines two privilege levels by default (1 and 15) any non-default privilege level can be defined with privileges set.

You may be able to view the configuration by using the command “show run all” but I doubt the command works.

For more reading please check out https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960l/software/15-2_5_e/config-guide/b_1525e_consolidated_2960l_cg/b_1525e_consolidated_2960l_cg_chapter_0100001.pdf