cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
616
Views
0
Helpful
2
Replies

Nat out of seperate public IP's depending on destination?

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

1 Accepted Solution

Accepted Solutions

Tauer Drumond
Level 1
Level 1

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

View solution in original post

2 Replies 2

Tauer Drumond
Level 1
Level 1

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

Excellent thanks

Review Cisco Networking for a $25 gift card