12-05-2012 04:01 AM - edited 03-04-2019 06:19 PM
If I setup say 5 NAT POOLs on a router is it possible to use each pool depending on the destination of the traffic?
So for example:
ip nat pool natpool1 8.8.8.8 8.8.8.8 netmask 255.255.255.252
ip nat pool natpool2 9.9.9.9 9.9.9.9 netmask 255.255.255.252
ip nat pool natpool3 7.7.77 7.7.7.7 netmask 255.255.255.252
ip nat pool natpool4 6.6.6.6 6.6.6.6 netmask 255.255.255.252
ip nat pool natpool5 5.5.5.5 5.5.5.5 netmask 255.255.255.252
So if I wanted to go to a website www.cisco.com it would NAT out of natpool1 but if instead I wanted to go to www.google.com it would use natpool2 and so on?
Can anyone advise how this would be achieved?
Thanks
Andrew
Solved! Go to Solution.
12-05-2012 04:34 AM
Hi,
you must creat an extended access-list for that , for example, let's say cisco IP is 200.200.200.200 and google IP is 201.201.201.201
you'll have:
access-list 101 permit ip any host 200.200.200.200
access-list 102 permit ip any host 201.201.201.201
ip nat inside source list 101 pool natpool1 overload
ip nat inside source list 102 pool natpool1 overload
and so on
12-05-2012 04:34 AM
Hi,
you must creat an extended access-list for that , for example, let's say cisco IP is 200.200.200.200 and google IP is 201.201.201.201
you'll have:
access-list 101 permit ip any host 200.200.200.200
access-list 102 permit ip any host 201.201.201.201
ip nat inside source list 101 pool natpool1 overload
ip nat inside source list 102 pool natpool1 overload
and so on
12-05-2012 04:56 AM
Excellent thanks
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide