User Account Commands
Use these commands to add, manage, and delete switch users.
The switch provides two default users: admin and guest. The admin user can view and configure the switch settings. The guest user can view the switch settings only.
The first time that you log in as an admin user, no password is required (that is, the password is blank). After you log in for the first time, you are required to specify a new password that you must use each subsequent time that you log in. After you specify the new password, you are logged out and then must log in again, using your new password.
The default guest user cannot log in until the admin user specifies a password for the guest user.
You cannot reset the new password to the default password. For example, if you enter the username admin nopassword command, the password is not reset to the default password.
However, if you enter the clear-config command, the passwords for the default admin user and default guest user are reset to defaults. In such a situation, the admin user must again specify a new password after logging in for the first time. Similarly, the admin user must again specify a password for the default guest user.
aaa authentication login
M4250
M4350
Use this command to set authentication at login. The default and optional list names created with the command are used with the aaa authentication login command. Create a list by entering the aaa authentication login list-name method command, where list-name is any character string used to name this list. The method argument identifies the list of methods that the authentication algorithm tries, in the specified sequence.
The additional methods of authentication are used only if the previous method returns an error, not if there is an authentication failure. To ensure that the authentication succeeds even if all methods return an error, specify none as the final method in the command line.
For example, if none is specified as an authentication method after radius, no authentication is used if the RADIUS server is down.
If you configure local as the first method in the list, the switch tries no other methods.
| Default |
|
| Format | aaa authentication login {default | list-name} method1 [method2...] |
| Mode | Global Config |
| Parameter | Definition |
|---|---|
| default | Uses the listed authentication methods that follow this argument as the default list of methods when a user logs in. |
| list-name | Character string of up to 15 characters used to name the list of authentication methods activated when a user logs in. |
| method1... [method2...] |
At least one from the following:
|
Command example:
(NETGEAR Switch)(config)# aaa authentication login default radius local enable none
no aaa authentication login
This command returns to the default.
| Format | no aaa authentication login {default | list-name} |
| Mode | Global Config |
aaa authentication enable
M4250
M4350
Use this command to set authentication for accessing higher privilege levels. The default enable list is enableList. It is used by console, and contains the method as enable followed by none.
A separate default enable list, enableNetList, is used for Telnet and SSH users instead of enableList. This list is applied by default for Telnet and SSH, and contains enable followed by deny methods. By default, the enable password is not configured. That means that, by default, Telnet and SSH users will not get access to Privileged EXEC mode. On the other hand, with default conditions, a console user always enters the Privileged EXEC mode without entering the enable password.
The default and optional list names created with the aaa authentication enable command are used with the enable authentication command. Create a list by entering the aaa authentication enable list-name method command where list-name is any character string used to name this list. The method argument identifies the list of methods that the authentication algorithm tries in the specified sequence.
The user manager returns ERROR (not PASS or FAIL) for enable and line methods if no password is configured, and moves to the next configured method in the authentication list. The method none reflects that there is no authentication needed.
The user will only be prompted for an enable password if one is required. The following authentication methods do not require passwords:
- none
- deny
- enable (if no enable password is configured)
- line (if no line password is configured)
See the examples below.
- aaa authentication enable default enable none
- aaa authentication enable default line none
- aaa authentication enable default enable radius none
- aaa authentication enable default line tacacs none
Examples 1 and 2 do not prompt for a password, however because examples 3 and 4 contain the radius and tacacs methods, the password prompt is displayed.
If the login methods include only enable, and there is no enable password configured, the switch does not prompt for a user name. In such cases, the switch prompts only for a password. The switch supports configuring methods after the local method in authentication and authorization lists. If the user is not present in the local database, then the next configured method is tried.
The additional methods of authentication are used only if the previous method returns an error, not if it fails. To ensure that the authentication succeeds even if all methods return an error, specify none as the final method in the command line.
Use the command show authorization methods to display information about the authentication methods.
| Default | default |
| Format | aaa authentication enable {default | list-name} method1 [method2...] |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| default | Uses the listed authentication methods that follow this argument as the default list of methods, when using higher privilege levels. |
| list-name | Character string used to name the list of authentication methods activated, when using access higher privilege levels. Range: 1-15 characters. |
| method1 [method2...] |
Specify at least one from the following:
|
Command example:
The following example sets authentication to access higher privilege levels:
(NETGEAR Switch)(config)# aaa authentication enable default enable
no aaa authentication enable
Use this command to return to the default configuration.
| Format | no aaa authentication enable {default | list-name} |
| Mode | Global Config |
aaa authorization
M4250
M4350
Use this command to configure command and exec authorization method lists. This list is identified by default or a user-specified list-name. If tacacs is specified as the authorization method, authorization commands are notified to a TACACS+ server. If none is specified as the authorization method, command authorization is not applicable. A maximum of five authorization method lists can be created for the commands type.
| Format | aaa authorization {exec | commands} {default | list-name} method1 [method2…] |
| Mode | Global Config |
| Term | Definition |
|---|---|
| exec | Provides authorization for user EXEC terminal sessions. |
| commands | Provides authorization for all user-executed commands. |
| default | The default list of methods for authorization services. |
| list-name | Character string used to name the list of authorization methods. |
| method1 [method2…] | Use either tacacs or radius for authorization purpose. |
no aaa authorization
This command deletes the authorization method list.
| Format | no aaa authorization {exec | commands} {default | <list-name>} <method1> [<method2>…] |
| Mode | Global Config |
mfa-enable
M4250
M4350
This command enables the multi-factor authentication (MFA) feature at the global level.
| Default | enabled |
| Format | mfa-enable |
| Mode | Global Config |
no mfa-enable
This command disables the MFA feature at the global level.
| Format | no mfa-enable |
| Mode | Global Config |
show mfa
M4250
M4350
This command displays if multi-factor authentication (MFA) is globally enabled for all users for whom authentication is performed based on the switch user accounts configuration.
| Format | show mfa |
| Mode | Privileged EXEC |
show mfa log
M4250
M4350
This command displays buffered multi-factor authentication login logs. The switch records the most recent MFA login logs.
| Format | show mfa log |
| Mode | Privileged EXEC |
Command example:
#show mfa log
Multifactor Authentication logs:
1970-01-01T00:02:12.644+0:00Z dhcp-10-52-143-61 : Requested to enter OTP for session
id-2:
1970-01-01T00:02:12.645+0:00Z dhcp-10-52-143-61 : Unable to send multifactor
authentication code to the configured
email for login user 'test'.
1970-01-01T00:03:01.059+0:00Z dhcp-10-52-143-61 : Requested to enter OTP for session
id-2:
1970-01-01T00:08:01.063+0:00Z dhcp-10-52-143-61 : Multifactor authentication OTP has
expired for session id: 2.
1970-01-01T00:08:16.674+0:00Z dhcp-10-52-143-61 : Requested to enter OTP for session
id-2:
1970-01-01T00:08:26.933+0:00Z dhcp-10-52-143-61 : Incorrect OTP entered. Retrying again
for session id: 2.
1970-01-01T00:08:42.128+0:00Z dhcp-10-52-143-61 : MFA OTP authentication is success for
session id: 2.