Captive Portal Configuration Commands

Use these commands to configure captive portal instances.

The commands in this section are related to captive portal configurations.

configuration (for captive portal)

M4250

M4350

Use the captive-portal command to let the CLI enter the Captive Portal Configuration mode. From the Captive Portal Configuration mode, use the configuration command to let the CLI enter the Captive Portal Instance mode.

The captive portal configuration, identified by CP ID 1, is the default CP configuration. You can create up to nine additional captive portal configurations. The system supports a total of ten CP configurations. The Captive Portal ID cp-id variable is a number in the range of 1-10.

Format configuration cp-id
Mode Captive Portal Config

no configuration

This command deletes a captive portal configuration. The command fails if interfaces are associated with this configuration. The default captive portal configuration cannot be deleted. The Captive Portal ID cp-id variable is a number in the range of 1-10.

Format no configuration cp-id
Mode Captive Portal Config

enable (Captive Portal Instance)

M4250

M4350

This command enables a captive portal configuration.

Default Enable
Format enable
Mode Captive Portal Instance

no enable

This command disables a captive portal configuration.

Format no enable
Mode Captive Portal Instance

name

M4250

M4350

This command configures the name for a captive portal configuration. The cp-name can contain up to 32 alphanumeric characters.

Format name cp-name
Mode Captive Portal Instance

no name

This command removes the name for a captive portal configuration.

Format no name
Mode Captive Portal Instance

protocol

M4250

M4350

This command configures the protocol for a captive portal configuration. The CP can use HTTP or HTTPS protocols.

Default https
Format protocol {http | https}
Mode Captive Portal Instance

no protocol

This command removes the protocol for a captive portal configuration.

Format no protocol
Mode Captive Portal Instance

verification

M4250

M4350

This command configures the verification mode for a captive portal configuration. The type of user verification to perform can be one of the following:

  • guest. The user does not need to be authenticated by a database.
  • local. The switch uses a local database to authenticate users.
  • radius. The switch uses a database on a remote RADIUS server to authenticate users.
Default guest
Format verification {guest | local | radius}
Mode Captive Portal Instance

no verification

This command removes the verification mode for a captive portal configuration.

Format no verification
Mode Captive Portal Instance

group

M4250

M4350

This command assigns a group ID to a captive portal configuration. Each Captive Portal configuration must contain at least one group ID. The group-id can have a number in the 1–1024 range. Group ID 1 is the default.

Default group-ID 1
Format group group-id
Mode Captive Portal Instance

no group

This command removes the group ID for a captive portal configuration.

Format no group
Mode Captive Portal Instance

radius-auth-server

M4250

M4350

Use this command to configure a captive portal configuration RADIUS authentication server.

Default Disable
Format radius-auth-server server-name
Mode Captive Portal Instance

no radius-auth-server

This command disables a captive portal configuration RADIUS authentication server.

Format no radius-auth-server
Mode Captive Portal Instance

redirect

M4250

M4350

This command enables the redirect mode for a captive portal configuration.

Default Disable
Format redirect
Mode Captive Portal Instance

no redirect

This command disables the redirect mode for a captive portal configuration.

Format no redirect
Mode Captive Portal Instance

redirect-url

M4250

M4350

Use this command to specify the URL to which a newly authenticated client is redirected if the URL Redirect Mode is enabled. This command is only available if the redirect mode is enabled.

Format redirect-url url
Mode Captive Portal Instance

no redirect-url

This command removes the URL to which a newly authenticated client is redirected if the URL Redirect Mode is enabled.

Format no redirect-url
Mode Captive Portal Instance

max-bandwidth-up

M4250

M4350

This command configures the maximum rate at which a client can send data into the network.

Default 0
Format max-bandwidth-up rate
Mode Captive Portal Config
Parameter Description
rate Rate in bps. 0 indicates limit not enforced.

no max-bandwidth-up

This command sets the maximum rate at which a client can send data into the network to the default.

Format no max-bandwidth-up
Mode Captive Portal Instance

max-bandwidth-down

M4250

M4350

This command configures the maximum rate at which a client can receive data from the network. If the value is set to 0, the rate is not enforced.

Default 0
Format max-bandwidth-down rate
Mode Captive Portal Instance
Parameter Description
rate Rate in bps. 0 indicates that the limit is not enforced.

no max-bandwidth-down

This command sets to the default the maximum rate at which a client can receive data from the network.

Format no max-bandwidth-down
Mode Captive Portal Instance

max-input-octets

M4250

M4350

This command configures the maximum number of octets the user is allowed to transmit. After this limit has been reached the user will be disconnected. If the value is set to 0, the limit is not enforced.

Default 0
Format max-input-octets bytes
Mode Captive Portal Instance
Parameter Description
bytes Input octets in bytes. 0 indicates that the limit is not enforced.

