Checking NAT Status
Problem
You want to see the current NAT information.
Solution
There are several useful EXEC commands for checking the status of NAT on a router. You can view the NAT translation table by using the following command:
Router#show ip nat translationYou can clear all or part of the NAT translation table by
specifying either a * or a
particular address. To clear a specific entry, you must specify either
the global address for a device that is inside, or a local address for
a device that is outside:
Router#clear ip nat translation *Router#clear ip nat translation insideRouter#172.18.3.2clear ip nat translation outside192.168.1.10
You will often want to look at NAT statistics, including information on which interfaces use NAT, how many entries are in the NAT table, how often they have been used, and, most importantly, how often packets have bypassed NAT. The command to see this is show ip nat statistics:
Router#show ip nat statisticsAnd you can clear these statistics as follows:
Router#clear ip nat statisticsDiscussion
The NAT translation table contains information about every
translation that the router is currently tracking. In this example,
you can see that there have been two connections between the interior
device 192.168.1.10 and the
exterior device 172.18.3.2. The
first of these connections is shown as ICMP:
Router#show ip nat translation Pro Inside global Inside local Outside local Outside global icmp 172.16.1.100:21776 192.168.1.10:21776 172.18.3.2:21776 172.18.3.2:21776 ...Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access