cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1279
Views
5
Helpful
11
Replies

Reg: Pix Nat Question

kuldeep.kaur
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

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.

View solution in original post

11 Replies 11

Jennifer Halim
Cisco Employee
Cisco Employee

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.

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

what I mean about static is static with one global ip address and two local addresses. Tks

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?

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.

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

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

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.

Hi jennifer ,

can we use object group to bundle list of private ip.

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


Hi Jen,

Thank you very much for your help. Really appreciate it. Tks again for clearing up things.

Review Cisco Networking for a $25 gift card