03-07-2006 10:59 AM - edited 03-03-2019 11:58 AM
Hi
Is it possible to NAT an internal private ip according to its' destination differently in PIX and/or router?
Example
10.0.0.1 ==Internal IP
if destination is A
then NAT to 155.55.55.55
if destionation is B
then NAT to 166.66.66.66
etc.
Thanks in advance
Deniz
03-07-2006 11:24 AM
In case you want to NAT the inside address 10.0.0.1 to two different addresses, 155.55.55.55 and 166.66.66.66, depending on wheter it communicates with host A or host B. This is what I would try on a router:
interface Loopback55
ip address 155.55.55.55 255.255.255.255
!
interface Loopback66
ip address 166.66.66.66 255.255.255.255
!
interface Ethernet0
ip nat inside
!
interface Ethernet1
ip nat outside
!
ip nat inside source route-map A interface Loopback55
ip nat inside source route-map B interface Loopback66
!
access-list 155 permit ip host 10.0.0.1
access-list 166 permit ip host 10.0.0.1
!
route-map A permit 10
match ip address 155
!
route-map B permit 10
match ip address 166
I'm not 100% sure if it works, but maybe you could test it.
03-08-2006 03:03 AM
Good configuration. I will try it 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