show services nat mappings
Syntax
Release Information
Command introduced in Junos OS Release 10.1.
summary option introduced in Junos OS Release 11.1.
address-pooling paired option introduced in Junos OS Release 13.2.
endpoint-independent option introduced in Junos OS Release 13.2.
pcp option introduced in Junos OS Release 13.2.
Description
Display information about Network Address Translation (NAT) address, port, and port control protocol (PCP) mappings.
Options
none | — | Display standard information about all NAT pools. |
brief | detail | summary | — | (Optional) Display the specified level of output. |
pool-name | — | (Optional) Display detailed information about a specific NAT pool. Used only with detail level output. |
address-pooling-paired | — | (Optional) Display only information about address-pooling paired mappings. |
endpoint-independent | — | (Optional) Display only information about endpoint-independent mappings. |
pcp | — | (Optional) Display only information about (PCP)port control protocol) mappings. |
![]() | Note: PCP requests with the prefer-fail option request a particular external IP address and port. When the request cannot be fulfilled, the mapping is not created. In this case, the subscriber does not have a mapped IP address. Such a subscriber is counted in the summary of the number or address mappings, but is not displayed in the list of address mappings, as shown in the following examples. user@host# show services nat mappings summary Service Interface: sp-2/0/0 Total number of address mappings: 1 Total number of endpoint independent port mappings: 0 Total number of endpoint independent filters: 0 user@host# show services nat mappings address-pooling
paired [edit] This is expected behavior because unfulfilled address mappings (IP of 0.0.0.0) are not displayed in the output of the second CLI command. These address mappings will time out based on configured or default values. |
Required Privilege Level
view
List of Sample Output
show services nat mappings briefshow services nat mapping detail
show services nat mappings pool-name
show services nat mappings summary
show services nat mappings address-pooling-paired
show services nat mappings endpoint-independent
show services nat mappings pcp
Output Fields
Table 1 lists the output fields for the show services nat mappings command. Output fields are listed in the approximate order in which they appear.
Table 1: show services nat mappings Output Fields
Field Name | Field Description | Level of Output |
|---|---|---|
Interface | Name of a service 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 NAT pool. | All levels |
Address Mapping | Mapping performed by NAT to conceal the network address. | All levels |
No. of Port Mappings | Number of port mappings. | All levels |
Port mapping | Port mapping performed by NAT. | detail |
Flow Count | Number of flows. | detail |
Total number of address mappings: | Total number of address mappings, by service interface. | summary |
Total number of endpoint independent port mappings: | Total number of port mappings by service interface. | summary |
Total number of endpoint independent filters: | Total number of independent filters that filter out only packets that are not destined to the internal address and port, regardless of the external IP address and port source, by service interface. | summary |
State | NAT mapping state. The following states are possible:
| address-pooling-paired endpoint-independent |
Ports In Use | The number of ports used for a specific address-pooling paired mapping. | address-pooling-paired |
PCP Lifetime | Elapsed PCP lifetime in seconds. | pcp |
PCP Client | Address of the PCP client sending the PCP request. | pcp |
Session Count | Number of sessions currently using the mapping. | address-pooling-paired endpoint-independent pcp |
Sample Output
show services nat mappings brief
user@host> show services nat mappings brief Interface: sp-2/3/0, Service set: s1
NAT pool: p1
Address Mapping: 2.1.20.10 ---> 34.34.34.34
No. of port mappings: 1
show services nat mapping detail
user@host> show services nat mapping detail Interface: sp-2/3/0, Service set: s1
NAT pool: p1
Address Mapping: 2.1.20.10 ---> 34.34.34.34, No. of port mappings: 1
Port mapping: 49604 --> 1024, Flow Count: 2
show services nat mappings pool-name
user@host> show services nat mappings p1 Interface: sp-2/3/0, Service set: s1
NAT pool: p1
Address Mapping: 2.1.20.10 ---> 34.34.34.34
No. of port mappings: 1
show services nat mappings summary
user@host> show services nat mapping summary Service Interface: sp-1/0/0 Total number of address mappings: 790 Total number of endpoint independent port mappings: 1580 Total number of endpoint independent filters: 1580 Service Interface: sp-1/1/0 Total number of address mappings: 914 Total number of endpoint independent port mappings: 1828 Total number of endpoint independent filters: 1828 Service Interface: sp-4/0/0 Total number of address mappings: 688 Total number of endpoint independent port mappings: 1376 Total number of endpoint independent filters: 1376 Service Interface: sp-4/1/0 Total number of address mappings: 648 Total number of endpoint independent port mappings: 1296 Total number of endpoint independent filters: 1296
show services nat mappings address-pooling-paired
user@host> show services nat mappings address-pooling-paired Interface: sp-3/0/0, Service set: NAPT44-SS1 NAT pool: napt44-SS1-p1 Mapping : 29.32.38.255 --> 192.168.75.23 Ports In Use : 9 Session Count : 1 Mapping State : Active
show services nat mappings endpoint-independent
user@host> show services nat mappings endpoint-independent Interface: sp-3/0/0, Service set: NAPT44-SS1 NAT pool: napt44-SS1-p1 Mapping : 29.32.38.255:10000 --> 192.168.75.23:1024 Session Count : 1 Mapping State : Active
show services nat mappings pcp
user@host> show services nat mappings pcp PCP Client : 172.16.0.1 PCP Lifetime : 45 Mapping : 29.32.38.255:10000 --> 192.168.75.23:1024 Session Count : 1 Mapping State : Active
