[PLUG] route delete errors

Michael Rasmussen michael at jamhome.us
Sun Mar 28 17:24:03 UTC 2010


On Sun, Mar 28, 2010 at 10:16:44AM -0700, Michael Rasmussen wrote:
> On Sun, Mar 28, 2010 at 09:18:08AM -0700, VY wrote:
> > Thanks for your reply.
> > 
> > Yes, it is repeatable and I used this command:
> > 
> >    sudo route delete $IP 127.0.0.1
>  
> Do you really route $IP through 127.0.0.1?
> 
> Having said that...
> 
> A visit to `man route` would be in order then you'd see the sytax for the command is
> something like:
> 
>    sudo route delete -net $IP netmask $MASK gw $GW_IP
 
Having had to look it up myself, I kept playing thinking "there has to be an easier way.
So far the "best" is:

   sudo route del -net $IP netmask $MASK dev $IFACE

If you have more than one network interface $IFACE may need to be determined with something like:

  michael at hive:~/play$ netstat -nr
  Kernel IP routing table
  Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
  64.105.252.40   0.0.0.0         255.255.255.248 U         0 0          0 eth0
  192.168.14.0    64.105.252.41   255.255.255.0   UG        0 0          0 eth0
  169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
  0.0.0.0         64.105.252.41   0.0.0.0         UG        0 0          0 eth0

And the relevant clue stick from `man route` is:

    SYNOPSIS

       route  [-v] [-A family] del [-net|-host] target [gw Gw] [netmask Nm] [metric N] [[dev] If]

  
> > On Fri, Mar 26, 2010 at 5:44 PM, Marvin Kosmal <mkosmal at gmail.com> wrote:
> > 
> > > Can you post the command you are  using??
> > >
> > > Is this repeatable?
> > >
> > >
> > > Marvin
> > >
> > >
> > > On 3/26/10, VY <vyau5678 at gmail.com> wrote:
> > > > Hi:
> > > >
> > > > I am trying to delete from network routes on my routing table and I get
> > > > errors like:
> > > >
> > > >  SIOCDELRT: No such device
> > > >
> > > > or
> > > >
> > > > SIOCDELRT: No such process
> > > >
> > > > What do those errors usually mean?
> > > >
> > > > thanks
> > > >
> > > > --v
> > > > _______________________________________________
> > > > PLUG mailing list
> > > > PLUG at lists.pdxlinux.org
> > > > http://lists.pdxlinux.org/mailman/listinfo/plug
> > > >
> > > _______________________________________________
> > > PLUG mailing list
> > > PLUG at lists.pdxlinux.org
> > > http://lists.pdxlinux.org/mailman/listinfo/plug
> > >
> > _______________________________________________
> > PLUG mailing list
> > PLUG at lists.pdxlinux.org
> > http://lists.pdxlinux.org/mailman/listinfo/plug
> > 
> 
> -- 
>       Michael Rasmussen, Portland Oregon  
>   Trading kilograms for kilometers since 2003
>     Be appropriate && Follow your curiosity
>           http://www.jamhome.us/
> The Fortune Cookie Fortune today is:
> You will live a long, healthy, happy life and make bags of money.
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
> 

-- 
      Michael Rasmussen, Portland Oregon  
  Trading kilograms for kilometers since 2003
    Be appropriate && Follow your curiosity
          http://www.jamhome.us/
The Fortune Cookie Fortune today is:
Never laugh at live dragons.
		-- Bilbo Baggins [J.R.R. Tolkien, "The Hobbit"]



More information about the PLUG mailing list