
LBI-39040 COMMANDS AND SYNTAX
68
EXAMPLES:
pSH+> route -s
Destination: Next hop: IF: Type: Subnet Mask:
127.0.0.1 127.0.0.1 7 DIRECT 0xFF000000
147.117.32.0 147.117.37.240 1 DIRECT 0xFFFFF000
pSH+> route add host 147.117.1.2 147.117.37.245
pSH+> route add net 147.100.0 147.117.32.2
pSH+> route -s
Destination: Next hop: IF: Type: Subnet Mask:
127.0.0.1 127.0.0.1 7 DIRECT 0xFF000000
147.117.32.0 147.117.37.240 1 DIRECT 0xFFFFF000
147.117.1.2 147.117.37.245 1 INDIRECT 0xFFFFF000
147.100.0.0 147.117.32.2 1 INDIRECT 0xFFFFF000
6.4.4. tcpcon
tcpcon -- examines the TCP connection table
USAGE:
tcpcon -alrhH [-i ip_addr] [-p port_num] [-c conn_state]
DESCRIPTION:
tcpcon allows the user to examine the current TCP connection table entries. Several options are available which allow
the table to be searched for only particular parameters of interest. In addition, the table search can be specified for either the
local or remote (network) side of a connection. In the absence of other qualifiers, the default is to search both sides of a
connection for any parameter specification(s).
Note that TCP connections are transient in nature. Table entries are present only as long as the connection in question
exits. Also, recall that TCP implements a pseudo three-way handshaking to communicate over and shut down a connection.
This is mentioned since the TCP connection table may appear quite dynamic in nature.
OPTIONS:
• a Examines all current TCP connection table entries. Overrides any other options.
• l Searches the local connection side for a specific IP address (-i) and/or TCP port number (-p).
• r Searches the remote connection side for a specific IP address (-i) and/or TCP port number (-p).
• h Provides help. Supplies a brief syntax and options explanation.
• H Provides extended help. Furnishes a list of connection state values which may be used with -c.
• i Searches for connection(s) involving the IP address specified by ip_addr.
• p Searches for connection(s) involving the TCP port number specified by port_num.
• c Searches for connections(s) which are currently in the state specified by conn_state.
conn_state is a decimal value representing a specific TCP connection state. The possible values of conn_state are
provided below. The intricacies of TCP connection state transitions are beyond the scope of this document. The explanations
given are limited for the sake of brevity.
• 1 Closed. A Transmission Control Block (TCB) has been allocated, but is not currently in use.
• 2 Listen. A server daemon associated with the local port is awaiting connection(s) from clients.
• 3 Sync sent. A sync has been sent, and the connection side is awaiting acknowledgment.
• 4 Sync received. A sync has been received, or a sync has been sent without receiving an acknowledgment.
• 5 Established. Both sides are ready to exchange data and acknowledgments.
• 6 Final wait 1. One side of the connection has requested to close it , and is waiting for a response.
Comentários a estes Manuais