All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] how to delete routes
@ 2002-10-01 10:07 Robert Penz
  2002-10-01 14:46 ` Martin A. Brown
  2002-10-01 18:58 ` Wojtek Sawasciuk
  0 siblings, 2 replies; 3+ messages in thread
From: Robert Penz @ 2002-10-01 10:07 UTC (permalink / raw)
  To: lartc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

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.

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

- -- 
Regards,
Robert
- ----------------
Robert Penz
robert.penz AT outertech.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9mXPI8tTsQqJDUBMRAvRsAJ9vWIeQ9gMkps/vEdVYzE02FZlOJACfRhY8
3Iu2ubWWEN4WdF+VbLoxTYw=
=wt7S
-----END PGP SIGNATURE-----

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] how to delete routes
  2002-10-01 10:07 [LARTC] how to delete routes Robert Penz
@ 2002-10-01 14:46 ` Martin A. Brown
  2002-10-01 18:58 ` Wojtek Sawasciuk
  1 sibling, 0 replies; 3+ messages in thread
From: Martin A. Brown @ 2002-10-01 14:46 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] how to delete routes
  2002-10-01 10:07 [LARTC] how to delete routes Robert Penz
  2002-10-01 14:46 ` Martin A. Brown
@ 2002-10-01 18:58 ` Wojtek Sawasciuk
  1 sibling, 0 replies; 3+ messages in thread
From: Wojtek Sawasciuk @ 2002-10-01 18:58 UTC (permalink / raw)
  To: lartc

On Tue, 1 Oct 2002, Robert Penz wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi!
> 
> 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.
> 
> Babylon5:~# ip rule ls
> 0:      from all lookup local
> 32759:  from 10.149.19.168 lookup stuebi

ip ru d from 10.149.19.168 t stuebi
or
ip ru d from 10.149.19.168 pref 32759


-- 
Wojtek Sawasciuk, net & sys administrator, ALT MAIL: voyo@gad.pl
http://GAD.pl - e-biznes, e-multimedia, | tel.: 077 44 14 105,
http://PUNKT.pl - lacza, hosting	| fax:  077 45 31 222,

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-01 18:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-01 10:07 [LARTC] how to delete routes Robert Penz
2002-10-01 14:46 ` Martin A. Brown
2002-10-01 18:58 ` Wojtek Sawasciuk

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.