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:

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