show ip nat rule

show ip nat rule {detail}

Description

Displays information about IP Network Address Translation (NAT) rules.

Syntax Description

ip Specifies Internet Protocol (IP).
nat Specifies NAT.
rule Specifies viewing NAT rule information.
detail Specififes showing detailed NAT rule information.

Default

N/A.

Usage Guidelines

Example

The following example shows basic information about all IP NAT rules configured on the switch:

# show ip nat rule 
Rule Name                         State     VR                  IPAddr              NewIPAddr      
                                    Type      EgressVLAN           Protocol  L4Port   NewL4Port 
========================================================================================================
baseNapt                          Enabled   VR-Default          10.1.1.100/24       112.123.234.200
                                    NAPT      out                  ---       -----    -----     
srcTxlate                         Enabled   VR-Default          10.20.30.40/32      50.1.1.100     
                                    Src-NAT   out                  ---       -----    -----     
natIncomplete                     Disabled  -----               -----               -----          
                                    Src-NAT   -----                ---       -----    -----     
dnat-http-server                  Enabled   VR-Default          40.1.1.2/32         10.1.1.100     
                                    Dst-NAPT  out                  UDP       8080     80        
========================================================================================================
NAT                                      : Enabled
Total number of NAT rules                : 4
Total number of source NAT rules         : 2
Total number of destination NAPT rules   : 1
Total number of configured NAPT rules    : 1
Total number of dynamic NAPT rules       : 0
Maximum number of NAT rules              : 1024
Aging Time                               : 10 minutes

The following example shows detailed information about all IP NAT rules configured on the switch:

show ip nat rule detail 
Rule Name                : baseNapt                 
Type                     : NAPT                     
Admin State              : Enabled                  
VR Name                  : VR-Default               
New VR Name              : VR-Default               
Egress VLAN Name         : out                      
Source IP Address        : 10.1.1.100               
Source IP Mask           : 255.255.255.0            
New Source IP Address    : 112.123.234.200          
Statistics Monitor       : Off                      
 
Rule Name                : srcTxlate                
Type                     : Src-NAT                  
Admin State              : Enabled                  
VR Name                  : VR-Default               
New VR Name              : VR-Default               
Egress VLAN Name         : out                      
Source IP Address        : 10.20.30.40              
Source IP Mask           : 255.255.255.255          
New Source IP Address    : 50.1.1.100               
Statistics Monitor       : Off                      
 
Rule Name                : natIncomplete            
Type                     : Src-NAT                  
Admin State              : Disabled                 
VR Name                  :                          
New VR Name              :                          
Egress VLAN Name         :                          
Source IP Address        :                          
Source IP Mask           :                          
New Source IP Address    :                          
Statistics Monitor       : Off                      
 
Rule Name                : dnat-http-server         
Type                     : Dst-NAPT                 
Admin State              : Enabled                  
VR Name                  : VR-Default               
New VR Name              : VR-Default               
Egress VLAN Name         : out                      
Dest IP Address          : 40.1.1.2                 
Dest IP Mask             : 255.255.255.255          
New Dest IP Address      : 10.1.1.100               
Protocol                 : UDP (17)
Dest Port                : 8080                     
New Dest Port            : 80                       
Statistics Monitor       : Off                      
 
============================================================
NAT                                      : Enabled
Total number of NAT rules                : 4
Total number of source NAT rules         : 2
Total number of destination NAPT rules   : 1
Total number of configured NAPT rules    : 1
Total number of dynamic NAPT rules       : 0
Maximum number of NAT rules              : 1024
Aging Time                               : 20 minutes

History

This command was first available in ExtremeXOS 31.2.

Platform Availability

This command is available on the switches that support the IP NAT feature. For information about which switches support this and other features, see the Switch Engine 32.2 Feature License Requirements document.