clear ip nat bindings

Use this command to clear the specified IPv4 NAT bindings.

Syntax

clear ip nat bindings {all | pool pool | id id | match {protocol | * | icmp {sip | *} {dip | *} | tcp {sip | *} {sport | *} {dip | *} {dport | *} | udp {sip | *} {dip | *}}

Parameters

all Clears all IPv4 NAT bindings
pool pool Clears IPv4 NAT bindings for the specified pool.
id id Clears IPv4 NAT bindings for the specified NAT ID.
match Clears IPv4 NAT bindings for the specified protocol:
  • protocol - Specifies an IP protocol number. Valid values 0 - 255.
  • * - Clears NAT bindings information for all Internet protocols.
  • icmp Clears NAT bindings information for the Internet Control Message Protocol source and destination IP addresses.
  • tcp - Clears NAT bindings information for the Transmission Control Protocol for the specified source and destination IP address and port combination.
  • udp - Clears NAT bindings information for the User Datagram Protocol source and destination IP addresses.
sip Clears IPv4 NAT bindings for the specified source IP address.
dip Clears IPv4 NAT bindings for the specified destination IP address.
sport Clears the IPv4 binding with the specified source port. Valid values 1 - 65535.
dport Clears the IPv4 binding with the specified destination port. Valid values 1 - 65535.
* Clears NAT bindings for all source or destination IP addresses.

Defaults

None.

Mode

Configuration command, Global configuration.

Examples

This example clears all NAT bindings for this router:

System(rw-config)->clear ip nat bindings all

This example clears NAT UDP bindings for all source IP addresses and the 200.50.50.10 destination IP address for this router:

System(rw-config)->clear ip nat bindings match udp * 200.50.50.10