Specifying a portal Web server

With a portal Web server specified on an interface, the device redirects the HTTP or HTTPS requests of portal users on the interface to the portal Web server.

With a portal Web server specified on a service template, the device redirects the HTTP or HTTPS requests of portal users on the WLAN-BSS interfaces bound to the service template to the portal Web server.

IPv4 and IPv6 portal authentication can both be enabled on an interface. You can specify both a primary portal Web server and a backup portal Web server after enabling each type (IPv4 or IPv6) of portal authentication.

The device first uses the primary portal Web server for portal authentication. When the primary portal Web server is unreachable but the backup portal Web server is reachable, the device uses the backup portal Web server. When the primary portal Web server becomes reachable, the device switches back to the primary portal Web server for portal authentication.

To automatically switch between the primary portal Web server and the backup portal Web server, configure portal Web server detection on both servers.

You can specify both IPv4 and IPv6 portal Web servers on an interface.

To specify a portal Web server on an interface:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter interface view.

interface interface-type interface-number

The interface must be a Layer 3 interface.

3. Specify a portal Web server.

  • To specify an IPv4 portal Web server:portal apply web-server server-name [ secondary ]

  • To specify an IPv6 portal Web server:portal ipv6 apply web-server server-name [ secondary ]

By default, no portal Web servers are specified.

To specify a portal Web server 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. Specify an IPv4 portal Web server.

portal apply web-server server-name [ secondary ]

By default, no IPv4 portal Web server is specified.