IP CLI Commands
2/1553-ZAT 759 94 Uen B – December 2005
259
12.9
ip list connections
12.9.1 Syntax
ip list connections
12.9.2 Description
This command lists the active TCP/UDP connections in use by applications
running on the device. It displays the following:
•
Protocol type (TCP or UDP).
•
Location connection address.
•
Remote connection address.
•
Connection state for TCP connections.
•
Application that owns the connection.
This command also shows raw socket connections or UDP connections
opened internally within the IP stack.
•
A number in angled brackets in the Remote address column means that
the socket is bound to a specific interface (using the SO-BINDTODEVICE
socket option) with the specified IFIndex. The IFIndex is displayed by the
ip show debuginfo
command.
•
A number in square brackets in the Remote address column means that
the socket is bound to interfaces of a specific security class or classes
(using the SO_BINDTOSECCLASS socket option). The number displayed
is formed from the sum of permitted IFSecClass values. The IfSecClass is
displayed by the
ip show debuginfo
command.
12.9.3 Example
-->
ip list connections
Local TCP/UDP connections:
Prot | Local address | Remote address | State | Owner
------|-----------------|-------------------|-----------|-----------
tcp | *:8008 | *:* | LISTEN | webserver
tcp | *:53 | *:* | LISTEN | dnsrelay
tcp | *:21 | *:* | LISTEN | tpd
tcp | *:22 | *:* | LISTEN | sshd
tcp | *:23 | *:* | LISTEN | webserver
tcp | *:80 | *:* | LISTEN | webserver
udp | *:68 | *:* | | dhcpclient