View TCP and UDP Information

Use this procedure to view TCP and UDP configuration information for IPv4.

Procedure

  1. Enter Privileged EXEC mode:

    enable

  2. View the IPv4 TCP connection information:

    show ip tcp connections

  3. View the IPv4 TCP connection information for a specific vrf or vrfids:

    show ip tcp connections vrf WORD<0–16>

    show ip tcp connections vrfids WORD<0–512>

  4. View IPv4 TCP properties:

    show ip tcp properties

  5. View IPv4 TCP statistics

    show ip tcp statistics

  6. View IPv4 udp endpoints

    show ip udp endpoints

  7. View IPv4 udp statistics

    show ip udp statistics

Example

Switch:1#show ip tcp connections

==========================================================================================
                           TCP connection table info
==========================================================================================
LOCALPORT    LOCALADDR            REMOTEPORT   REMOTEADDR           STATE           VRF ID
------------------------------------------------------------------------------------------
21           0.0.0.0              0            0.0.0.0              listen          0
22           0.0.0.0              0            0.0.0.0              listen          0
23           0.0.0.0              0            0.0.0.0              listen          0
80           0.0.0.0              0            0.0.0.0              listen          0
443          0.0.0.0              0            0.0.0.0              listen          0
23           192.0.2.146       52583        198.51.100.30        established     0

Switch:1#show ip tcp properties

show ip tcp global properties command:
------------------
RtoAlgorithm        constant
RtoMin              5002 milliseconds
RtoMax              60128 milliseconds
MaxConn             127
Switch:1#show ip tcp statistics
show ip tcp global statistics:
------------------
ActiveOpens:        0
PassiveOpens:       37
AttemptFails:       0
EstabResets:        34
CurrEstab:          1
InSegs:             6726
OutSegs:            7267
RetransSegs:        10
InErrs:             0
OutRsts:            10
Switch:1#show ip udp endpoints

=======================================================================================
                            UDP endpoint table info
=======================================================================================
---------------------------------------------------------------------------------------
LOCALPORT    LOCALADDRESS         REMOTEPORT   REMOTEADDRESS        PROCESS    INSTANCE
26           0.0.0.0 0            0.0.0.0 1          0
67           0.0.0.0 0            0.0.0.0 1          0
69           0.0.0.0 0            0.0.0.0 1          0
161          0.0.0.0 0            0.0.0.0 1          0
Switch:1#show ip udp statistics

 show ip udp info:
---------------------------------------------------------------------------------------
InDatagrams:        887
NoPorts:            0
InErrors:           0
OutDatagrams:       887
HCInDatagrams:      887
HCOutDatagrams:     887

Variable definitions

Use the data in the following table to use the show ip tcp command.

Variable

Value

connections

Specifies the TCP connection information.

Use the following parameters:

  • vrf WORD<0–16>

    Specifies a virtual routing and forwarding (VRF) by name.

  • vrfids WORD<0–512>

    Specifies the IDs of a VRF path as an integer from 1 to 512.

Example: show ip tcp connections vrf 0

properties

Specifies the TCP global properties information.

statistics

Specifies the TCP global statistics.

Use the data in the following table to use the show ip udp command.

Variable

Value

endpoints

Specifies the IP UDP endpoint information.

statistics

Specifies IP UDP statistics information.