All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin A. Brown" <mabrown-lartc@securepipe.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] how to delete routes
Date: Tue, 01 Oct 2002 14:46:46 +0000	[thread overview]
Message-ID: <marc-lartc-103348365808189@msgid-missing> (raw)
In-Reply-To: <marc-lartc-103346721424680@msgid-missing>

Robert,

 : I've setup some routing tables, but how can I delete them? currently it
 : looks like that, but how I delete the tables stuebi and notebook and
 : how the entry in the main table. thx for your help.

You say "how can I delete routes?", yet you show the routing policy 
database.

Here's how you can remove routes from an entire table:

# ip route flush table stuebi
# ip route flush table notebook

You can also do something like the following:

# ip route show table stuebi

And then pick out the routes you want to eliminate by hand like this 
(e.g.):

# ip route del table stuebi default via 192.168.0.1

If what you really wish to do is remove rules from the routing policy 
database, then you need something like this:

# ip rule del from 10.149.19.168 lookup stuebi

(The word "lookup" can be replaced with the word "table" if you prefer.)

 : Babylon5:~# ip rule ls
 : 0:      from all lookup local
 : 32759:  from 10.149.19.168 lookup stuebi
 : 32760:  from 10.149.17.72 lookup stuebi
 : 32761:  from 10.149.17.72 lookup stuebi
 : 32762:  from 10.149.17.72 lookup stuebi
 : 32763:  from 10.149.17.72 lookup stuebi
 : 32764:  from 10.149.19.168 lookup stuebi
 : 32765:  from 10.149.19.168 lookup stuebi
 : 32766:  from all lookup main
 : 32767:  from all lookup default

-Martin

-- 
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  reply	other threads:[~2002-10-01 14:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-01 10:07 [LARTC] how to delete routes Robert Penz
2002-10-01 14:46 ` Martin A. Brown [this message]
2002-10-01 18:58 ` Wojtek Sawasciuk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-103348365808189@msgid-missing \
    --to=mabrown-lartc@securepipe.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.