Figure 2: NAT Route Map Route maps may include multiple permit-deny clauses and the corresponding address match criteria is specified through ACLs. Route map evaluation will yield a permit or deny disposition based on which the translation decision is made. Unlike ACL-based NAT, route map-based NAT results in the creation of full flow-entries even when Address Only Translation (AOT) is enabled. This leads to relatively higher TCAM resource usage due to the programming of per-flow forward and reverse entries. To prevent this, enable the nat scale command which optimizes TCAM usage and improves the overall hardware scale.
Limitations of Route Map based Network Address Translation • Route map support is limited to inside translations only. You can only configure static NAT/PAT and dynamic NAT/PAT. Outside translations, static network translations and interface-based static translations are not supported. • Route map-based NAT supports only address-based match criteria. Next-Hop and interface-based match criteria are not supported. • The TCAM usage increases when there are overlapping ACEs in route maps. • In the case of static NAT, packets matching a deny clause get software switched if there is a subsequent permit clause within the same route map that allows the given packet.
• In the case of dynamic NAT, packets matching a deny ACL associated with a permit clause are hardware forwarded untranslated, even if there happens to be a subsequent permit clause that allows the given packet. • In the case of dynamic non-overload NAT, packets originating from the outside domain destined to inside global addresses are translated. • When you enable the nat scale command, the maximum number of route maps supported is four. • If you enable the nat scale command after configuring the translation rules, there will be no change in the scale numbers. Configure the nat scale command before setting the route map rules for effective TCAM optimization.
Configuring Network Address Translation Limitations of Route Map based Network Address Translation Configuring Network Address Translation 5