< Home

server-detect type

Function

The server-detect type command configures the mode in which a device detects Portal server status.

The undo server-detect type command restores the default Portal server detection mode.

By default, the Portal-based Portal server detection mode is configured.

Format

server-detect type { portal | http }

undo server-detect type

Parameters

Parameter

Description

Value

portal

Specifies the Portal-based Portal server detection mode.

-
http

Specifies the HTTP-based Portal server detection mode.

-

Views

Portal server template view

Default Level

2: Configuration level

Usage Guidelines

Precautions

In Portal-based Portal server detection mode, the Portal server periodically (the time is determined by the server) sends heartbeat packets to the access device, which then determines the server reachability based on the heartbeat packets. If the access device receives Portal heartbeat packets or other authentication packets from the Portal server within the detection interval (configured using server-detect interval interval-period) and the packets are verified to be correct, the detection is successful. Otherwise, the detection fails. When the number of consecutive detection failures reaches the maximum number specified by the server-detect max-times times command, the access device changes the status of the Portal server from Up to Down.

In HTTP-based Portal server detection mode, the access device periodically sends HTTP packets to the Portal server and expects a response packet from the Portal server. If the access device receives a response packet within the specified detection interval (configured using server-detect interval interval-period), the detection is successful. Otherwise, the detection fails. When the number of consecutive detection failures reaches the maximum number specified by the server-detect max-times times command, the access device changes the status of the Portal server from Up to Down.

In Portal-based Portal server detection mode, the Portal server must use the Portal protocol and support sending Portal heartbeat packets. If the Portal server does not meet these requirements, you can configure the HTTP-based detection mode. In this way, if the device detects that the Portal server is Down, the device grants new users the corresponding network access rights.

Precautions

HTTP-based Portal server detection applies to both wireless access scenarios and wired access scenarios using MAC+Portal authentication.

Example

# Configure the device to detect Portal server status using HTTP.

<HUAWEI> system-view
[HUAWEI] web-auth-server abc
[HUAWEI-web-auth-server-abc] server-detect type http
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >