Clearing NAT Translation Entries

To clear a dynamic translation entry, use the commands shown in Table D-3.

Table D-3 Commands to Clear NAT Translation Entries

Command

Description

clear ip nat translation*

Clears all dynamic translation entries.

clear ip nat translation inside global-ip local-ip [outside local-ip global-ip]

Clears a simple dynamic translation entry that contains an inside translation or both an inside and outside translation.

clear ip nat translation outside local-ip global-ip

Clears a simple dynamic translation entry that contains an outside translation.

clear ip nat translation protocol inside global-ip global-port local-ip local-port [outside local-ip local-port global-ip global-port]

Clears an extended dynamic entry (in its various forms).

Examples D-5 and D-6 provide two sample outputs using the clear ip nat translation commands.

Example D-5 Clearing NAT Translation Example 1

router#show ip nat translation

Pro Inside global

Inside

local

Outside

local

Outside global

udp 172.16.2.2:1220

10.1.1

.1:1220

172.30.2

.132:53

172.30.2.132:53

tcp 172.16.2.2:11012

10.1.1

.2:11012

172.30.1

.220:23

172.30.1.220:23

tcp 172.16.2.2:1067

10.1.1

.1:1067

172.30.1

.161:23

172.30.1.161:23

router#clear ip nat translation

*

router#show ip nat translation

router#

Example D-6 Clearing NAT Translation Example 2

router#show ip nat translation

Pro Inside global

Inside local

Outside

local

Outside

global

udp 172.16.2.2:1220

10.1.1.1:1220

172.30

2.132

53

172.30

2.132:53

tcp 172.16.2.2:11012

10.1.1.2:11012

172.30

1.220

23

172.30

1.220:23

tcp 172.16.2.2:1067

10.1.1.1:1067

172.30

1.161

23

172.30

1.161:23

router#clear ip nat translation udp inside 172.30.2.132 53 172.30.2.132 53

172.16.2

2 1220 10.1

1.1 1220

outside

router#show ip nat translation

Pro Inside global

Inside local

Outside

local

Outside

global

tcp 172.16.2.2:11012

10.1.1.2:11012

172.30

1.220

23

172.30

1.220:23

tcp 172.16.2.2:1067

10.1.1.1:1067

172.30

1.161

23

172.30

1.161:23

Was this article helpful?

0 0
Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment