The following configuration creates a static pool with an address prefix and an address range and uses static source NAT translation.
- [edit services nat]
- pool p1 {
- address 30.30.30.252/30;
- address-range low 20.20.20.1 high 20.20.20.2;
- }
- rule r1 {
- match-direction input;
-
- term {
-
- from {
-
- source-address {
- 10.10.10.252/30;
- }
- }
-
- then {
-
- translated {
- source-pool p1;
- translation-type source static;
- }
- }
- }
- }