12-22-2022 12:41 AM
hi every one ,
i want to configure NAT over load
i have one public ip address 37.x.x.x
and pool of private ip addresses 70.70.x.x
when i configure natting by typing
nat (inside,outside) soure (static or dynamic) ,
there is no PAT configuration , because i want every private IPs share one public ip.
12-22-2022 12:50 AM
nat (inside,outside) source dynamic any interface <<<- I use this for NAT overload
12-22-2022 03:49 AM - edited 12-22-2022 04:26 AM
Hello @MHM Cisco World
FYI
nat (inside,outside) source dynamic any interface = Section 1
nat (inside,outside) after-auto source dynamic any interface = Section 3
12-22-2022 03:51 AM
both are NAT overload
after-auto just change the orde of NAT not change the NAT type.
12-22-2022 04:32 AM
Hello
What im trying to allude to is you wouldn't want dynamic PAT (overload) to be in section 1, its a catch all statement as such if you need to append additional statements then you would have to re-order the NAT to accommodate , so would say its recommended to use section 3.
12-22-2022 01:12 AM
Hello,
post the full running configuration (sh run) of your ASA.
12-22-2022 04:09 AM
thanks for replying
interface GigabitEthernet0/0
nameif outside
security-level 0
ip address 37.X.X.194 255.255.255.248
interface GigabitEthernet0/1
nameif inside
security-level 100
ip address 70.70.2.1 255.255.255.0
interface GigabitEthernet0/1
nameif inside
security-level 100
ip address 70.70.3.1 255.255.255.0
object network public_LAN1
host 37.X.X.195
object network public_LAN2
host 37.X.X.196
object-group network private_LAN1
network-object 70.70.2.0 255.255.255.0
object-group network private_LAN2
network-object 70.70.3.0 255.255.255.0
(just missing the NAT/PAT command)
12-22-2022 03:30 AM
Hello
ASA NAT/PAT you can apply it two ways:
Manual NAT (globally) or Auto NAT (under an object)
It also has 3 sections (Default 1)
Manual NAT can be set in Section 1 or 3 (after auto)
Auto NAT = Section 2.
These sections are checked in order (1,2,3)
Manual
Auto
After Auto
Lastly in each section the nat rules are ordered sequentially just like within an access-list.
Can you post the following.
sh run nat
sh nat
sh run object
sh run object-group
sh run access-list
sh run access-group
Also perform a packet tracer and post the output.
packet-tracer input INSIDE tcp < lan ip> 12345 <internet ip> 80
12-22-2022 04:08 AM
thanks for replying
interface GigabitEthernet0/0
nameif outside
security-level 0
ip address 37.X.X.194 255.255.255.248
interface GigabitEthernet0/1
nameif inside
security-level 100
ip address 70.70.2.1 255.255.255.0
interface GigabitEthernet0/1
nameif inside
security-level 100
ip address 70.70.3.1 255.255.255.0
object network public_LAN1
host 37.X.X.195
object network public_LAN2
host 37.X.X.196
object-group network private_LAN1
network-object 70.70.2.0 255.255.255.0
object-group network private_LAN2
network-object 70.70.3.0 255.255.255.0
(just missing the NAT/PAT command)
12-22-2022 04:42 AM
then just add NAT as I mention above.
good luck friend
12-22-2022 08:04 AM
thanks alot for help,
i will apply this command (nat (inside,outside) source dynamic any interface) as you mentioned me,
but how to Control NATTING transluations
over more than one public?
i want 70.70.2.0/24 goes to 37.X.X.195
and
70.70.3.0/24 goes to 37.X.X.196
how can i deploy it in nat command?
12-22-2022 08:11 AM
I will share lab with you tonight.
12-22-2022 08:19 AM
thanks alot .
12-22-2022 08:21 AM
Hello
@MohammadSalih wrote:
over more than one public?
i want 70.70.2.0/24 goes to 37.X.X.195
and
70.70.3.0/24 goes to 37.X.X.196
how can i deploy it in nat command?
object network Inside_1
Subnet 70.70.2.0 255.255.255.0
object network outside1
host 37.X.X.195
object network Inside_2
subnet 70.70.2.0 255.255.255.0
object network outside2
host 37.X.X.196
nat (inside,outside) 1source dynamic Inside_1 outside1
nat (inside,outside) 2 source dynamic Inside_2 outside2
nat (inside,outside) after-auto source dynamic any interface
12-22-2022 08:24 AM
i will try it.
thanks very much.
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