portal local-server ip
Syntax
portal local-server ip ip-address
undo portal local-server ip
View
System view
Default level
2: System level
Parameters
ip-address: Specifies the listening IP address of the local portal server. This IP address is that of a Layer 3 interface on the access device and can reach the portal client.
Description
Use portal local-server ip to specify the listening IP address of the local portal server for Layer 2 portal authentication. With a listening IP address specified, the device will redirect Web requests from portal clients to the authentication page at the listening IP address.
Use undo portal local-server ip to restore the default.
By default, no listening IP address is specified for the local portal server.
Hewlett Packard Enterprise recommends configuring a loopback interface's address as the listening IP address because:
The status of a loopback interface is stable. This can avoid authentication page access failures caused by interface failures.
A loopback interface does not forward received packets. This can avoid impacting system performance when there are many network access requests.
Examples
# Specify 1.1.1.1 as the listening IP address of the local portal server for Layer 2 portal authentication.
<Sysname> system-view [Sysname] interface loopback 1 [Sysname-LoopBack1] ip address 1.1.1.1 32 [Sysname-LoopBack1] quit [Sysname] portal local-server ip 1.1.1.1