< Home

server-ip (Portal server template view)

Function

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.

Format

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.

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.

-

Views

Portal server template view

Default Level

2: Configuration level

Usage Guidelines

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. Multiple IP addresses can be configured in a Portal server template. This configuration allows Portal authentication users to access the same Portal authentication page using multiple IP addresses, making the authentication process more flexible.

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.

  • 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. When the switch functions as the AC, configured server IP addresses will be automatically delivered to APs and authentication-free rules will be generated. Currently, only the first four IPv4 addresses and the first four IPv6 addresses take effect on the APs.

  • When you run the server-ip command to specify IPv6 addresses, you must also specify IPv4 addresses. This is because the device does not support IPv6 Portal protocol exchange.

Example

# Set the Portal server IP address in the Portal server template huawei to 10.10.10.1.

<HUAWEI> system-view
[HUAWEI] web-auth-server huawei
[HUAWEI-web-auth-server-huawei] server-ip 10.10.10.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >