• If you need to quickly free your global IP address for a dynamic configuration, configure a shorter timeout than the default timeout, by using the ip nat translation timeout command. However, the configured timeout should be longer than the other timeouts configured using commands specified in the following steps. • If a TCP session is not properly closed by a finish (FIN) packet from both sides or during a reset, change the default TCP timeout by using the ip nat translation tcp-timeout command. Procedure Configuring Network Address Translation Configuring Address Translation Timeouts Command or Action Purpose Step 1 enable Example: Switch> enable Enables privileged EXEC mode.
Enter your password if prompted. Step 2 configure terminal Example: Switch# configure terminal Enters global configuration mode. Step 3 ip nat translation seconds Example: Switch(config)# ip nat translation 300 (Optional) Changes the amount of time after which NAT translations time out. The default timeout is 24 hours, and it applies to the aging time for half-entries. Step 4 ip nat translation udp-timeout seconds Example: Switch(config)# ip nat translation udp-timeout 300 (Optional) Changes the UDP timeout value. Step 5 ip nat translation tcp-timeout seconds Example: Switch(config)# ip nat translation tcp-timeout 2500 (Optional) Changes the TCP timeout value. The default is 24 hours.
Step 6 ip nat translation finrst-timeout seconds Example: Switch(config)# ip nat translation finrst-timeout 45 (Optional) Changes the finish and reset timeout value. finrst-timeout—The aging time after a TCP session receives both finish-in (FIN-IN) and finish-out (FIN-OUT) requests or after the reset of a TCP session. Step 7 ip nat translation icmp-timeout seconds Example: Switch(config)# ip nat translation icmp-timeout 45 (Optional) Changes the ICMP timeout value. Configuring Network Address Translation 24