Captive Portal Local User and User Group Commands
Use these commands to view and configure captive portal users in the local database.
user (Captive Portal Config)
M4250
M4350
This command is used to create a local user. The user-id variable is the user ID, which can be a number between 1 and 128. The username variable is the name of the user and can have up to 32 alphanumeric characters. The password variable is 8-64 characters. The encrypted-password variable is 128 hexadecimal characters.
Two ways exist to create a user: with the user name command or with the user password command. If you create the user with the user name command, you must assign the password with the user password command. If you create the user with the user password command, you can assign the name with the user name command at a later time.
You can also modify the password after you create a user by using the user password command with the user ID and a new password.
| Format | user user-id name username |
| Mode | Captive Portal Config |
| Format | user user-id password {password | encrypted encrypted-password} |
| Mode | Captive Portal Config |
Command example:
The following example uses the name option to create the user.
(NETGEAR Switch)(Config-CP) #user 1 name testuser
Command example:
The following example uses the password option to create the user:
(NETGEAR Switch)(Config-CP) #user 1 password test1234
no user (Captive Portal Config)
This command deletes a user from the local user database. If the user has an existing session, it is disconnected. The user-id variable is the user ID, which can be a number between 1 and 128.
| Format | no user user-id |
| Mode | Captive Portal Config |
Command example:
(NETGEAR Switch)(Config-CP) #no user 1
user name (Captive Portal Config)
M4250
M4350
This command assigns a name to the user ID. This name is used at the client station for authentication. The user-id variable is the local user ID created with the user command and can be from 1 to 128 characters. The username variable is the name of the user and can have up to 32 alphanumeric characters.
| Format | user user-id name username |
| Mode | Captive Portal Config |
Command example:
(NETGEAR Switch)(Config-CP) #user 1 name johnsmith
user password (Captive Portal Config)
M4250
M4350
This command sets or modifies the password for the associated captive portal user. The user-id variable is the local user ID created with the user command and can be from 1 to 128 characters. The password variable is the user id’s password and can have from 8 to 64 alphanumeric characters.
| Format | user user-id password password |
| Mode | Captive Portal Config |
Command example:
(NETGEAR Switch)(Config-CP) #user 1 password
Enter Password (8 - 64 characters):
Re-enter password:
user password encrypted (Captive Portal Config)
M4250
M4350
This command modifies the password for the associated captive portal user. The command accepts the password in an encrypted format. This command is used primarily by the show running config command process.
The user-id variable is the local user ID created with the user command. The encrypted-pwd variable is the password in encrypted format, which can be up to 128 hexadecimal characters.
| Format | user user-id password encrypted encrypted-password |
| Mode | Captive Portal Config |
Command example:
(NETGEAR Switch)(Config-CP) #user 1 password encrypted 42 65 74 74 65 72 20 73 61 66 65
20 74 68 61 6e 20 73 6f 72 72 79
user session-timeout (Captive Portal Config)
M4250
M4350
This command sets the session timeout value for the associated captive portal user. The user-id variable is the ID of a user configured in the local database, and is a number in the range of 1 to 128. The timeout variable is a number that represents the session time-out from 0 to 86400 seconds. Enter 0 to indicate that the time-out is not enforced.
| Default | 0 |
| Format | user user-id session-timeout timeout |
| Mode | Captive Portal Config |
Command example:
(NETGEAR Switch)(Config-CP) #user 1 session-timeout 86400
no user session-timeout (Captive Portal Config)
This command sets the session timeout value for the associated captive portal user to the default value. The user-id variable is the ID of a user configured in the local database, and is a number in the range of 1 to 128.
| Format | no user user-id session-timeout |
| Mode | Captive Portal Config |
Command example:
(NETGEAR Switch)(Config-CP) #no user 1 session-timeout
user idle-timeout (Captive Portal Config)
M4250
M4350
This command sets the session idle timeout value for the associated captive portal user. The user-id variable is the ID of a user configured in the local database, and is a number in the range of 1 to 128. The timeout variable is a number that represents the idle time-out from 0 to 900 seconds. Use 0 to indicate that the time-out is not enforced.
| Default | 0 |
| Format | user user-id idle-timeout timeout |
| Mode | Captive Portal Config |
Command example:
(NETGEAR Switch)(Config-CP) #user 1 idle-timeout 600
no user idle-timeout
This command sets the session idle timeout value for the associated captive portal user to the default value. The user-id variable is the ID of a user configured in the local database, and is a number in the range of 1 to 128.
| Format | no user user-id idle-timeout |
| Mode | Captive Portal Config |
Command example:
(NETGEAR Switch)(Config-CP) #no user 1 idle-timeout
user max-bandwidth-up (Captive Portal Config)
M4250
M4350
This command is used to configure the bandwidth from 0 to 536870911 bytes per second (bps, with the bps variable) at which the client can send data into the network. 0 denotes using the default value configured for the captive portal. The user-id variable is the ID of a user configured in the local database, and is a number in the range of 1 to 128.
| Default | 0 |
| Format | user user-id max-bandwidth-up bps |
| Mode | Captive Portal Config |
| Parameter | Description |
|---|---|
| user-id | User ID from 1 to 128 characters. |
| bps | Client transmit rate in bytes per second (bps). 0 denotes unlimited bandwidth. |
no user max-bandwidth-up (Captive Portal Config)
Use this command to set to the default the bandwidth at which the client can send data into the network. The user-id variable is the ID of a user configured in the local database, and is a number in the range of 1 to 128.
| Format | no user user-id max-bandwidth-up |
| Mode | Captive Portal Config |
user max-bandwidth-down (Captive Portal Config)
M4250
M4350
This command is used to configure the bandwidth from 0 to 536870911 bytes per second (bps, with the bps variable) at which the client can receive data from the network. 0 denotes using the default value configured for the captive portal. The user-id variable is the ID of a user configured in the local database, and is a number in the range of 1 to 128.
| Default | 0 |
| Format | user user-id max-bandwidth-down bps |
| Mode | Captive Portal Config |
| Parameter | Description |
|---|---|
| user-id | User ID from 1 to 128 characters. |
| bps | Client receive rate in bps. 0 denotes unlimited bandwidth. |
no user max-bandwidth-down (Captive Portal Config)
Use this command to set to the default value the bandwidth at which the client can receive data from the network. The user-id variable is the ID of a user configured in the local database, and is a number in the range of 1 to 128.
| Format | no user user-id max-bandwidth-down |
| Mode | Captive Portal Config |
user max-input-octets (Captive Portal Config)
M4250
M4350
This command is used to limit the number of octets from 0 to 4294967295 bytes that the user is allowed to transmit. After this limit has been reached, the user will be disconnected. 0 octets denote unlimited transmission. The user-id variable is the ID of a user configured in the local database, and is a number in the range of 1 to 128.
| Default | 0 |
| Format | user user-id max-input-octets octets |
| Mode | Captive Portal Config |
| Parameter | Description |
|---|---|
| user-id | User ID from 1 to 128 characters. |
| octets | Number of bytes. |
no user max-input-octets (Captive Portal Config)
Use this command to set to the default the number of octets in bytes that the user is allowed to transmit. The user-id variable is the ID of a user configured in the local database, and is a number in the range of 1 to 128.
| Format | no user user-id max-input-octets |
| Mode | Captive Portal Config |
user max-output-octets (Captive Portal Config)
M4250
M4350
This command is used to limit the number of octets from 0 to 4294967295 bytes that the user is allowed to receive. After this limit has been reached, the user will be disconnected. 0 octets denote unlimited transmission. The user-id variable is the ID of a user configured in the local database, and is a number in the range of 1 to 128.
| Default | 0 |
| Format | user user-id max-output-octets octets |
| Mode | Captive Portal Config |
| Parameter | Description |
|---|---|
| user-id | User ID from 1 to 128 characters. |
| octets | Number of bytes. |
no user max-output-octets (Captive Portal Config)
Use this command to set to the default the number of octets in bytes that the user is allowed to receive. The user-id variable is the ID of a user configured in the local database, and is a number in the range of 1 to 128.
| Format | no user user-id max-output-octets |
| Mode | Captive Portal Config |
user max-total-octets (Captive Portal Config)
M4250
M4350
This command is used to limit the number of octets from 0 to 4294967295 bytes that the user is allowed to transmit and receive. The maximum number of octets is the sum of octets transmitted and received. After this limit has been reached, the user will be disconnected. 0 octets denote unlimited transmission. The user-id variable is the ID of a user configured in the local database, and is a number in the range of 1 to 128.
| Default | 0 |
| Format | user user-id max-total-octets octets |
| Mode | Captive Portal Config |
| Parameter | Description |
|---|---|
| user-id | User ID from 1 to 128 characters. |
| octets | Number of bytes. |
no user max-total-octets (Captive Portal Config)
Use this command to set to the default the number of octets in bytes that the user is allowed to transmit and receive. The user-id variable is the ID of a user configured in the local database, and is a number in the range of 1 to 128.
| Format | no user user-id max-total-octets |
| Mode | Captive Portal Config |
user group (Captive Portal Config)
M4250
M4350
Use this command to create a user group. The group-id variable is a number in the range of 1–10.
| Format | user group group-id |
| Mode | Captive Portal Config |
Command example:
(NETGEAR Switch)(Config-CP) #user group 1
no user group (Captive Portal Config)
Use this command to delete a user group. The group-id variable is a number in the range of 1–10.
| Format | no user group group-id |
| Mode | Captive Portal Config |
user group name (Captive Portal Config)
M4250
M4350
Use this command to configure a group name. The group-id variable is a number in the range of 1–10. The name variable can be up to 32 alphanumeric characters.
| Format | user group group-id name name |
| Mode | Captive Portal Config |
user {user-id} group (Captive Portal Config)
M4250
M4350
This command assigns or modifies a specific captive portal user to a captive portal group. The user-id variable is the user ID, which is a number in the range of 1 to 128. The group-id variable is the group ID in the range of 1 to 10.
| Format | user user-id group group-id |
| Mode | Captive Portal Config |
Command example:
(NETGEAR Switch)(Config-CP) #user 1 group 1
user group moveusers (Captive Portal Config)
M4250
M4350
This command moves existing users from one user group to another. Note that the destination group must already exist before a move can be successful. The group-id and destination-group-id variables are each a number in the range of 1-10.
| Format | user group group-id moveusers destination-group-id |
| Mode | Captive Portal Config |
Command example:
(NETGEAR Switch)(Config-CP) #user group 2 moveusers 3
show captive-portal user
M4250
M4350
This command displays all configured users or a specific user in the captive portal local user database. Enter the optional user ID to view information about the specified user. The optional user-id variable is the ID of a user configured in the local database, and is a number in the range of 1 to 128. Enter the group keyword or the group keyword and group-id variable to view the user information organized by groups.
| Format | show captive-portal user [user-id] [group [group-id]] |
| Mode | Privileged EXEC |
| Field | Description |
|---|---|
| User ID | Displays the ID of the user. |
| User Name | Displays the user name. |
| Session Timeout | Displays the number of seconds the user can remain in a session before being disconnected from the Captive Portal. |
| Idle Timeout | Displays the number of seconds the user can remain idle before being disconnected from the Captive Portal. |
| Group ID | Displays the group identifier for the group to which the user belongs. |
| When you include the [user-id] variable, the following information also displays: | |
| Password Configured | Indicates whether a password has been configured for the user. |
| Max Bandwidth Up (bps) | The maximum rate in bytes per second (bps) at which a client can send data into the network. |
| Max Bandwidth Down (bps) | The maximum rate in bps at which a client can receive data from the network. |
| Max Bandwidth Input Octets (bytes) | The maximum number of octets the user is allowed to transmit. |
| Max Bandwidth Output Octets (bytes) | The maximum number of octets the user is allowed to receive. |
| Max Bandwidth Total Octets (bytes) | The maximum number of octets the user is allowed to transfer, i.e., the sum of octets transmitted and received. |
clear captive-portal users
M4250
M4350
This command deletes all captive portal user entries.
| Format | clear captive-portal users |
| Mode | Privileged EXEC |