Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    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 512.

      . You can also specify include-boundary-addresses if you want the lowest and highest addresses in the source address range of a NAT rule to be translated when the NAT pool is used.

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

      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: 2013-08-29