show ip tcp vrf

Displays information on TCP connections for specified IPv4 VRFs
Syntax
show ip tcp vrf { name connections } [ ip-address ]
Parameters
{ name connections }
Specifies VRF for which information is displayed.
[ ip-address ]
Displays information for the specified IP address of the remote device.
Modes

User EXEC mode

Privileged EXEC mode

Global Configuration mode

The show ip tcp vrf command displays the following information:

Output field Description
Local IP address:port The IPv4 address and port number of the local router interface over which the TCP connection occurs.
Remote IP address:port The IPv4 address and port number of the remote router interface over which the TCP connection occurs.
TCP state The state of the TCP connection. Possible states include the following:
  • LISTEN - Waiting for a connection request.
  • SYN-SENT - Waiting for a matching connection request after having sent a connection request.
  • SYN-RECEIVED - Waiting for a confirming connection request acknowledgment after having both received and sent a connection request.
  • ESTABLISHED - Data can be sent and received over the connection. This is the normal operational state of the connection.
  • FIN-WAIT-1 - Waiting for a connection termination request from the remote TCP, or an acknowledgment of the connection termination request previously sent.
  • FIN-WAIT-2 - Waiting for a connection termination request from the remote TCP.
  • CLOSE-WAIT - Waiting for a connection termination request from the local user.
  • CLOSING - Waiting for a connection termination request acknowledgment from the remote TCP.
  • LAST-ACK - Waiting for an acknowledgment of the connection termination request previously sent to the remote TCP (which includes an acknowledgment of its connection termination request).
  • TIME-WAIT - Waiting for enough time to pass to be sure the remote TCP received the acknowledgment of its connection termination request.
  • CLOSED - There is no connection state.
Examples

The following example displays information on IPv4 connections for the VRF named green.

device# show ip tcp vrf green connections
Total 7 TCP connections
   LISTEN: 5; SYN-SENT: 0; SYN-RECEIVED 0; ESTABLISHED: 1; FIN-WAIT-1: 0
   FIN-WAIT-2: 0; CLOSE-WAIT: 0; LAST-ACK 0; CLOSING: 0; TIME-WAIT: 1
Local IP address:port <-> Remote IP address:port TCP state    RcvQue  RxBuffe SendQue TxBuffe
0.0.0.0          22        0.0.0.0          0      LISTEN       0       0       0       0
0.0.0.0          443       0.0.0.0          0      LISTEN       0       0       0       0
0.0.0.0          448       0.0.0.0          0      LISTEN       0       0       0       0
0.0.0.0          8081      0.0.0.0          0      LISTEN       0       0       0       0
0.0.0.0          8444      0.0.0.0          0      LISTEN       0       0       0       0
30.10.10.10      23        30.10.10.20      7115   TIME-WAIT    0       0       0       0
30.10.10.10      23        30.10.10.20      7118   ESTABLISHED  0       0       0       0

The following example displays information for VRF "green" connections through IP address 30.10.10.20.

device# show ip tcp vrf green connections 30.10.10.20
Total 1 TCP connections
   LISTEN: 0; SYN-SENT: 0; SYN-RECEIVED 0; ESTABLISHED: 1; FIN-WAIT-1: 0
   FIN-WAIT-2: 0; CLOSE-WAIT: 0; LAST-ACK 0; CLOSING: 0; TIME-WAIT: 0
Local IP address:port <-> Remote IP address:port TCP state    RcvQue  RxBuffe SendQue TxBuffe
30.10.10.10      23        30.10.10.20      7118   ESTABLISHED  0       0       0       0
History
Release version Command history
09.0.00 This command was introduced.