Command
Privilege
Use
Sets the privilege level you run at upon logging in through vty port.
Syntax
Router(config-line)#privilege level <0-15>
Example
In this example, privilege level 15is used to set the vty privilege to enable mode upon login.
Copy
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#line vty 0 4
R2(config-line)#privilege level 15
The running config for the vty port is shown with privilege levelset to 15.
Copy
R2(config-line)#do show run | sec vty
line vty 0 4
privilege level 15
no login
transport input telnet ssh
A telnet session is initiated from R3 to R2. Notice that the session starts in enable mode.
Copy
R3#telnet 10.2.2.2
Trying 10.2.2.2 … Open
R2#