The following configuration performs network address translation using the source prefix 20.20.10.0/24 without defining a pool.
- [edit services nat]
- rule src-nat {
- match-direction input;
-
- term t1 {
-
- then {
- translation-type source dynamic;
- source-prefix 20.20.10.0/24;
- }
- }
- }
The following configuration performs network address translation using the destination prefix 20.20.10.0/32 without defining a pool.
- [edit services nat]
- rule src-nat {
- match-direction input;
-
- term t1 {
-
- from {
- destination-address 10.10.10.10/32;
-
- then {
- translation-type destination static;
- destination-prefix 20.20.10.0/32;
- }
- }
- }
- }