cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
249
Views
10
Helpful
2
Replies

NAT in router with access-list

bapatsubodh
Level 1
Level 1

Hi,

Is it possible to do NATing in router depending upon the destination address in Packets. ( that is with help of access lists ). In short if destination address in packet is "A" then is should be NATed with ip pool "A". and then forwarded to corresponding to outbound interface.

In short Destination is "A" then ip pool is "POOL__A",

if Destination is "B" then ip pool

is "POOL__B".

Similar link or examle on cisco.com highly appreciable.

Thanx.

2 Replies 2

Here's an example:

ip nat pool POOL__A 10.0.0.0 10.0.0.255 netmask 255.255.255.0

ip nat pool POOL__B 10.1.0.0 10.1.0.255 netmask 255.255.255.0

ip nat inside source route-map ToA pool POOL__A

ip nat inside source route-map ToB pool POOL__B

!

access-list 101 permit ip any

access-list 102 permit ip any

!

route-map ToA permit 10

match ip address 101

!

route-map ToB permit 10

match ip address 102

!

Hope that helps - pls rate the post if it does.

Paresh

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