08-23-2023 12:55 AM - edited 08-23-2023 12:58 AM
Hello Guys,
Does anyone tried to make conditional NAT between different VRFs and is it even supported in IOS ?
08-23-2023 01:52 AM
conditional NAT between different VRFs
Can you give some example of your use case
as per i know NAT supported in VRF in IOS latest code as i know.
08-23-2023 02:35 AM
if source address is 192.168.1.1 and the destination is 172.16.1.1 then NAT 192.168.1.1 to 10.1.1.1
08-23-2023 02:56 AM
You can do that NAT in normal right - or am i missing anything here ?
08-23-2023 03:23 AM
I think vrfs change the picture, and NVI must be involved but I don't see many docs and config guides.
08-23-2023 08:46 AM
So far as I remember, regular NAT should do: "ip nat inside source list 100 interface g0/1 vrf RED overload". RED VRF will be placed into translation entry. Responses will be accepted in any VRF, including VRF BLUE, traffic UNNATed and sent to VRF RED. This should work identically in IOS and IOS-XE. Need to be tested though. (I could never understand why docs and Cisco NAT FAQ says that NAT NVI is required to NAT between different VRFs).
If you NAT to a pool borrowed from connected subnet, you may need to add "match-in-vrf" option, otherwise GARP entry is programmed in global VRF.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide