The tcp port command configures a TCP port number on a server.
The undo tcp port command cancels the configuration.
By default, the TCP port number is 862.
Parameter | Description | Value |
---|---|---|
port-number |
Specifies a TCP port number. |
The·value·is·862,·or·an·integer·ranging·from·1024·to·65535.·The·default·value·is·862. |
all |
Specifies that the public network and all VPN instances are listened to. |
- |
vpn-instance vpn-instance-name |
Listens to all port numbers or VPN instances. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
Usage Scenario
After the Two-Way Active Measurement Protocol (TWAMP) function is enabled, you must specify a TCP port number for a TCP connection on a server. As defined in TWAMP standard, the TCP port number is 862. To allow a server to communicate with a non-standard client, run the tcp port <PORT-NUMBER> command to set a proper TCP port number.