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

    show services nat pool

    Syntax

    show services nat pool <brief | detail><pool-name> pgcp <ports-per-session | remotely-controlled>

    Release Information

    Command introduced before Junos OS Release 7.4.

    pgcp option added in Junos OS Release 8.5.

    Description

    Display information about Network Address Translation (NAT) pools.

    Options

    none
    —

    Display standard information about all NAT pools.

    brief | detail
    —

    (Optional) Display the specified level of output.

    pool-name
    —

    (Optional) Display information about the specified NAT pool.

    pgcp
    —

    (Optional) Display information about a NAT pool that is exclusive to the BGF.

    ports-per-session
    —

    (Optional) Display the number of ports allocated per session from the NAT pool.

    remotely-controlled
    —

    (Optional) Display if the NAT pool is explicitly specified by the gateway controller.

    Required Privilege Level

    view

    List of Sample Output

    show services nat pool brief
    show services nat pool detail
    show services nat pool for Secured Port Block Allocation
    show services nat pool for Deterministic Port Block Allocation
    show services nat pool detail for Port Block Allocation

    Output Fields

    Table 1 lists the output fields for the show services nat pool command. Output fields are listed in the approximate order in which they appear.

    Table 1: show services nat pool Output Fields

    Field Name

    Field Description

    Level of Output

    Interface

    Name of an adaptive services interface.

    All levels

    Service set

    Name of a service set. Individual empty service sets are not displayed, but if none of the service sets has any flows, a flow table header is printed for each service set.

    All levels

    NAT pool

    Name of the Network Address Translation pool.

    All levels

    Type or Translation type

    Address translation type: basic-nat-pt, basic-nat44, basic-nat66, detministic-napt44, dnat-44, dynamic-nat44, napt44, napt-66, napt-pt, stateful-nat64, twice-basic-nat-44, twice-dynamic-nat-44, twice-dynamic-napt-44.

    All levels

    Address or Address range

    IPv4 address range of the pool.

    All levels

    Port or Port range

    Port range of the pool. Applicable only for dynamic NAT pools. Not displayed for static NAT pools.

    All levels

    Ports used' or Ports in use

    Number of ports allocated in this pool with this name. Applicable only for dynamic NAT pools. Not displayed for static NAT pools.

    All levels

    Port block type

    Type of port block allocation: secured or deterministic

    All levels

    Out of port errors

    Number of port allocation errors. Applicable only for dynamic NAT pools. Not displayed for static NAT pools.

    detail

    Max ports used

    Maximum number of ports used. Applicable only for dynamic NAT pools. Not displayed for static NAT pools.

    detail

    Addresses in use

    Number of addresses in use for dynamic source address NAT pools.

    detail

    Current EIF Inbound flows count

    Current count of EIF inbound flows, including all EIF flows per pool.

    EIF flow limit exceeded drops

    Current number of flow drops due to exceeded flow limit. This number is per pool, not per EIF mapping.

    Sample Output

    show services nat pool brief

    user@host> show services nat pool brief
    Interface: ms-1/0/0, Service set: s1
    NAT pool          Type    Address                         Port        Ports used
    dest-pool         DNAT-44 10.10.10.2-10.10.10.2          
    napt-pool         NAPT-44 50.50.50.1-50.50.50.254         1024-63487  0         
    source-dynamic-pool DYNAMIC NAT44 40.40.40.1-40.40.40.254        
    source-static-pool BASIC NAT44 30.30.30.1-30.30.30.254        
    

    show services nat pool detail

    user@host> show services nat pool detail

    Interface: ms-1/0/0, Service set: s1
      NAT pool: dest-pool, Translation type: DNAT-44
        Address range: 10.10.10.2-10.10.10.2
      NAT pool: napt-pool, Translation type: NAPT-44
        Address range: 50.50.50.1-50.50.50.254
        Port range: 1024-63487, Ports in use: 0, Out of port errors: 0, Max ports used: 0
      NAT pool: source-dynamic-pool, Translation type: DYNAMIC NAT44
        Address range: 40.40.40.1-40.40.40.254
        Out of address errors: 0, Addresses in use: 0
      NAT pool: source-static-pool, Translation type: BASIC NAT44
        Address range: 30.30.30.1-30.30.30.254
    

    show services nat pool for Secured Port Block Allocation

    user@host> show services nat pool

    Interface: sp-2/0/0, Service set: in
    NAT pool          Type    Address                         Port        Ports used
    mypool            dynamic 3.3.3.3-3.3.3.10                512-65535   0
                              3.3.3.15-3.3.3.20
                              3.3.3.25-3.3.3.30
                              3.3.3.95-3.3.3.200
    Port block size: 64, Max port blocks per address: 1, Active block timeout: 86400, Effective port range: 1024-65471,
    Effective number of port blocks: 126882, Effective number of ports: 8120448, Port block efficiency: nan
    
    Interface: sp-2/1/0, Service set: in1
    NAT pool          Type    Address                         Port        Ports used
    mypool1           dynamic 9.9.9.1-9.9.9.254               512-65535   0
    Port block size: 64, Max port blocks per address: 1, Active block timeout: 86400, Effective port range: 1024-65471,
    Effective number of port blocks: 255778, Effective number of ports: 16369792, Port block efficiency: nan

    show services nat pool for Deterministic Port Block Allocation

    user@host> show services nat pool
    Interface: sp-2/0/0, Service set: ss2
    NAT pool          Type    Address                         Port        Ports Used
    pba               dynamic 33.33.33.1-33.33.33.128         512-65535   6604      
    Port block type: Deterministic port block, Port block size: 200
    

    show services nat pool detail for Port Block Allocation

    user@host> show services nat pool detail
    Interface: sp-2/0/0, Service set: s
      NAT pool: napt_pool, Translation type: dynamic
        Address range: 44.1.1.1-44.1.1.1
        Port range: 1024-65535, Ports in use: 0, Out of port errors: 0, Max ports used: 0
        AP-P out of port errors: 0
        Current EIF Inbound flows count: 0
        EIF flow limit exceeded drops: 0
    

    Sample Output

    Published: 2013-03-14