Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show services nat source pool

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show services nat source pool pool-name
<all>
<interface interface-name>
<service-set service-set>

Description

Display source NAT information for a pool.

Options

pool-name

Display information about the specified pool.

all

Display all source NAT pool information.

interface interface-name

Display information specific to the adaptive services interface.

service-set service-set

Display information specific to the service set.

Required Privilege Level

view

Output Fields

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

Table 1: show services nat source pool Output Fields

Field Name

Description

Pool name

Name of the source pool.

Pool id

Pool identification number.

Routing instance

Name of the routing instance.

Host address base

Base address of the original source IP address range.

Port

Port numbers used for the source pool.

Port overloading

Number of port overloading for the source pool.

Address assignment

Type of address assignment.

Total addresses

Number of IP addresses that are in use.

Translation hits

Number of times there is traffic that matches the source rule.

Limit ports per host

Include-boundary-addresses

Include the lowest and highest addresses in the source address range of the NAT rule to be translated when the NAT pool is used.

Ei-mapping-timeout

Duration for endpoint independent translations that use the specified NAT pool.

Mapping-timeout

Duration for mappings that use the specified NAT pool.

EIF Inbound session count

Number of EIF inbound sessions.

EIF Inbound session limit exceeded drops

Number of EIF inbound sessions that exceed the drop limit.

Address range

IP address range for the source pool.

Ports

Total used ports

Error Counters

  • Out of port errors

  • Out of address errors

  • Parity port errors

  • Preserve Range errors

  • APP port allocation errors

  • App port limit allocation errors

  • Port block allocation errors

  • Port blocks limit exceeded errors

The following bullets describe the fields:

  • No ports available.

  • No room in the pool for another address.

Sample Output

show services nat source pool JNPR-CGNAT-PUB-POOL (NAT Pool)

content_copy zoom_out_map
user@host> show services nat source pool JNPR-CGNAT-PUB-POOL
Interface: vms-0/2/0 , Service set: JNPR-IF-SSET
Pool name          : JNPR-CGNAT-PUB-POOL
Pool id            : 4
Routing instance   : default
Host address base  : 0.0.0.0
Port               : [1024, 65535]
Port overloading   : 1
Address assignment : no-paired
Total addresses    : 254
Translation hits   : 0
+Limit ports per host : 10  
Include-boundary-addresses: Disable
Ei-mapping-timeout : 300
Mapping-timeout    : 300
EIF Inbound session count: 0
EIF Inbound session limit exceeded drops: 0
Address range                          Ports
         20.20.20.1 - 20.20.20.254       0 
Total used ports   :                     0
+Error Counters:
+    Out of port errors               : 0 
+    Out of address errors            : 0
+    Parity port errors               : 0
+    Preserve Range errors            : 0
+    APP port allocation errors       : 0
+    APP port limit allocation errors : 0 
+    Port block allocation errors     : 0
+    Port blocks limit exceeded errors: 0

show services nat source pool JNPR-CGNAT-PUB-POOL (PBA Pool)

content_copy zoom_out_map
user@host> show services nat source pool JNPR-CGNAT-PUB-POOL
Interface: vms-0/2/0 , Service set: JNPR-IF-SSET
Pool name          : JNPR-CGNAT-PUB-POOL
Pool id            : 4
Routing instance   : default
Port               : [1024, 65535]
Port overloading   : 1
Address assignment : no-paired
Total addresses    : 510
Translation hits   : 0
Port block size      : 256
Max blocks per host  : 8
Active block timeout : 0
Interim logging interval   : 0
PBA block log        : Enable
Used/total port blocks: 0/128520
+Max number of port blocks used: 0
Include-boundary-addresses: Disable
Ei-mapping-timeout : 300
Mapping-timeout    : 300
EIF Inbound session count: 0
EIF Inbound session limit exceeded drops: 0
Address range                          Ports
          100.0.0.1 - 100.0.1.254        0   
Total used ports   :                     0 
Error Counters:
    Out of port errors                : 0
    Out of address errors             : 0
    Parity port errors                : 0
    Preserve Range errors             : 0
    APP port allocation errors        : 0
    APP port limit allocation errors  : 0
    Port block allocation errors      : 0
Port blocks limit exceeded errors : 0

show services nat source pool JNPR-CGNAT-PUB-POOL (Deterministic)

content_copy zoom_out_map
user@host> show services nat source pool JNPR-CGNAT-PUB-POOL
Interface: vms-0/2/0 , Service set: JNPR-IF-SSET
Pool name          : JNPR-CGNAT-PUB-POOL
Pool id            : 4
Routing instance   : default
Port               : [1024, 65535]
Port overloading   : 1
Address assignment : no-paired
Total addresses    : 510
Translation hits   : 0
Port block size      : 256
Determ host range num: 1
+Unique pool users: 0
Include-boundary-addresses: Disable
Ei-mapping-timeout : 300
Mapping-timeout    : 300
EIF Inbound session count: 0
EIF Inbound session limit exceeded drops: 0
Address range                        Single Ports   Twin Ports
          100.0.0.1 - 100.0.1.254        0              0
Total used ports   :                     0              0
Error Counters:
    Out of port errors                : 0
    Out of address errors             : 0
    Parity port errors                : 0
    Preserve Range errors             : 0
    APP port allocation errors        : 0
    APP port limit allocation errors  : 0
    Port block allocation errors      : 0
    Port blocks limit exceeded errors : 0

show services nat source pool service-set ss1_interface_style1 interface vms-0/2/0 all

content_copy zoom_out_map
user@router>show services nat source pool service-set ss1_interface_style1 interface vms-0/2/0 all
Interface: vms-0/2/0 , Service set: ss1_interface_style1 
Pool name          : src_pool1 
Pool id            : 4 
Routing instance   : default 
Host address base  : 0.0.0.0 
Port               : [1024, 63487] 
Twin port          : [63488, 65535] 
Port overloading   : 1 
Address assignment : no-paired 
Total addresses    : 254 
Translation hits   : 3 
Address range                        Single Ports   Twin Ports  
           44.0.0.1 - 44.0.0.254         1              0     
Total used ports   :                     1              0     

Release Information

Command introduced in Junos OS Release 19.3R2.

footer-navigation