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 destination rule

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show services nat destination rule
rule-name
<service-set service-set>
<interface interface-name>
<all>

Description

Display destination NAT rule-set information.

Options

rule-name

Display information about the specified destination NAT rule.

service-set service-set

Display information specific to the service-set.

interface interface-name

Display information specific to the interface.

all

Display all NAT rule-set information.

Required Privilege Level

view

Output Fields

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

Table 1: show services nat destination rule Output Fields

Field Name

Description

Interface

Interface name.

Service set

Service set name.

Destination NAT rule

Name of the destination NAT rule.

Rule-Id

Rule identification number.

Rule-position

Position of the destination NAT rule.

Match-direction

Three options:

  • input―Apply the rule match on the input side of the interface.

  • input-output―Apply the rule match bidirectionally.

  • output―Apply the rule match on the output side of the interface.

Destination addresses

Name of the destination addresses that match the rule. The default value is any.

Action

The action taken when a packet matches the rule’s tuples. Actions include the following:

  • destination NAT pool―Use user-defined destination NAT pool to perform destination NAT.

  • off―Do not perform destination NAT.

Translation hits

Number of times a translation in the translation table is used for a source NAT rule.

Successful sessions

Number of successful session installations after the NAT rule is matched.

Failed sessions

Number of unsuccessful session installations after the NAT rule is matched.

Number of sessions

Number of sessions that reference the specified rule.

Sample Output

show services nat destination rule service-set ss1_interface_style1 interface vms-0/2/0 all | no-more

content_copy zoom_out_map
user@host> show services nat destination rule service-set ss1_interface_style1 interface vms-0/2/0 all | no-more
ss1_interface_style1 interface vms-0/2/0 all | no-more                              
Interface: vms-0/2/0 , Service set: ss1_interface_style1 
Destination NAT rule: r1                     Rule-set: rs2 
  Rule-Id                    : 2 
  Rule position              : 1 
  Match-direction            : input 
    Destination addresses    : 50.1.1.2        - 50.1.1.2 
  Action                     : dest_pool 
  Translation hits           : 34 
    Successful sessions      : 34 
    Failed sessions          : 0 
  Number of sessions         : 0 
 

Release Information

Command introduced in Junos OS Release 19.3R2.

footer-navigation