17
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter user interface view
user-interface
{
first-num1
[
last-num1
] | {
aux
|
vty
}
first-num2
[
last-num2
] }
—
Configure the authentication mode
for any user that uses the current
user interface to log in to the switch
authentication-mode
{
none
|
password
}
Optional
By default, the authentication
mode for VTY user interfaces is
password
, and no authentication is
needed for AUX login users.
Configure the privilege level of
users logged in through the current
user interface
user privilege level
level
Optional
By default, the user privilege level
for users logged in through the
AUX user interface is 3, and that
for users logged in through the VTY
interfaces is 0.
Examples of configuring a user privilege level under a user interface
# Configure the switch to allow Telnet users to log in without authentication. (Free access brings security
risks. For security, do not allow free access.)
<Sysname> system-view
[Sysname] user-interface vty 0 15
[Sysname-ui-vty0-15] authentication-mode none
Now, Telnet users can log in to the switch without authentication, but can use only the following
commands:
<Sysname> ?
User view commands:
display Display current system information
ping Ping function
quit Exit from current command view
rsh Establish one RSH connection
ssh2 Establish a secure shell client connection
super Set the current user priority level
telnet Establish one TELNET connection
tftp Open TFTP connection
tracert Trace route function
# Set the user privilege level to 1 for Telnet users.
[Sysname-ui-vty0-15] user privilege level 1
Now, Telnet users can access more commands:
<Sysname> ?
User view commands:
debugging Enable system debugging functions
dialer Dialer disconnect
display Display current system information
ping Ping function
quit Exit from current command view