Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Using the "no" form of a command, help please.

I created a static nat that has locked me out of my asa 5505 from my network, great right? Command was:

static (inside,inside) interface 192.168.1.30 netmask 255.255.255.255

I'm trying to get rid of this using:

no static (inside, inside) interface 192.168.1.30 netmask 255.255.255.255

from the console, but it doesn't seem to like the "no" syntax.

How can I remove this static nat using the console?

Thanks much!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Using the "no" form of a command, help please.

ASA/C2# conf t

ASA/C2(config)# static (inside,outside) interface 192.168.1.30 netmask 255.255.255.255

WARNING: static redireting all traffics at outside interface;

WARNING: all services terminating at outside interface are disabled.

ASA/C2(config)# sh run static

static (inside,outside) interface 192.168.1.30 netmask 255.255.255.255

ASA/C2(config)# no static (inside,outside) interface 192.168.1.30 netmask 255.255.255.255

ASA/C2(config)# sh run static

ASA/C2(config)#

4 REPLIES

Re: Using the "no" form of a command, help please.

look at the configuration "sh run"

use "no" in front of the statement which you are going to delete.

New Member

Re: Using the "no" form of a command, help please.

I feel like that's what I'm doing...

I am typing, at the console prompt, the following command:

no static (inside, inside) interface 192.168.1.30 netmask 255.255.255.255

The consold fails it with the following error:

no static (inside, inside) interface 192.168.1.30 netmask 255.255.255.255

^

Invalid input detected at '^' marker

where the '^' is pointing at the 't' in static.

Am I missing something here?

Re: Using the "no" form of a command, help please.

ASA/C2# conf t

ASA/C2(config)# static (inside,outside) interface 192.168.1.30 netmask 255.255.255.255

WARNING: static redireting all traffics at outside interface;

WARNING: all services terminating at outside interface are disabled.

ASA/C2(config)# sh run static

static (inside,outside) interface 192.168.1.30 netmask 255.255.255.255

ASA/C2(config)# no static (inside,outside) interface 192.168.1.30 netmask 255.255.255.255

ASA/C2(config)# sh run static

ASA/C2(config)#

New Member

Re: Using the "no" form of a command, help please.

Thanks very much! That did it!

168
Views
0
Helpful
4
Replies
CreatePlease to create content