Displaying Translation Entries
The show ip nat translations command displays current translations that reside in the translation table.
Simple translation entries appear with inside/outside and local/global address information. Extended entries appear with added protocol and port numbers (or query ID).
Using verbose mode additionally provides the time since creation and time since last use for each translation entry.
show ip nat translations
- Prot—Protocol (TCP, UDP, ICMP, or GRE) for this translation entry; this field appears only for extended table entries
- Inside local—Inside local IP address for this translation entry; this field also provides the port number, separated by a colon ( : ) for extended entries
- Inside global—Inside global IP address for this translation entry; this field also provides the port number, separated by a colon ( : ) for extended entries
- Outside global—Outside global IP address for this translation entry; this field also provides the port number, separated by a colon ( : ) for extended entries
- Outside local—Outside local IP address for this translation entry; this field also provides the port number, separated by a colon ( : ) for extended entries
- Time since creation—Amount of time elapsed since the translation entry appeared in the translation table (hh:mm:ss format)
- Time since last use—Amount of time elapsed since the translation entry was used (hh:mm:ss format)
host1#show ip nat translationsProt Inside local Inside global Outside global Outside local---- --------------- --------------- -------------- ----------------GRE 13.1.2.1:* 20.0.0.1:* --- ---ICMP 13.1.2.2:4 20.0.0.2:4 --- ---TCP 13.1.2.3:20 20.0.0.3:50 --- ---
NOTE: Because they are not NAPT translations, port numbers for GRE translations appear as asterisks (*).
host1#show ip nat translations verboseTime TimeInside Outside Outside since sinceProt Inside local global global local creation last use---- ------------ ----------- ----------- ----------- ------------ --------------- 20.0.0.3 30.0.0.3 --- --- 00:04:50 00:00:01--- 21.0.0.3 30.208.0.3 --- --- 00:02:12 00:00:01--- 21.0.0.4 30.208.0.4 --- --- 00:02:12 00:00:01--- --- --- 50.0.0.3 70.0.0.3 00:03:24 Never--- --- --- 51.0.0.3 70.208.0.3 00:01:44 00:00:01--- --- --- 51.0.0.4 70.208.0.4 00:01:44 00:00:01UDP --- --- 50.50.0.3:8 70.50.0.3:8 00:03:10 Never7 108UDP 22.0.0.4:63 30.224.0.3: --- --- 00:02:12 00:00:014097UDP 22.0.0.3:63 30.224.0.3: --- --- 00:02:12 00:00:014096TCP --- --- 50.50.0.3:8 70.50.0.3:8 00:03:10 Never0 008UDP 20.50.0.3:87 30.50.0.3:8 --- --- 00:03:35 Never108