Privilege Command on CISCO Router/Switch

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 15 is used to set the vty privilege to enable mode upon login.

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 level set to 15.

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.

R3#telnet 10.2.2.2
Trying 10.2.2.2 … Open
R2#

Related Articles

Leave a Reply

avatar