This is the documentation for the 21.07 version. Looking for the documentation of the latest version? Have a look here.

NAT Status

TNSR offers several ways to view the active NAT configuration, rules, and sessions. These start with nat show, and are all available in config and master mode.

View NAT Configuration

To view the current NAT configuration parameters (not rules), use show nat config:

tnsr# show nat config

NAT Configuration Parameters
endpoint-dependent true
translation hash buckets 16384
translation hash memory 12189696
deterministic true
user hash buckets 1024
user hash memory 761856
max translations per user 10240
max translations per thread 10240
max users per thread 1024
outside Route Table ipv4-VRF:0
inside Route Table ipv4-VRF:0
dynamic mapping enabled
forwarding is enabled
out2in-dpo is disabled
UDP timeout 300s
TCP established connections timeout 7440s
TCP transitory connections timeout 240s
ICMP timeout 60s

View Static Mappings

To view currently configured static NAT mappings, use show nat static-mappings:

tnsr# show nat static-mappings

Static Mappings

Proto Local IP   Port External IP Port Interface Twice NAT Out to In Route Table
----- ---------- ---- ----------- ---- --------- --------- --------- -----------
  tcp     22  222                                ipv4-VRF:0

View Deterministic Mappings

To view currently configured deterministic NAT mappings, use show nat deterministic-mappings:

tnsr# show nat deterministic-mappings
Deterministic Mappings

Inside        Outside              Ratio     Ports  Sessions
------------- ---------------- --------- --------- ---------      1024        63         0

View Dynamic Configuration

To view the IP addresses or interfaces currently assigned for use by NAT, use show nat dynamic addresses or show nat dynamic interfaces, depending on the TNSR NAT configuration:

tnsr# show nat dynamic addresses

Pool Addresses  Route Table     Twice NAT
--------------  -----------     ---------

View Interfaces

To view the interfaces which are currently marked as inside and outside for NAT purposes, use show nat interface-sides:

tnsr# show nat interface-sides

Interfaces              Side
---------------------   -------
GigabitEthernet0/14/0   outside
GigabitEthernet3/0/0    inside

View NAT Sessions

To view a summary of outgoing NAT sessions by source address, use show nat sessions:

tnsr# show nat sessions

NAT sessions

IP address      Static Dynamic Route Table
-------------- ------- ------- -----------             0       4  ipv4-VRF:0          0       1  ipv4-VRF:0

To see more detail for each specific session, add verbose to the previous command, which becomes show nat sessions verbose:

tnsr# show nat sessions verbose

NAT sessions detail

Proto Inside/Outside/Ext    Type    Route Table Last used Bytes/pkts
----- --------------------- ------- ----------- --------- ----------
  udp          dynamic  ipv4-VRF:0       143        498                                            6
  udp          dynamic  ipv4-VRF:0       143        498                                            6
  udp          dynamic  ipv4-VRF:0       145        498                                            6
  udp          dynamic  ipv4-VRF:0       207        498                                            6