Configuring Address Translation Timeouts You can configure address translation timeouts based on your NAT configuration. By default, dynamically created translation entries time-out after a period of inactivity to enable the efficient use of various resources. You can change the default values on timeouts, if necessary. The following are the default time-out configurations associated with major translation types : • Established TCP sessions: 24 hours • UDP flow: 5 minutes • ICMP flow: 1 minute The default timeout values are adequate to address the timeout requirements in most of the deployment scenarios. However, these values can be adjusted/fine-tuned as appropriate.
It is recommended not to configure very small timeout values (less than 60 seconds) as it could result in high CPU usage. Refer the Best Practices for NAT Configuration, on page 13 section for more information. Based on your configuration, you can change the timeouts described in this section. Configuring Network Address Translation Configuring Address Translation Timeouts Command or Action Purpose Switch(config-if)# ip address 10.114.11.39 255.255.255.0 Step 7 ip nat inside Example: Switch(config-if)# ip nat inside Marks the interface as connected to the inside. Step 8 exit Example: Switch(config-if)# exit Exits interface configuration mode and returns to global configuration mode.
Step 9 interface type number Example: Switch(config)# interface ethernet 0 Specifies a different interface and enters interface configuration mode. Step 10 ip address ip-address mask Example: Switch(config-if)# ip address 172.16.232.182 255.255.255.240 Sets a primary IP address for an interface. Step 11 ip nat outside Example: Switch(config-if)# ip nat outside Marks the interface as connected to the outside. Step 12 end Example: Switch(config-if)# end Exits interface configuration mode and returns to privileged EXEC mode. Configuring Network Address Translation 23