Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cisco PIX 515E - Clear Route command - not working

1 view
Skip to first unread message

Matt

unread,
May 19, 2003, 5:22:03 PM5/19/03
to
I am trying to clear a route that is incorrect but I am not
successful. It seems like this should be really easy.

Here is the route as seen with a show route command:
DMZ 10.10.30.0 255.255.255.0 10.10.20.1 1 OTHER static

Here is the command I am using to delete the route:
clear route DMZ 10.10.30.0 255.255.255.0 10.10.20.1

I have also tried
route clear DMZ 10.10.30.0 255.255.255.0 10.10.20.1

When I run the command I get this response:
Type help or '?' for a list of available commands.

Do you see anything wrong?

Thanks
Matt
mmo...@rpeconsulting.com

Patrick Nefkens <pnefkensno-spam.xs4all.nl>

unread,
May 19, 2003, 5:44:39 PM5/19/03
to


Matt,

In most cases, but not all, you have to put a "no" in front of the
command to remove/disable it.

So in this case, the correct command would be:

no route DMZ 10.10.30.0 255.255.255.0 10.10.20.1


Good luck.

With kind regards,

Patrick Nefkens

Walter Roberson

unread,
May 19, 2003, 5:46:37 PM5/19/03
to
In article <d8e32063.03051...@posting.google.com>,
Matt <mmo...@rpeconsulting.com> wrote:
:I am trying to clear a route that is incorrect but I am not

:successful. It seems like this should be really easy.

:Here is the route as seen with a show route command:
:DMZ 10.10.30.0 255.255.255.0 10.10.20.1 1 OTHER static

:Here is the command I am using to delete the route:
:clear route DMZ 10.10.30.0 255.255.255.0 10.10.20.1

no route DMZ 10.10.30.0 255.255.255.0 10.10.20.1
--
And the wind keeps blowing the angel / Backwards into the future /
And this wind, this wind / Is called / Progress.
-- Laurie Anderson

Bikespace

unread,
May 19, 2003, 5:47:20 PM5/19/03
to
You're going to kick yourself.

Use "no" not "clear"

Gaz

"Matt" <mmo...@rpeconsulting.com> wrote in message
news:d8e32063.03051...@posting.google.com...

Matt

unread,
May 20, 2003, 8:12:01 AM5/20/03
to
Thanks everyone. The funny thing is that the Cisco documentation says
to use "clear".

Here it is right from Cisco's website:
Enter a static or default route for the specified interface.
(Configuration mode.)

routeif_name ip_address netmask gateway_ip [metric]

clear route [if_name ip_address [netmask gateway_ip]]

no route [if_name ip_address [netmask gateway_ip]]

show route

"Bikespace" <nos...@bikespace.co.uk> wrote in message news:<babjd9$2hm$1...@news6.svr.pol.co.uk>...

Mike Gallagher

unread,
May 20, 2003, 3:09:31 PM5/20/03
to
Matt - You know that is interesting, "no" is the correct argument to
use, but you're right about "clear". From the documentation:

"The clear route command removes route command statements from the
configuration that do not contain the CONNECT keyword."

So, ostensibly, you would think it would remove routes with the
"STATIC" keyword, but it doesn't.

Mike

mmo...@rpeconsulting.com (Matt) wrote in message news:<d8e32063.0305...@posting.google.com>...

Mike Gallagher

unread,
May 20, 2003, 3:19:35 PM5/20/03
to
Actually, you know, Cisco just needs to clarify their expanation
better. I know what they're doing. "clear" will "clear" the routes
out of the routing table, so they can be relearned. It's really for
clearing out dynamically learned (RIP/OSPF) routes and force the
routing protocol to re-run and learn all its routes again.
Technically it does "clear" the static routes, but since they are
static they are immediately "relearned" and inserted in the table.

Mike

0 new messages