NAT vrf-aware

In a network topology that uses NAT, VPNs, as well as VRFs, if you have two hosts connected to two different VPNs with the same IP addresses, in order for them to communicate, the vrf keyword and a VRF name must be used in the ip nat command like so:

Device(config)# ip nat inside source list 1 interface ethernet 0 vrf vrf1 overload

NAT by default is VRF-aware. In order to extend this VRF-awareness for intra-VPN NAT, use the match-in-vrf keyword.

Links:

https://www.cisco.com/c/en/us/td/docs/routers/sdwan/command/iosxe/qualified-cli-command-reference-guide/m-NAT-commands.html#GUID-760551B7-59C5-4F58-AAD1-9F76F92133AB

https://forum.networklessons.com/t/nat-with-two-outside-interfaces/1022/23?u=lagapides

Links to this page: