|
Navigate to the Nat level in the configuration
hierarchy.
|
- In the configuration editor hierarchy, select Services.
- Next to Nat, click Configure.
|
From the top of the configuration hierarchy, enter
edit services nat
|
|
Define nat-pool and assign it an address range to be used for
network address translation.
|
- Next to Pool, click Add new entry.
- In the Pool Name box, type nat-pool.
- Next to Address range, click Add new entry.
- In the High box, type 121.0.1.20.
- In the Low box, type 121.0.1.2
- Click OK twice.
|
Set the NAT pool name and the address range:
set pool nat-pool address-range high 121.0.1.20 low 121.0.1.2
|
|
Define pat-pool and assign it an address range to be used after
addresses from nat-pool are fully used.
|
- On the Nat page, next to Pool, click Add
new entry.
- In the Pool name box, type pat-pool.
- Next to Address range, click Add new entry.
- In the High box, type 121.0.1.22.
- In the Low box, type 121.0.1.21.
- Click OK.
|
Set the NAPT pool and address range:
set pool pat-pool address-range high 121.0.1.22 low 121.0.1.21
|
|
Specify the NAT port to be automatically assigned by the router.
|
- On the Pool page, next to Port, click Configure.
- From the Port choice list select Automatic.
- Click OK twice.
|
Set the NAT port to be assigned automatically:
set pool pat-pool port automatic
|
|
Define over-pool-rule and set its match direction.
|
- On the Nat page, next to Rule, click Add
new entry.
- In the Rule name box, type over-pool-rule.
- From the Match direction list, select input.
|
Set the rule and its match direction:
set rule over-pool-rule match-direction input
|
|
Define one of the following terms for over-pool-rule:
- For an overload pool—over-pool-term
- For an overload prefix—over-perfix-term
|
- Next to Term, click Add new entry.
- In the Term name box, type the appropriate name:
-
over-pool-term
-
over-prefix-term
|
Set the appropriate term for the rule:
|
|
Define a match condition—the source address 10.10.10.0/24—
for the term (over-pool-term or over-prefix-term).
|
- Next to From, click Configure.
- Next to Source address, click Add new entry.
- From the Address list, select Enter Specific
Value.
- In the Prefix box, type 10.10.10.0/24.
- Click OK twice.
|
Set the match condition for the term, as appropriate:
|
|
Define an action for the term:
- For over-pool-term, define a translation type, the source
pool (nat-pool) and the overload pool (pat-pool).
- For over-prefix-term, define a translation type, the
source pool (nat-pool) and the overload prefix (123.0.1.0/24).
|
- Next to Then, click Configure.
- From the Designation list select Translated.
- Next to Translated, click Configure.
- From the Source translation type list, select dynamic.
- From the Source pool choice list, select Source
pool.
- In the Source pool box, type nat-pool.
- From the Overload pool choice list, select the appropriate
choice:
-
Overload pool
-
Overload prefix
- Do one of the following:
- In the Overload pool box, type pat-pool.
- In the Overload prefix box, type 123.0.1.0/24.
- Click OK.
|
Set the appropriate action for the term:
- For an overload pool:
set rule over-pool-rule term over-pool-term then translated translation-type
source dynamic
set rule over-pool-rule term over-pool-term then translated source-pool
nat-pool
set rule over-pool-rule term over-pool-term then translated overload-pool
pat-pool
- For an overload prefix:
set rule over-pool-rule term over-prefix-term then translated translation-type
source dynamic
set rule over-pool-rule term over-prefix-term then translated source-pool
nat-pool
set rule over-pool-rule term over-prefix-term then translated overload-prefix
123.0.1.0/24
|