Re: Kernelroute problem with 2.1.122

Andreas G. Schindler (schindler@az1.de)
Tue, 29 Sep 1998 10:23:19 +0200


kuznet@ms2.inr.ac.ru wrote:
>
> Hello!
>
> > > wouldn't 8) BTW route utility can make it itself.
> > Cool,
>
> What's cool? Argh, langauge problem, I meaned "could",
> rather than "can" modality.
>
> > But how does route know -not- to delete
> > the second route above ? OK, question is not
> > very clear , What does 'route del' match on
> > to determine which route to remove ?
>
> In 2.1 both SIOCADDRT and SIOCDELRT require netmask.
> So that to flush tables, route have to read it at first.
>

Alexey,

found more strange things (remember, I'm using the latest net-tools):

ifconfig doesn't work as (long ?) before. When configuring an interface
with ip address & netmask, say 194.59.222.14 netmask 255.255.255.0,
ifconfig adds a network route to the kernel automatically.

Now, try to add the SAME route via

route add -net 194.59.222.0 netmask 255.255.255.0 dev eth0

and you will notice, the kernel accepts the same route once more !!!
A cat on /proc/net/route shows that the 2 routes are indeed identical.
I cannot get rid of these duplicates but taking the interface down.
is this a bug or a feature ?

Andreas

-- 

Dr. Andreas G. Schindler c/o Alpha Zero One Computersysteme GmbH schindler@az1.de Frankfurter Str. 141, D-63303 Dreieich Tel +49 6103 936018 Germany - To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.rutgers.edu