data-limit

Enforces data transfer limits on captive portal clients. This feature enables the tracking and logging of user usage. Users exceeding the allowed bandwidth are restricted from the captive portal.

Supported on the following devices:

Syntax

data-limit <1-102400> {action [log-and-disconnect|log-only]}

Parameters

data-limit <1-102400> {action [log-and-disconnect|log-only]}

data-limit <1-102400>

Sets a captive portal client's data transfer limit in megabytes. This limit is applicable for both upstream and downstream data transfer.

  • <1-102400> – Specify a value from 1 - 102400 MB.

action [log-and-disconnect| log-only]

Optional. Specifies the action taken when a client exceeds the configured data limit. The options are:

  • log-and-disconnect – When selected, an entry is added to the log file any time a captive portal client exceeds the data limit, and the client is disconnected.

  • log-only – When selected, an entry is added to the log file any time a captive portal client exceeds the data limit. the client, however, remains connected to the captive portal. This is the default setting.

Examples

rfs4000-229D58(config-captive-portal-test)#data-limit 200 action log-and-disconnect
rfs4000-229D58(config-captive-portal-test)#
rfs4000-229D58(config-captive-portal-test)#show context
captive-portal test
 data-limit 200 action log-and-disconnect
rfs4000-229D58(config-captive-portal-test)#

Related Commands

no

Removes data limit enforcement for captive portal clients