[PLUG] route delete errors

VY vyau5678 at gmail.com
Sun Mar 28 22:10:09 UTC 2010


Thanks for your reply.  I am a networking novice so maybe there is something
that I am doing wrong.
I just did this:

   sudo  route  del  -net  98.171.145.0/24  dev  eth0

and got back

   SIOCDELRT: No such process


I do not have a static route to that subnet in my routing table but I want
to cut off traffic to any of the 255 hosts in that subnet for a short period
of time -- hence I want to delete access to that network.
Am I using the wrong tool?



--Vincent



On Sun, Mar 28, 2010 at 10:26 AM, Michael Rasmussen <michael at jamhome.us>wrote:

> On Sun, Mar 28, 2010 at 10:24:03AM -0700, Michael Rasmussen wrote:
> > 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
>
> Silly me, I should read beyond the synopsis.
>
>     sudo route del -net $IP/$CIDR dev $IFACE
>
> is the simple, quick command.
>
>
>
> > 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"]
> > _______________________________________________
> > 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 are not dead yet.  But watch for further reports.
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>



More information about the PLUG mailing list