Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

NAT to specific destination only

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
New Member

Re: NAT to specific destination only

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.

798
Views
0
Helpful
1
Replies