Setting the maximum number of portal users

Perform this task to control the total number of portal users in the system, and the maximum number of IPv4 or IPv6 portal users on an interface or service template.

If you set the maximum total number smaller than the number of current online portal users on the device, this configuration still takes effect. The online users are not affected but the system forbids new portal users to log in.

If you set the maximum number smaller than the current number of portal users on an interface or a service template, this configuration still takes effect. The online users are not affected but the system forbids new portal users to log in from the interface or service template.

Make sure the maximum combined number of IPv4 and IPv6 portal users specified on all interfaces or service templates does not exceed the system-allowed maximum number. Otherwise, the exceeding number of portal users will not be able to log in to the device.

To set the maximum number of total portal users allowed in the system:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Set the maximum number of total portal users.

portal max-user max-number

By default, no limit is set on the number of portal users in the system.

To set the maximum number of portal users on an interface:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter interface view.

interface interface-type interface-number

N/A

3. Set the maximum number of portal users.

portal { ipv4-max-user | ipv6-max-user } max-number

By default, no limit is set on the number of portal users.

To set the maximum number of portal users on a service template:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter service template view.

wlan service-template service-template-name

N/A

3. Set the maximum number of portal users.

portal ipv4-max-user max-number

By default, no limit is set on the number of portal users.