|
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 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, click Add new entry.
- In the Prefix box, type 121.0.1.0/24.
- Click OK twice.
|
Set the NAT pool name and the address:
set pool nat-pool address 121.0.1.0/24
|
|
Define nat-rule and set its match direction.
|
- On the Nat page, next to Rule, click Add
new entry.
- In the Rule name box, type nat-rule.
- From the Match direction list, select output.
|
Set the rule name and its match direction:
set rule nat-rule match-direction output
|
|
Define nat-term for nat-rule and specify its match
condition—source address 10.0.1.0/24.
|
- On the Rule page, next to Term, select Add
new entry.
- In the Term name box, type nat-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.0.1.0/24.
- Click OK twice.
|
Set the term name and its match condition:
set rule nat-rule term nat-term from source-address 10.0.1.0/24
|
|
Specify the referenced pool for nat-term and set its action—to
translate the source addresses to addresses from the referenced pool on a
one-to-one basis.
|
- Next to Then, select Configure.
- From the Designation list, select Translated.
- Next to Translated, click Configure.
- From the Source pool choice list, select Source
pool.
- In the Source pool box, type nat-pool.
- Click OK.
|
Set the pool and action for the term:
set rule nat-rule term nat-term then translated source-pool nat-pool
translation-type source static
|