cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3275
Views
6
Helpful
16
Replies

Cisco ASA NAT Pool/PAT

johnlloyd_13
Level 9
Level 9

hi,

i have 2 private IP that would need to configure to a NAT pool of /29 public IP.

can someone confirm if below config is correct?

do i need to add the "flat" keyword to "PAT" using 1024-65535 dynamic ephemeral ports or this is automatic?

will both private IP range "exhaust" all PAT ports on the first IP 200.1.1.1 before going to the next IP 200.1.1.2 and so on?

object network OBJ-PUBLIC-IP-POOL
range 200.1.1.1 200.1.1.6

object network OBJ-10.0.0.16-29
subnet 10.0.0.16 255.255.255.248
nat (inside,outside) source dynamic OBJ-PUBLIC-IP-POOL

object network OBJ-10.2.0.0-16
subnet 10.2.0.0 255.255.0.0
nat (inside,outside) source dynamic OBJ-PUBLIC-IP-POOL

 

16 Replies 16

For flat'

If for example there are more than 1000 hosts connect to Inside and all hosts use same known l4 port then using non-flat  can exhaust NAT' so solution only for this case use flat NAT.

I see note in cisco doc. Before I will share it here
Screenshot (107).png

MHM

can someone confirm if below config is correct?

The syntax is not correct, when you use the source keyword you need both the real and NATed objects defined in the NAT statement.  The way you have it configured now will place the statement into manual NAT / Section 1. Dynamic NAT/PAT statements should be placed in Auto NAT / Object NAT or after-auto NAT.

object network OBJ-PUBLIC-IP-POOL
range 200.1.1.1 200.1.1.6

object network OBJ-10.0.0.16-29
subnet 10.0.0.16 255.255.255.248
nat (inside,outside) after-auto source dynamic OBJ-10.0.0.16-29 OBJ-PUBLIC-IP-POOL

object network OBJ-10.2.0.0-16
subnet 10.2.0.0 255.255.0.0
nat (inside,outside) after-auto source dynamic OBJ-10.2.0.0-16 OBJ-PUBLIC-IP-POOL

do i need to add the "flat" keyword to "PAT" using 1024-65535 dynamic ephemeral ports or this is automatic?

I have never had to use the "flat" keyword, and have had this setup in some large companies without any issues.  So, I would say you do not need it.

will both private IP range "exhaust" all PAT ports on the first IP 200.1.1.1 before going to the next IP 200.1.1.2 and so on?

Unless you configure round-robin, all ports for the first public IP will be exhausted before moving on to the next IP in the range.

 

--
Please remember to select a correct answer and rate helpful posts
Review Cisco Networking for a $25 gift card