The web-auth-server command configures the Portal server template used by a Portal access profile.
The undo web-auth-server command restores the default setting.
By default, a Portal access profile does not use any Portal server template.
| Parameter | Description | Value |
|---|---|---|
server-name |
Specifies the name of a Portal server template. |
The value must be an existing Portal server template name. |
Usage Scenario
After a Portal server template is configured on the device, this profile must be bound to a Portal access profile. When users who use the Portal access profile attempt to access charged network resources, the HTTP requests are forcibly redirected to the authentication page of the Portal server to implement Portal authentication.
Prerequisites
A Portal server template has been created using web-auth-server and the IP address of the Portal server has been configured using server-ip.
Precautions
# Bind the Portal access profile p1 to the Portal server template server1.
<sysname> system-view [sysname] web-auth-server server1 [sysname-web-auth-server-server1] server-ip 10.10.1.1 [sysname-web-auth-server-server1] quit [sysname] portal-access-profile name p1 [sysname-portal-access-profile-p1] web-auth-server server1