tcp port

Function

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.

Format

tcp port port-number [ all | vpn-instance vpn-instance-name ]

undo tcp port [ port-number [ all | vpn-instance vpn-instance-name ] ]

Parameters

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.

Views

TWAMP server view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
twamp write

Usage Guidelines

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.

Example

# Set the TCP port number to 65530.
<HUAWEI> system-view
[~HUAWEI] nqa twamp
[*HUAWEI-twamp] server
[*HUAWEI-twamp-srv] tcp port 65530
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >