< Home

source-ip (Portal server template view)

Function

The source-ip command configures the source IP address for the device to communicate with a Portal server.

The undo source-ip command restores the default setting.

By default, no source IP address is configured for the device to communicate with a Portal server.

Format

source-ip ip-address

undo source-ip

Parameters

Parameter Description Value
ip-address Specifies the source IP address for communication with a Portal server. The value is in dotted decimal notation.

Views

Portal server template view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To ensure normal communication between the device and Portal server, run the source-ip command to configure a source IP address on the device.

If the device is configured with a loopback IP address and a common IP address, the device can communicate with the Portal server only when the loopback IP address and common IP address are the same. The source-ip command configures a source IP address on the device in the web-auth-server view to allow communication between the device and a Portal server.

Precautions

Ensure that the configured source IP address is the device IP address. The source IP address cannot be all 0s, all 1s, class D address, class E address, or loopback address.

Example

# Set the source IP address for communication between the device and a Portal server to 192.168.1.100 in the Portal server template huawei.

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