no max-input-octets

This command sets to the default the maximum number of octets the user is allowed to transmit.

Format no max-input-octets
Mode Captive Portal Instance

max-output-octets

M4250

M4350

This command configures the maximum number of octets the user is allowed to receive. After this limit is reached, the user is disconnected. If the value is set to 0, the limit is not enforced.

Default 0
Format max-output-octets bytes
Mode Captive Portal Instance
Parameter Description
bytes Output octets in bytes. 0 indicates that the limit is not enforced.

no max-output-octets

This command sets to the default the maximum number of octets the user is allowed to receive.

Format no max-output-octets
Mode Captive Portal Instance

max-total-octets

M4250

M4350

This command configures the maximum number of octets a user is allowed to transfer, that is, the sum of octets transmitted and received. After this limit is reached, the user is disconnected. If the value is set to 0, then the limit is not enforced.

Default 0
Format max-total-octets bytes
Mode Captive Portal Instance
Parameter Description
bytes Total octets in bytes. 0 indicates limit not enforced.

no max-total-octets

This command sets to the default the maximum number of octets the user is allowed to transfer, that is, the sum of octets transmitted and received.

Format no max-total-octets
Mode Captive Portal Instance

session-timeout (Captive Portal Instance)

M4250

M4350

This command configures the session time-out for a captive portal configuration. The timeout variable is a number that represents the session time-out in seconds. Use 0 to indicate that the time-out is not enforced.

Default 0
Format session-timeout timeout
Mode Captive Portal Instance

no session-timeout

Use this command to set the session time-out for a captive portal configuration to the default value.

Format no session-timeout
Mode Captive Portal Instance

idle-timeout

M4250

M4350

This command configures the idle time-out for a captive portal configuration. The timeout variable is a number that represents the idle time-out in seconds. Use 0 to indicate that the time-out is not enforced.

Default 0
Format idle-timeout timeout
Mode Captive Portal Instance

no idle-timeout

Use this command to set the idle time-out for a captive portal configuration to the default value.

Format no idle-timeout
Mode Captive Portal Instance

locale

M4250

M4350

This command is not intended to be a user command. The administrator must use the Main user interface to create and customize captive portal web content. The command is primarily used by the show running config command and process as it provides the ability to save and restore configurations using a text-based format.

Format locale web-id
Mode Captive Portal Instance

interface (Captive Portal Instance)

M4250

M4350

This command associates an interface with a captive portal configuration. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
Format interface unit/slot/port
Mode Captive Portal Instance

no interface (Captive Portal Instance)

This command removes the association between an interface and a captive portal configuration.

Format no interface unit/slot/port
Mode Captive Portal Instance

block

M4250

M4350

This command blocks all traffic for a captive portal configuration.

Format block
Mode Captive Portal Instance

no block

This command unblocks all traffic for a captive portal configuration.

Format no block
Mode Captive Portal Instance

clear (Captive Portal Instance Config)

M4250

M4350

This command sets the configuration for this instance to the default values.

Format clear
Mode Captive Portal Instance

user-logout

M4250

M4350

This command enables the ability for an authenticated user to de-authenticate from the network. This command is configurable for a captive portal configuration.

Format user-logout
Mode Captive Portal Instance

no user-logout

This command removes the association between an interface and a captive portal configuration.

Format no user-logout
Mode Captive Portal Instance

background-color

M4250

M4350

Use this command to customize the background color of the Captive Portal authentication page using a well-known color name or RGB value. For example, red or RGB hex-code, that is, #FF0000. The range of color-code is 1-32 characters.

Default #BFBFBF
Format background-color color-code
Mode Captive Portal Instance

no background-color

This command reverts the background color of the Captive Portal authentication page to the default color.

Format no background-color
Mode Captive Portal Instance

foreground-color

M4250

M4350

Use this command to customize the foreground color of the Captive Portal authentication page using a well-known color name or RGB value. For example, red or RGB hex-code, that is, #FF0000. The range of color-code is 1-32 characters.

Default #999999
Format foreground-color color-code
Mode Captive Portal Instance

no foreground-color

This command reverts the foreground color of the Captive Portal authentication page to the default color.

Format no foreground-color
Mode Captive Portal Instance

separator-color

M4250

M4350

Use this command to customize the separator bar color of the Captive Portal authentication page using a well-known color name or RGB value. For example, red or RGB hex-code; that is, #FF0000. The range of color-code is 1-32 characters.

Default #BFBFBF
Format separator-color color-code
Mode Captive Portal Instance

no separator-color

This command reverts the separator bar color of the Captive Portal authentication page to the default color.

Format no separator-color
Mode Captive Portal Instance