Dynamic Network Address Translation (NAT) creates entries in the table when a packet crosses from the inside NAT interface to the outside NAT interface, or the other way around. These entries have a default timeout value of 86400 seconds (24 hours), after which they are removed from the table if there is no activity for the duration of the timeout. Static NAT entries never time out and always remain in the table.
When using dynamic NAT, reducing the timeout value may be necessary when the duration of communication between the end-hosts is short, and a small pool of global addresses is used for translating a larger pool of local addresses. This allows the existing NAT entries to expire quickly so that the global addresses can be reused by the local addresses.
To modify the timeout value from the default, issue the ip nat translation timeout seconds | never command from the global configuration mode. If NAT overloading is configured with dynamic translation, you can modify the timeout values on a protocol basis.
Configuring translation timeouts
ip nat translation timeout <seconds>
Dynamic translations time out after a period of non-use. When port translation is not configured, translation entries time out after 24 hours. This time can be adjusted with the above command or the following variations:
ip nat translation udp-timeout <seconds>
ip nat translation dns-timeout <seconds>
ip nat translation tcp-timeout <seconds>
ip nat translation finrst-timeout <seconds>
When port translation is configured, there is finer control over translation entry timeouts, because each entry contains more context about the traffic using it. Non-DNS UDP translations time out after 5 minutes; DNS times out in 1 minute. TCP translations time out after 24 hours, unless a RST or FIN is seen on the stream, in which case it times out in 1 minute.
• Showing active translations
show ip nat translations [ verbose ]
• Showing translation statistics
show ip nat statistics
• Clearing dynamic translations
clear ip nat translation *
Clears all dynamic translations.
clear ip nat translation <global-ip>
Clears a simple translation.
clear ip nat translation <global-ip> <local-ip> <proto> <global-port> <local-port>
Clears a particular dynamic translation.
debug ip nat [ <list> ] [ detailed ]
Hi, doing a school project with Cisco Packet Tracer. For some odd reason, I am unable to ping my PT servers despite having implemented OSPF in my 3 routers. Only HQ and Branch can ping the HQ & Branch Servers and Internet User and ISP can ping Web Ser...
Now, I'm a sysadmin. I believe in DevOps, love to automate. I've been relying on Cisco for almost two decades for what I've seen as simple networking - and in the last 10 years that just probably means "predictable", or something I'm used to. It works. I'...
Hey Guys,going to Upgrade the IOS Version on a bunch of Cisco ME-3600X Switches soon.They haven't been upgraded in a while, so I just wanted to ask for some experience in the field.Will be going from 15.4(3)S2 to 15.6(2)SP8.The fact that two ima...
Hi, I have a Cisco ASR 9010 Router and I want to configure BGP BlackHole.I want to know about the syntax that is needed to be applied in order to do this, because I am having some issues regarding BH application in IOS XR.Lets say that I want to appl...