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.

Note: You cannot delete the admin user, which is the only user with read/write privileges on the switch. You can configure up to five read-only users (that is, guest users) on the switch.

aaa authentication login

M4250

M4350

Note: A user with privilege level 1 cannot enter in Privileged EXEC mode and cannot execute Privileged EXEC commands.

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
  • defaultList. Used by the console and only contains the method none.
  • networkList. Used by telnet and SSH and only contains the method local.
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:

  • enable. Uses the enable password for authentication.
  • line. Uses the line password for authentication.
  • local. Uses the local username database for authentication.
  • none. Uses no authentication.
  • radius. Uses the list of all RADIUS servers for authentication.
  • tacacs. Uses the list of all TACACS servers for authentication.

Command example:

CODE
(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.

  1. aaa authentication enable default enable none
  2. aaa authentication enable default line none
  3. aaa authentication enable default enable radius none
  4. 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.

Note: Requests sent by the switch to a RADIUS or TACACS server include the username $enabx$, in which x is the requested privilege level. The login user ID is also sent to a TACACS+ server.
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:

  • deny. Used to deny access.
  • enable. Uses the enable password for authentication.
  • line. Uses the line password for authentication.
  • none. Uses no authentication.
  • radius. Uses the list of all RADIUS servers for authentication.
  • tacacs. Uses the list of all TACACS+ servers for authentication.

Command example:

The following example sets authentication to access higher privilege levels:

CODE
(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.

Note: The local method is not supported for command authorization. Command authorization with RADIUS functions only if the applied authentication method is also RADIUS.
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:

CODE
#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.