Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Configuring Deterministic Port Block Allocation

To configure deterministic port block allocation:

  1. At to the [edit services nat pool poolname] hierarchy level, create a pool.
    user@host# edit services nat pool poolname

    For example:

    user@host# edit services nat pool pba-pool2
  2. Define the range of addresses to be translated, specifying the upper and lower limits of the range or an address prefix that describes the range.
    [edit services nat pool pba-pool1]user@host# set address-range low address high address

    Or

    user@host# set address address-prefix

    For example:

    [edit services nat pool pba-pool1]user@host# set address-range low 32.32.32.1 high 32.32.32.253
  3. Specify automatic port assignment by the Junos OS.
    [edit services nat pool pba-pool1]user@host# set port automatic
  4. Configure deterministic port block allocation. Specify block-size or accept the default value of 256.
    [edit services nat pool pba-pool1]user@host# set port deterministic-port-block-allocation block-size block-size

    For example:

    [edit services nat pool pba-pool1]user@host# set port deterministic-port-block-allocation block-size 256

Note: In order for deterministic-port-block-allocation configuration changes to take effect, you must reboot the services PIC whenever you change any of the following nat pool options:

  • address or address-range
  • port range
  • port deterministic-port-block-allocation block-size

Published: 2012-11-28