Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

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

    ip nat pool

    Syntax

    ip nat pool name [startIpAddress endIpAddress] {netmask networkMask | prefix-length length}

    no ip nat pool name

    Release Information

    Command introduced before JunosE Release 7.1.0.

    Description

    Creates an address pool from which the NAT router obtains an address when performing a dynamic translation. You can create address pools with either a single range or multiple, nonoverlapping ranges. The no version removes the NAT pool.

    Note: The router will not allow you to remove a pool that has allocations outstanding. Before removing this type of pool, you must remove the dynamic translation, clear any outstanding translations, and then remove the pool.

    Caution: Specifying a range in “single line” mode from the CLI replaces all other ranges. You cannot specify a range in this mode if any existing ranges are in use. To add additional ranges, issue this command to access IP NAT Pool Configuration mode.

    Options

    • name—Name of the address pool; 32 alphanumeric characters maximum
    • startIpAddress—First IP address (inclusive) in the NAT pool range you are creating; omitting this value in the command (along with endIpAddress) launches the IP NAT Pool Configuration mode, in which you can enter multiple, discontinuous ranges
    • endIpAddress—Last IP address (inclusive) in the NAT pool range you are creating; omitting this value in the command (along with startIpAddress) accesses IP NAT Pool Configuration mode, in which you can enter multiple, discontinuous ranges
    • ipAddressMask—Subnet mask for any NAT pool ranges you specify
    • length—Length of the network prefix; the number of bits masking the base address that results in the address that you want to match

    Mode

    Global Configuration

    Published: 2014-08-14