< Home

web-auth-server listening-port

Function

The web-auth-server listening-port command sets the number of the port through which a device listens on Portal protocol packets.

The undo web-auth-server listening-port command restores the default listening port.

By default, the device uses port 2000 to listen on Portal protocol packets.

Format

web-auth-server listening-port port-number

undo web-auth-server listening-port

Parameters

Parameter Description Value
port-number Specifies the number of the listening port. The value is an integer that ranges from 1024 to 55535.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When the device exchanges user authentication information with the Portal server using the Portal protocol, you must configure the listening port on the device to receive Portal packets.

You can run the web-auth-server listening-port command to set the number of the port through which the device listens on Portal packets. The port number must be the same as the destination port number in Portal packets sent by the Portal server and must be unique.

If a specified port is occupied by another service or is a reserved port, the configuration fails. Ensure that the specified port is available when running this command.

Example

# Set the number of the port through which a device listens on Portal protocol packets to 3000.

<HUAWEI> system-view
[HUAWEI] web-auth-server listening-port 3000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >