The port command sets the port number that a Portal server uses to receive notification packets from the device.
The undo port command restores the default port number.
By default, a Portal server uses port number 50100 to receive packets from the device.
Parameter | Description | Value |
---|---|---|
port-number | Specifies the port number that the Portal server uses to receive and encapsulate UDP packets from the device. | The value is an integer that ranges from 1 to 65535. By default, the value is 50100. |
all | Indicates that the device always uses the destination port number specified by port-number to encapsulate UDP packets.
NOTE:
After this keyword is specified, when receiving UDP packets from a Portal server, the device does not obtain the source port number in the UDP packets as the destination port number of UDP packets to be sent to the Portal server. If the value of port-number is different from the source port number of the Portal server, the Portal server cannot receive the UDP packets sent by the device. Therefore, this keyword is not recommended. |
- |
Usage Scenario
After creating a Portal server template on the device using the web-auth-server command, configure parameters for the template.
Run the port command to set the port number that a Portal server uses to receive notification packets from the device. After receiving a Portal authentication request packet from a user, the device sends the packet to the Portal server using the specified destination port number.
Precautions
Ensure that the port number configured on the device is the same as that used by the Portal server.