show ip nat bindings

Use this command to display IPv4 NAT bindings.

Syntax

show ip nat bindings {pool pool | id id | summary | match {protocol | * | icmp {sip | *} {dip | *} | tcp {sip | *} {sport | *} {dip | *} {dport | *} | udp {sip | *} {dip | *}} [detail]}

Parameters

pool pool Displays bindings for the specified pool.
id id Displays bindings for the specified NAT ID.
match Displays bindings for the specified protocol:
  • protocol - Specifies an IP protocol number. Valid values 0 - 255.
  • * - Displays NAT bindings information for all protocols.
  • icmp Displays NAT bindings information for the Internet Control Message Protocol source and destination IP addresses.
  • tcp - Displays NAT bindings information for the Transmission Control Protocol for the specified source and destination IP address and port combination.
  • udp - Displays NAT bindings information for the User Datagram Protocol source and destination IP addresses.
sip Specifies the source IP address for display of NAT bindings.
dip Specifies the destination IP address for the display of NAT bindings.
sport Specifies the source port for the binding to display.
dport Specifies the destination port for the binding to display
* Specifies the display of bindings for all source or destination IP addresses.
summary Displays a summary of NAT bindings information.
detail (Optional) Specifies that a detailed level of information should display.

Defaults

None.

Mode

All command modes.

Examples

This example displays a summary of all NAT bindings for this router:

System(rw-config)->show ip nat bindings summary
NAT Binding Summary
Codes: T   = Type ( S-Static, D-Dynamic, R-Reserved )
                  ( F-FullCone, A-AddrRestrCone, P-PortAddrRestrCone )
       IPP = IP Protocol
              Source
Id     IPP    Destination                                    Direction T   Hw Conns
--------------------------------------------------------------------------------
131071 ANY    12.12.12.12                                    Forward   SR         0
              *.*.*.*
              *.*.*.*                                        Reverse
              13.13.13.13
Number of bindings displayed: 1
System(rw-config)->

This example displays NAT binding information for binding ID 131071:

System(rw-config)->show ip nat bindings id 131071
Id:                131071 (ESTABLISHED)
Forward Addresses:
 Source:            12.12.12.12
 Destination:       *.*.*.*
Reverse (NAT) Addresses:
 Source:            *.*.*.*
 Destination:       13.13.13.13
Rule Type:         Static (Reserved)
Cone Type:         None
IP Protocol:       ANY
Created Date:      FRI JUL 13 13:45:07 2012
Expire Date:       Never (Idle: 24368s)
Hardware Conns:    0
System(rw-config)->