Skip to contentSkip to conversation

how to delete routes

LARTC Robert Penz 3 participants 3 messages Oct 1, 2002

lore
Share & tools
lore
#0 lore raw

-----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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

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

Signature · 6 lines
Martin A. Brown --- SecurePipe, Inc. --- [email protected]


_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Robert Penz
Quoted 5 lines · Robert Penz

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

Hi!

Quoted 8 lines

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

Signature · 7 lines
Wojtek Sawasciuk, net & sys administrator, ALT MAIL: [email protected]
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/