○
○
○
○
○
A- Commonly Used Commands
A-24
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
A.4.6
sessions
Syntax:
nat sessions <i/f> [all | summary]
Description:
The
nat sessions
command displays a list of currently active NAT sessions on the
interface
<i/f>
. In this context, a session is a pair of source IP addresses and port
numbers (and corresponding new port number) that NAT regards as one side of an
active connection. For each TCP or UDP session active, the source and destination
IP address and port number, and the local port number and the age of the session,
are printed.
The
all
option causes the
sessions
command to print out information on every
session, including sessions which have timed out. Normally the
sessions
command
only shows active sessions (those which have not timed out).
The
summary
command does not show detailed information on each session, but only
prints out the total number of active, timed out and available sessions.
Example:
> nat sessions ppp
Proto Age
NAT port
Private address/port
Public address/port
TCP
34
1024
192.168.219.38/3562
194.129.50.6/21
TCP
10
1025
192.168.219.64/2135
185.45.30.30/80
Total:
2 sessions active
101 sessions timed out
126 sessions available