The web-auth-server command creates a Portal server template or displays the Portal server template view.
The undo web-auth-server command deletes a Portal server template.
By default, no Portal server template is created.
Parameter |
Description |
Value |
---|---|---|
server-name |
Specifies the name of a Portal server. |
The value is a string of 1 to 31 case-sensitive characters without spaces. NOTE:
server-name cannot be set to listening-port, reply-message, version, or the first character or several leftmost characters of these character strings. |
Usage Scenario
When an unauthenticated Portal user goes online, the device forces the user to log in to a specified website (also called the Portal website). The user can access resources in the Portal website for free. When the user attempts to access charged network resources, the user must pass authentication on the Portal website. The specific process is as follows:
After a Portal server template is created on the device by using the web-auth-server command, run other commands to create a route from the device to the Portal server.
Follow-up Procedure
Run the following commands to configure related attributes of the Portal server template:
Precautions
You are advised to back up the Portal server data to prevent authentication failure caused by the Portal server fault.
If you want to run the undo web-auth-server command to delete a Portal server template, ensure that the Portal server template is not bound to the interface.