Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

show services nat mappings

Syntax

show services nat mappings <brief | detail | summary><pool-name>

Release Information

Command introduced in Junos OS Release 10.1.

summary option introduced in Junos OS Release 11.1.

Description

Display information about Network Address Translation (NAT) address and port mappings.

Options

none

Display standard information about all NAT pools.

brief | detail | summary

(Optional) Display the specified level of output.

pool-name

(Optional) Display information about the specified NAT pool.

Required Privilege Level

view

List of Sample Output

show services nat mappings brief
show services nat mappings detail
show services nat mappings pool-name
show services nat mappings summary

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

Flow Count

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

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 mappings detail

user@host> show services nat mappings detail
Interface: sp-2/0/0, Service set: s1
   NAT pool: napt_p1, Translation type: dynamic
     Address range: 5.5.5.1-5.5.5.254
     Port range: 512-65535, Ports in use: 0, Out of port errors: 0, Max ports used: 0
     AP-P out of port errors: 0 

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

Published: 2013-03-14

Published: 2013-03-14