< Home

display tcp ipv6 status

Function

The display tcp ipv6 status command displays all IPv6 TCP 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

Specifies the IPv6 address of the local device. The IPv6 TCP connection status of the specified IPv6 address is displayed.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

remote-ip ipv6-address

Specifies the IPv6 address of the remote device. The IPv6 TCP connection status of the specified IPv6 address is displayed.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

local-port local-port-number

Specifies the port number of the local device. The IPv6 TCP connection status of the specified port number is displayed.

It ranges from 0 to 65535.

remote-port remote-port-number

Specifies the port number of the remote device. The IPv6 TCP connection status of the specified port number is displayed.

It ranges from 0 to 65535.

task-id task-id

Specifies the task ID. The status of the IPv6 TCP connection with the specified task ID is displayed.

The value is an integer ranging from 1 to 200.

sock-id sock-id

Specifies the socket ID. The status of the IPv6 TCP connection with the specified socket ID is displayed.

The value is an integer range from 1 to 131072.

sock-id sock-id

Specifies the socket ID. The status of the IPv6 TCP connection with the specified socket ID is displayed.

It is an integer, ranging from 1 to 131072.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display tcp ipv6 status command can be used to display all valid IPv6 TCP control blocks, and the following information about each IPv6 TCP control block.

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

To view the status of all valid IPv6 TCP 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 IPv6 TCP 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 in the display tcp ipv6 status command output.

Example

# Display the status of IPv6 TCP connections.

<sysname> display tcp ipv6 status
* - MD5 Authentication is enabled.
# - Keychain Authentication is enabled. 
TCP6CB   TID/SoID  Local Address        Foreign Address      State        VPNID
09bfb02c 48/2      ::->23               ::->0                Listening    23553
Table 1 Description of the display tcp ipv6 status command output

Item

Description

TCP6CB

Address of an IPv6 TCP control block (in hexadecimal numerals)

TID/SoID

Task ID and Socket ID

Local Address

IPv6 address and port number of the local end

Foreign Address

IPv6 address and port number of the remote end

State

Status of an IPv6 TCP connection:
  • Closed: indicates a disconnected state.

  • Listening: indicates that the connection is being monitored.

  • Syn_Sent: indicates that a SYN packet is sent.

  • Syn_Rcvd: indicates that a SYN packet is received.

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

  • Close_Wait: The user sends a FIN packet to the server to close the connection in the Established status. The server then sends an ACK packet to the user after receiving the FIN packet and changes to the Close_Wait status.

  • Fin_Wait1: The user changes to this status after sending an FIN packet to the server to close the connection.

  • Fin_Wait2: The user changes to this status after receiving an ACK packet that responds to the sent FIN packet.

  • Time_Wait: TCP enters this status after a connection is closed. When it keeps this status as two times long as the lifetime of the longest packets, the records about the closed connection are cleared.

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

  • LAST_ACK: indicates a waiting state for receiving a response message after sending the end message to the remote.

VPNID

VPN interface ID

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