
1-68
Function:
Configure local login username and password along with its privilege level.
Parameter:
<
username
>
is the username, its range should not exceed 32 characters.
<
privilege
>
is the maximum privilege
level of the commands that the user is able to execute, its value is limited between 1 and 15, and 1 by default.
<
password
>
is the password for the user. If input option 0 on password setting, the password is not encrypted; if
input option 7, the password is encrypted (Use 32 bits password encrypted by MD5).
Command Mode:
Global Mode.
Usage Guide:
There are two available choices for the preferences of the registered commands in the switch. They are 1 and 15.
Preference of 1 is for the commands of the normal user configuration mode. Preference of 15 is for the commands
registered in modes other than the normal user configuration modes. 16 local users at most can be configured
through this command, and the maximum length of the password should be no less than 32.
Notice:
The user can log in user and priority after the command configures, before issuing the command
authentication line console login local, it should be made sure that at one user has be configured as preference level
of 15, in order to login the switch and make configuration changes in privileged mode and global mode. If there are
no configured local users with preference level of 15, while only Local authentication is configured for the Console
login method, the switch can be login without any authentication. When using the HTTP method to login the switch,
only users with preference level of 15 can login the switch, users with preference level other than 15 will be denied.
Example:
Configure an administrator account named admin, with the preference level as 15. And configure two normal
accounts with its preference level as 1. Then enable local authentication method.
Above all the configurations, only the admin user is able to login the switch in privileged mode through Telnet or
Console login method, user1 and user2 can only login the switch in normal user mode through the telnet and console
login method. For HTTP login method, only the admin user can pass the authentication configuration, user1 and
user2 will be denied.
Switch(config)#username admin privilege 15 password 0 admin
Switch(config)# username user1 privilege 1 password 7
4a7d1ed414474e4033ac29ccb8653d9b (The password is 32 bits password encrypted by MD5)
Switch(config)# username user2 password 0 user2
Switch(config)# authentication line console login local