cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
399
Views
0
Helpful
4
Replies

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

kcaporaso
Level 1
Level 1

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

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)#

View solution in original post

4 Replies 4

a.alekseev
Level 7
Level 7

look at the configuration "sh run"

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

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?

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)#

Thanks very much! That did it!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card