The server-ip command configures an IP address for a Portal server.
The undo server-ip command deletes an IP address for a Portal server.
By default, no IP address is configured for a Portal server.
server-ip server-ip-address &<1-10>
server-ip ipv6 server-ipv6-address &<1-3>
undo server-ip { server-ip-address ipv6 server-ipv6-address | all }
The S6720-SI, S6720S-SI, S6720-LI, S6720S-LI, S5730S-EI, S5730-SI, S5720-SI, S5720S-SI, S5720I-SI, S5720-LI, S5720S-LI, and S2720-EI do not support the ipv6 parameters.
Parameter | Description | Value |
---|---|---|
server-ip-address |
Specifies an IPv4 address of a Portal server. |
The value is in dotted decimal notation. |
ipv6 server-ipv6-address |
Specifies an IPv6 address of a Portal server. |
The value is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X. |
all |
Deletes all IP addresses of a Portal server. |
- |
Usage Scenario
After creating a Portal server template on the device using the web-auth-server (system view) command, configure parameters for the template.
Run the server-ip command to configure an IP address for the Portal server in the Portal server template view. When receiving a Portal authentication request packet from a user, the device sends a response packet to the Portal server with the configured IP address.
Precautions
After the IP address corresponding to a Portal server is configured in the Portal server template, users are allowed to access the IP address.
When a Portal server template is bound to an interface, server IP addresses can be added, but cannot be deleted. If multiple IP addresses are configured for a Portal server in the Portal server template, you are advised to run the url (Portal server template view) command to configure a URL for the Portal server. If no URL is configured, the device uses the first IP address as the URL by default, and the other IP addresses do not take effect.