cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1181
Views
0
Helpful
3
Replies

NAT with dynamic routing

network_user
Level 1
Level 1

Hello,

Is there a way I can track interface status and use this tracking to do NAT for LAN subnet?

I have three WAN interfaces and only one of them is going to be active at any given time. I would like to NAT my LAN traffic to whichever  WAN interface is up at that time of the day. How can I acomplish this on a cisco router?

Thank you.

1 Accepted Solution

Accepted Solutions

Edwin Summers
Level 3
Level 3

Replying to "tag" this because I'm curious as well.

According to the Order of Operations (this may be out of date), NAT occurs after routing so I'd think  you could configure all interfaces for NAT and the router would handle the rest.  The traffic would only undergo NAT after it was routed to the egress interface.

Your question got me curious to do some research, and I found a good post indicating use of route-maps for multiple-exit NATs by marwanshawi here.

-Ed

View solution in original post

3 Replies 3

Edwin Summers
Level 3
Level 3

Replying to "tag" this because I'm curious as well.

According to the Order of Operations (this may be out of date), NAT occurs after routing so I'd think  you could configure all interfaces for NAT and the router would handle the rest.  The traffic would only undergo NAT after it was routed to the egress interface.

Your question got me curious to do some research, and I found a good post indicating use of route-maps for multiple-exit NATs by marwanshawi here.

-Ed

Hello Ed,

Thanks for providing the link to multiple-exit NAT. Seesm like this is what I needed, I was under the impression that "match interface" looks at the traffic sourec interface. But it actually looks at the next hop which is exactly what I wanted. I will doi some more testing with this config and see if there is anything else I need relating to this.

Thanks!!

Edwin Summers
Level 3
Level 3

Let me know if it works out. Not sure if I'll be able to lab it this week b/c of family commitments, and very curious to see the final working config.

Best of luck!
-Ed

Sent from Cisco Technical Support Android App

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card