| Parameter | Description | Value |
|---|---|---|
| local-ip ipv4-address |
Displays the IPv4 TCP connection with a specified local IP address. |
The address is a 4-digit number, in the format of X.X.X.X. |
| local-port local-port-number |
Displays the IPv4 TCP connection with a specified local port number. |
The value ranges from 0 to 65535. |
| remote-ip ipv4-address |
Displays the IPv4 TCP connection with a specified remote IP address. |
The address is a 4-digit number, in the format of X.X.X.X. |
| remote-port remote-port-number |
Displays the IPv4 TCP connection with a specified remote port number. |
The value ranges from 0 to 65535. |
| cid cid |
Displays the IPv4 TCP connection with a specified APP CID. |
The value is a hexadecimal integer that ranges from 0 to ffffffff. |
| socket-id socket-id |
Displays the IPv4 TCP connection with a specified socket ID. |
TThe value is an integer that ranges from 0 to 2147418111. |
Usage Scenario
TCP defined in standard protocols ensures high-reliability transmission between hosts. TCP provides reliable, connection-oriented, and full-duplex services for user processes. To monitor the TCP connection status, run the display tcp status command to check the following information:
Precautions
If no TCP connection is available, the command output is empty.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display tcp status
* - MD5 Authentication is enabled.
# - Keychain Authentication is enabled.
@ - TCP-AO Authentication is enabled.
--------------------------------------------------------------------------------
Cid/SocketID Local Addr:Port Foreign Addr:Port VPNID State
--------------------------------------------------------------------------------
0x80C8272D/2 0.0.0.0:23 0.0.0.0:0 1 LISTEN*
0x80932727/6 0.0.0.0:22 0.0.0.0:0 1 LISTEN#
0x8013048B/3 0.0.0.0:179 10.0.2.2:0 1 LISTEN@
--------------------------------------------------------------------------------
| Item | Description |
|---|---|
| MD5 Authentication is enabled | MD5 authentication mode enabled. |
| Keychain Authentication is enabled | Keychain authentication mode enabled. |
| TCP-AO Authentication is enabled | TCP-AO authentication mode enabled. |
| Cid/SocketID | Task ID and socket ID. |
| Local Addr:Port | Local IP address and port number of a TCP connection. If the value of Local Add is 0.0.0.0, all addresses are monitored. If the value of port number is 0, all port number are monitored. |
| Foreign Addr:Port | Remote IP address and port number of a TCP connection. If the value of Foreign Add is 0.0.0.0, all addresses are monitored. If the value of port number is 0, all port number are monitored. |
| VPNID | Local VPN ID. |
| State | TCP connection status:
|