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

    deterministic-port-block-allocation

    Syntax

    deterministic-port-block-allocation {block-size block-size;include-boundary-addresses;}

    Hierarchy Level

    [edit services nat pool pool-name port]

    Release Information

    Statement introduced in Junos OS Release 12.1.

    Description

    Configure algorithm-based allocation of blocks of destination ports. By specifying this method, you ensure that an incoming (source) IP address and port always map to the same destination IP address and port block, thus eliminating the need for logging address translations.

    Options

    block-size—Maximum number of ports that can be allocated to a user.

    Note: When a block-size of 0 is specified, block size is calculated according to the formula:(64512 * Number of IP addresses in the NAT Pool) / Number of subscribers where

    • 64512 is derived from (65535 - 1023) because the regular port assignments start from 1024.
    • Number of subscribers is derived from the from clause of the applicable NAT rule.

    Default: 256

    Range: 0 through 64512

    include-boundary-addresses—(Optional) Specifies that the lowest and highest addresses in the source address range of a NAT rule should be translated when the NAT pool is used.

    Required Privilege Level

    interface—To view this statement in the configuration.

    interface-control—To add this statement to the configuration.

    Published: 2013-08-14