Re: how to delete routes

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux