Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Clearing the NAT table

I have NAT set up for both source and destination translation on 2610 router.

When the devices configured for NAT start communicating, several dynamic NAT entries are created. Recently, I needed to change an IP address for DR testing (192.168.21.5 --> 192.168.21.158). However, I was unable to remove the entry using the 'no' command before the NAT statement. I tried using the 'clear ip nat outside' statement , but I received output errors. I finally had to clear the entire dynamic NAT translation table (clear ip nat trans *). Once cleared, I could remove the static NAT statement for 192.168.21.5 using the 'no' command.

Is there a way for me to just clear that specific IP addresses NAT translation entries. I don't want to affect the other static IP translations taking place (192.168.12.200).

Check out the attached file, it contains the config, ver, and error output when I try to make NAT statement changes.

As always, thanks for your help.

-Mike

1 ACCEPTED SOLUTION

Accepted Solutions
Purple

Re: Clearing the NAT table

Hi Mike,

I believe the following would have done the trick in your case (watch for wrap):

clear ip nat translation inside 192.168.80.21 192.168.251.1 outside 172.26.104.126 192.168.21.5

clear ip nat translation inside 192.168.80.22 172.26.201.4 outside 172.26.104.126 192.168.21.5

The above syntax lets you specify the entire translation entry so that the IOS knows exactly what to clear.

Pls rate the post if it helps.

Paresh.

2 REPLIES
Purple

Re: Clearing the NAT table

Hi Mike,

I believe the following would have done the trick in your case (watch for wrap):

clear ip nat translation inside 192.168.80.21 192.168.251.1 outside 172.26.104.126 192.168.21.5

clear ip nat translation inside 192.168.80.22 172.26.201.4 outside 172.26.104.126 192.168.21.5

The above syntax lets you specify the entire translation entry so that the IOS knows exactly what to clear.

Pls rate the post if it helps.

Paresh.

New Member

Re: Clearing the NAT table

Hey Paresh,

Yes, this was the answer I needed. I verified the syntax.

Thanks a lot for the info. I rated the post.

-Mike

160
Views
0
Helpful
2
Replies
CreatePlease to create content