cisco Catalyst 9300 Series Switch — Route Map-based Network Address Translation

You can enable NAT on Layer 3 Multi-chassis EtherChannel (MEC) using the interface port-channel command. Note VRF-Aware Network Address Translation NAT is typically configured to operate across the default or global routing domain. As per this feature, the inside and outside NAT domains are associated with the default VRF space and the translations are effected accordingly. However, there are certain scenarios where NAT is required to operate in a VRF setting. One common scenario involves enabling shared service access for private networks that have overlapping address space.

In such cases, the given private networks can be placed in different VRFs and global service access can be achieved by configuring VRF-aware NAT rules that map overlapping private address to unique global address. VRF-awareness enables NAT to carry out address and port translation by taking the VRF of the private networks into consideration. VRF-aware NAT supports only VRF to Global translation of IP addresses. VRF to Global translation is between a NAT inside interface that is associated with a specific VRF and a NAT outside interface that is associated with the global VRF.

Intra-VRF NAT translation (which involves the NAT-inside and NAT-outside interfaces of the same specific VRF) and Inter-VRF NAT translation (which involves NAT-inside and NAT-outside interfaces that are associated with different VRFs) are not supported. NAT behavior is undefined in such unsupported scenarios. We recommend that you deploy only the VRF to Global NAT translation in your network. Route Map-based Network Address Translation Route maps are similar to access control lists (ACLs) and allow users to define a set of match-criteria with associated actions. Route maps are more versatile and have additional capabilities that can address certain use cases that cannot be handled by ACLs.

Route maps are widely used by various applications such as policy-based routing (PBR) and route-redistribution etc. For more information about route maps, see the “Route Maps to Redistribute Routing Information” section in the Cisco IOS XE IP Routing Configuration Guide . In the context of NAT, route maps are used to carry out destination-based translations, where the same local addresses are translated to different global addresses based on the flow destination. Route map-based static and dynamic translations are supported, and the same route map can be associated with multiple rules as illustrated in the figure below.

Configuring Network Address Translation VRF-Aware Network Address Translation Configuring Network Address Translation 4