Best Practices for NAT Configuration • In cases where both static and dynamic rules are configured, ensure that the local addresses specified in the rules do not overlap. If such an overlap is possible, then the ACL associated with the dynamic rule should exclude the corresponding addresses used by the static rule. Similarly, there must not be any overlap between the global addresses as this could lead to undesired behavior. • Do not employ loose filtering such as permit ip any any in an ACL associated with NAT rule as this could result in unwanted packets being translated. • Do not share an address pool across multiple NAT rules.
• Do not define the same inside global address in Static NAT and Dynamic Pool. This action can lead to undesirable results. • Exercise caution while modifying the default timeout values associated with NAT. Small timeout values could result in high CPU usage. • Exercise caution while manually clearing the translation entries as this could result in the disruption of application sessions. • Follow these steps before you make NAT configuration changes during active translations. • Stop the ingress and egress of traffic matching the given configuration. This may require applying an appropriate ACL filter or shutting down the given interfaces.
• Clear any existing translation entries that correspond to the given configuration. • Make the desired configuration change and re-enable the stopped traffic. Configuring Network Address Translation The tasks described in this section will help you configure NAT. Based on the desired configuration, you may need to configure more than one task. Configuring Static Translation of Inside Source Addresses Configure static translation of inside source address to allow one-to-one mapping between an inside local address and an inside global address. Static translation is useful when a host on the inside must be accessible by a fixed address from the outside.
Procedure Configuring Network Address Translation Best Practices for NAT Configuration Command or Action Purpose Step 1 enable Example: Switch> enable Enables privileged EXEC mode. Enter your password if prompted. Configuring Network Address Translation 13