< Home

display tcp ipv6 status

Function

The display tcp ipv6 status command displays the status of all TCP6 connections.

Format

display tcp ipv6 status [ local-ip ipv6-address ] [ local-port local-port-number ] [ remote-ip ipv6-address ] [ remote-port remote-port-number ]

display tcp ipv6 status [ task-id task-id [ sock-id sock-id ] ]

Parameters

Parameter Description Value
local-ip ipv6-address Displays the TCP6 connection status of the specified IPv6 address. ipv6-address specifies the IPv6 address of the local device. The value has 128 bits. It is represented as eight groups of four hexadecimal digits with the groups being separated by colons, in the format of X:X:X:X:X:X:X:X.
remote-ip ipv6-address Displays the TCP6 connection status of the specified IPv6 address. ipv6-address specifies the IPv6 address of the remote device. The value has 128 bits. It is represented as eight groups of four hexadecimal digits with the groups being separated by colons, in the format of X:X:X:X:X:X:X:X.
local-port local-port-number Displays the TCP6 connection status of the specified port number. local-port-number specifies the port number of the local device. The value is an integer that ranges from 0 to 65535.
remote-port remote-port-number Displays the TCP6 connection status of the specified port number. remote-port-number specifies the port number of the remote device. The value is an integer that ranges from 0 to 65535.
task-id task-id Displays the status of the TCP6 connection with the specified task ID. task-id specifies the task ID. The value is an integer that ranges from 1 to 200.
sock-id sock-id Displays the TCP6 connection status with the specified socket ID. sock-id specifies the socket ID. The value is an integer that ranges from 1 to 131072.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can run the display tcp ipv6 status command to view all valid TCP6 control blocks, including the following information:

  • TCP6 socket ID
  • Local IPv6 address and port number
  • Remote IPv6 address and port number
  • TCP6 connection status
  • VPN ID

To view the status of all valid TCP6 connections, run the display tcp ipv6 status [ local-ip ipv6-address ] [ local-port local-port-number ] [ remote-ip ipv6-address ] [ remote-port remote-port-number ] command.

To view the status of the TCP6 connection with a specified socket ID, run the display tcp ipv6 status [ task-id task-id [ sock-id sock-id ] ] command.

Precautions

If there is no TCP connection, no information is displayed.

Example

# Display the status of TCP6 connections.

<HUAWEI> display tcp ipv6 status
* - MD5 Authentication is enabled.                                              
TCP6CB   TID/SoID  Local Address        Foreign Address      State        VPNID 
0be58fa8 102/3     ::->22               ::->0                Listening    0     
0d109448 102/2     ::->23               ::->0                Listening    0 
Table 1 Description of the display tcp ipv6 status command output

Item

Description

TCP6CB

Address of a TCP6 control block, in hexadecimal notation.

TID/SoID

Task ID and socket ID.

Local Address

Local IPv6 address and port number.

Foreign Address

Remote IPv6 address and port number.

State

Status of a TCP6 connection:
  • Closed: indicates that the TCP connection is closed.

  • Listening: indicates that the TCP connection is being listened on.

  • Syn_Rcvd: indicates that a TCP packet with the SYN flag is received.

  • Syn_Sent: indicates that a TCP packet with the SYN flag is sent.

  • Established: indicates that the TCP connection has been set up.

  • Close_Wait: indicates that a user host sends a packet with the FIN flag to the server, requesting the server to close the TCP connection in Established state. The server then sends an ACK packet to the user host after receiving the packet and enters the Close_Wait state.

  • Fin_Wait1: indicates that a user host sends a packet with the FIN flag to the server, requesting the server to close the TCP connection and enters the Fin_Wait1 state.

  • Fin_Wait2: indicates that a user host receives an ACK packet in a response to the sent packet with the FIN flag and enters the Fin_Wait2 state.

  • Time_Wait: indicates that TCP enters this state after the TCP connection is closed. When TCP has been in Time_Wait state two times the longest packet lifetime, records about the closed connection are deleted.

  • Closing: indicates that the two ends close the TCP connection simultaneously.

  • LAST_ACK: indicates that the local end waits for acknowledging the TCP connection teardown request sent to the remote end.

VPNID

VPN ID.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >