Re: 2.1 can't delete routes?

H. Peter Anvin (hpa@transmeta.com)
11 Jul 1998 07:22:52 GMT


Followup to: <Pine.LNX.3.96.980710133237.989A-100000@darth.cse.ogi.edu>
By author: "Aaron J. Grier" <agrier@cse.ogi.edu>
In newsgroup: linux.dev.kernel
>
> Hmm... I think you just have to be more specific with 2.1:
>
> [root@darth agrier]# route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 10.0.0.0 * 255.0.0.0 U 0 0 0 eth1
> [root@darth agrier]# route del -net 10.0.0.0
> SIOCDELRT: Invalid argument
> [root@darth agrier]# route del -net 10.0.0.0 netmask 255.0.0.0 dev eth1
> [root@darth agrier]#
>
> and it goes away. you just have to add the netmask.
>

Might be nice to have route(8) be a little smarter when it can.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html