The following example displays the current IPv4 TCP port status.
Ruijie#sh tcp port
tcp port status:
Tcpv4 listen on 2650 have connections:
TCB Foreign Address Port State
Tcpv4 listen on 2650 have total 0 connections.
Tcpv4 listen on 23 have connections:
TCB Foreign Address Port State
c340800 1.1.1.2 64571 ESTABLISHED
Tcpv4 listen on 23 have total 1 connections.
Tcpv6 listen on 23 have connections:
TCB Foreign Address Port State
c429980 3000::2 64572 ESTABLISHED
Tcpv6 listen on 23 have total 1 connections.
Status of the current TCP connection. There are eleven possible
states:
CLOSED: The connection has been closed.
LISTEN: Listening state
SYNSENT: In the three-way handshake phase when the SYN
packet has been sent.
SYNRCVD: In the three-way handshake phase when the SYN
packet has been received.