cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
824
Views
20
Helpful
2
Replies

VRF TO VRF NAT overload

shivani.sharma
Level 1
Level 1

I have a customer VRF and an Internet VRF on my router. I need to route some traffic from customer VRF to internet and in order to do this I will have to nat the customer vrf traffic going to internet to "Internet" vrf and do a NAT overload. Is this possible? If yes, does anyone has a working configuration lines for this setup? I looked and all I see is VRF to GLOBAL nat configurations. Please share if anyone knows how to achieve vrf to vrf NAT overload. Thanks!

2 Replies 2

Hello

Add a default to the lan vrf and enable domainless nat  (no inside/outside) and as domainless nat performs a route lookup before and after translation it should work -review example below:

 

example
ip vrf net
ip vrf lan

int gig0/1
description lan facing
ip vrf forwarding lan
192.168.1.1 255.255.255.0
ip nat enable

 

int gig0/0
description net facing
ip vrf forwarding net
1.1.1.1 255.255.255.252
ip nat enable

 

access-list 1 permit 192.168.1.0 0.0.0.255

ip nat source list 1 interface gig0/0 1.1.1.2
ip route vrf lan 0.0.0.0 0.0.0.0 gig 0/0 1.1.1.2


sh ip nat nvi translations vrf lan


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking for a $25 gift card