On Mon, 28 Sep 1998 kuznet@ms2.inr.ac.ru wrote:
> Hello!
>
> > > > wouldn't a
> > > > route del -net x.x.x.0
> > > >
> > > > without netmask become a sort of wild card if we had
> > > >
> > > > route add -net x.x.x.0 netmask 255.255.255.127 dev eth0
> > > > route add -net x.x.x.0 netmask 255.255.255.127 dev eth1
> > > >
> > > > Removing both routes ? , May not be what we want .
> >
> > > wouldn't 8) BTW route utility can make it itself.
> > Cool,
>
> What's cool?
That the above "route del" statement "wouldn't 8)" .
Because from what I can see it might , but doesn't .
(above statement isn't derived from digging in the code)
>Argh, langauge problem, I meaned "could",
> rather than "can" modality.
I beleive I understood your original statement . :-)
> > 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.
Given equal cost path routing like above .
How does SIOCDELRT even with the netmask determine
which of the two above to remove ?
The netmasks & the net portion are identical ,
all that differs is the destination .
In the above case should "route del" require / recommend
a full route description like :
route del -net 'network' netmask 'mask' gw 'gateway'
Or does it select the first route in its table ?
Also does SIOCADDRT add routes into it's table in a
fifo manner or ??? I think I see the answer to this .
More specific routes are on -top- (so to speak) and
the less specific ones are lower . (correct ?)
Ie:
205.134.220.254 mask 255.255.255.255 gw blah1
205.134.220.0 mask 255.255.255.0 gw blah1
205.134.192.0 mask 255.255.224.0 gw blah1
205.134.0.0 mask 255.255.0.0 gw blah1
> > > > does 2.1.x support equal cost path routing ?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
????????????????????????????????????????????
Tia, JimL
+-----------------------------------------------------------------------+
| James W. Laferriere - Network Engineer - babydr@nwrain.net |
| System Techniques - 25416 - 22nd S. - Des-Moines, WA 98198 |
| Give me VMS -or- Give me Linux -but- only on AXP |
+-----------------------------------------------------------------------+
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu