Hi Ahbaid,
           The man pages of route clearly explains all your doubts. 

However, i will give a brief intro.

if you have the routing talbe something like this 

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.1.16    *               255.255.255.255 UH    0      0        0
eth0
192.168.1.0     *               255.255.255.0   U     0      0        0
eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         web-server.indi 0.0.0.0         UG    0      0        0
eth0

and NOW YOU WANT TO DELETE THE DEFAULT ROUTE.
use the command (be in root)
/sbin/route del default

or
IF YOU WANT TO DELETE THE NETWORK 192.168.1.0 

use the command 
/sbin/route del -net 192.168.1.0

now you routes are deleted.

How does the OS rebuilds the routing table - Acutally when the OS comes up
it first looks into the file /sbin/ifup . If he is unable to build the
routing table, he the looks into /etc/sysconfig/static-routes file to get
the same.

If you are not sure/not clear about these file, then you can manually
inovke it and can put it in the /etc/rc.d/rc.local file so that your
manually added routes comes up again while rebooting !!!!!!!!!

You can look into these above mentioned files , which is self
explainatory.

Regards
K.Deepak


-------------------------------------------------------------------------------
K.DEEPAK
AdventNet Development Centre (India) Pvt Ltd
Phone : +91-44-2432414,2432748,2432749
Email : [EMAIL PROTECTED]
-------------------------------------------------------------------------------

On Tue, 4 Jul 2000, Ahbaid Gaffoor wrote:

> How do I delete routes using "route"?...
> 
> route del ????
> 
> where does the routing table get built from when a machine boots?
> 
> thanks,
> 
> Ahbaid.
> 
> P.S. I did a man on route
> 
> 
> -- 
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
> 


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to