cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1922
Views
0
Helpful
1
Replies

NAT to specific destination only

tim-griffin
Level 1
Level 1

Has anyone ever set up a router to use NAT when routing to a specific destination, but to not use NAT for other traffic out the same interface?

1 Reply 1

MickPhelps
Level 1
Level 1

Yes. You need to use extended access-lists in conjunction with route-maps.

route-map nat-map permit 10

match ip list 100

!

access-list 100 permit ip any 125.10.1.0 0.0.0.255

!

ip nat pool nat-pool 72.10.1.1 72.10.1.100 prefix 24

ip nat inside source route-map nat-map pool nat-pool

I'm doing this off the top of my head so please excuse errors, but this is the basic idea. Anytime someone on your network tries to get to 125.10.1.0/24, they will be NATed to 72.10.1.1-100.

Corrections?

Mick.

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: