09-08-2011 04:17 PM - edited 03-11-2019 02:22 PM
Hi there,
I have a question on Nat. All my inside hosts currently are natted to the pix outside interface. Now I would like to nat two inside ip addresses to one different global address. How should I configure this.
Tks
Solved! Go to Solution.
09-08-2011 10:24 PM
The general NAT statement that you already have does not matter.
It will look for the more specific NAT and match it on that specific one. So the preference is based on the more specific subnet/host, not base on the NAT ID.
09-08-2011 06:30 PM
You can use static NAT to NAT an inside IP to a different global address.
Eg:
Inside host: 10.1.1.1, global address: 200.1.1.1:
static (inside,outside) 200.1.1.1 10.1.1.1 netmask 255.255.255.255
If you have a different inside host, for eg: 10.1.1.2, to be NATed to global address: 200.1.1.2:
static (inside,outside) 200.1.1.2 10.1.1.2 netmask 255.255.255.255
Hope this helps.
09-08-2011 06:35 PM
Hi Jennifer,
Thanks for the reply.
In my case I want two internal hosts to be natted to one global ip address. (Rest of the hosts on the inside are getting natted via the pix outside interface). Is there a way to achieve this?
I tried static but the pix is not accepting the command.
Tks
09-08-2011 06:36 PM
what I mean about static is static with one global ip address and two local addresses. Tks
09-08-2011 06:40 PM
You can't NAT 2 different internal hosts to 1 global IP with static NAT.
Is this going to be used for both inbound and outbound traffic? or just outbound traffic?
09-08-2011 07:40 PM
Hi Jennifer,
Is there a option available to do both? If not please let me know how to configure this for only outbound traffic.
Thank you very much for the help Jennifer.
09-08-2011 07:49 PM
If you need both, the answer is NO, not supported.
If you only need outbound, then you can configure the following:
nat (inside) 5 10.1.1.1 255.255.255.255
nat (inside) 5 10.1.1.2 255.255.255.255
global (outside) 5 200.1.1.1
09-08-2011 09:16 PM
Hi Jennifer,
Thanks for the above. In my case all the inside hosts are already natted using
nat (inside) 1 0.0.0.0 0.0.0.0
Can I still use the above commands for the hosts which are already natted. I mean for example 10.1.1.1 and 10.1.1.2 is
already natted by the above command 0.0.0.0 0.0.0.0
Also if I do the this, will nat with ID 1 or nat with ID 5 will take preference ?
Tks
09-08-2011 10:24 PM
The general NAT statement that you already have does not matter.
It will look for the more specific NAT and match it on that specific one. So the preference is based on the more specific subnet/host, not base on the NAT ID.
09-09-2011 12:52 AM
Hi jennifer ,
can we use object group to bundle list of private ip.
09-09-2011 01:01 AM
yes, you can, with access-list.
object-group network servers-group
network-object host 10.1.1.1
network-object host 10.1.1.2
access-list nat-servers permit ip object-group servers-group any
nat (inside) 5 access-list nat-servers
global (outside) 5 200.1.1.1
09-09-2011 01:22 AM
Hi Jen,
Thank you very much for your help. Really appreciate it. Tks again for clearing up things.
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