Example: Configuring Source NAT on J-series Services Routers
When performing source Network Address Translation
(NAT-src), source pool provides JUNOS software with enhanced services with a supply of addresses
from which to draw. When a policy requires NAT-src and references
a specific source pool, JUNOS software with enhanced services draws addresses from that pool
when translation is performed.
Define a source pool (src-nat-with-pat) on an interface
(ge-0/0/0.0) that contains an address range (10.1.1.20 10.1.1.30)
and an address (10.1.1.2) with port address translation.
Define a source pool (src-nat-wo-pat) on an interface
(ge-0/0/0.0) that contains an address range (10.1.1.3 10.1.1.5) without
port address translation and uses (src-nat-with-pat) as the overflow
pool.
Define a source pool (src-nat-static) on an interface
(ge-0/0/1.0) that maps an IP address range (1.1.1.10 1.1.120) to an
IP address range (20.1.1.10 20.1.1.20).
Define a source pool (src-nat-incoming) on an interface
(ge-0/0/1.0) that contains an IP address range (20.1.1.25 20.1.1.30)
with allow-incoming enabled.
Reference source pool (src-nat-with-pat) in a policy (src-nat-policy-1).
Reference an interface source pool in a policy (src-nat-policy-2).