show services nat source port-block
Syntax
show services nat source port-block <host-ip ip-address> <pool pool-name> <xlated-ip translated-ip-address> <xlated-port translated-port-number>
Description
Display port block allocation information.
Options
| host-ip ip-address | Display port block allocation information for the specified host. |
| pool pool-name | Display port block allocation information for the specified pool. |
| xlated-ip translated-ip-address | Display port block allocation information for the specified translated IP address. |
| xlated-port translated-port-number | Display port block allocation information for the specified translated port number. |
Required Privilege Level
view
Output Fields
Table 1 lists the output fields for the show services nat source
port block command. Output fields are listed in the approximate
order in which they appear.
Field Name |
Field Description |
|---|---|
Pool name |
Name of the pool. |
Port-overloading-factor |
Factor of port overloading for the source pool. |
Port block size |
Number of ports that a port block contains. |
Max port blocks per host |
Maximum number of blocks that one host can use for translation. |
Port block active timeout |
Longest duration that a block remains active for port allocation. |
Used/total port blocks |
Current number of used ports and total number of ports in this source pool. |
Host IP |
Host IP address. |
External IP |
External IP address. |
Port Block Range |
Port range of one PBA port block entry from the lowest to the highest port number that can be allowed to allocate ports for this block. |
Ports Used/Ports Total |
Current number of used ports and total number of ports in this source pool. |
Block State/Left Time (s) |
PBA port block entry state for NAT port allocation, including Active, Inactive, Query, and the time left for a port block that is in the Active or Query state.
|
Failed sessions |
Number of failed sessions. |
Number of sessions |
Total number of sessions. |
Sample Output
show services nat source port-block
user@host> show services nat source port-block
Pool name: sp1
Port-overloading-factor: 1 Port block size: 512
Max port blocks per host: 8 Port block active timeout: 100
Used/total port blocks: 1/64260
Host_IP External_IP Port_Block Ports_Used/ Block_State/
Range Ports_Total Left_Time(s)
1.1.1.100 30.30.30.1 13824-14335 1/512*1 Active/71
Failed sessions : 0
Number of sessions : 0
Release Information
Command introduced in Junos OS 19.3R2.