On Fri, Mar 12, 2010 at 03:30:14PM +0100, Massimo Lusetti wrote:
> On Fri, 12 Mar 2010 14:55:51 +0100
> Claudio Jeker <[email protected]> wrote:
> 
> > > > Wow that's a strange flag combo. Why is S & M set together?
> > > > Hmm. Another strange routing thing I need to have a loot at.
> > > > Most probably the cloning is done wrong.
> > > 
> > > Hmm, does it have to be cloned? Couldn't this be the result of
> > > route add -host, and then receiving a redirect?
> > > 
> > > Massimo, what command are you using to add these static routes?
> > > 
> 
> Yep, I simply added the route the usual openbsd way, inside hostname
> file without particular options: route add 10.0.0.1 10.10.10.10
>  
> > He adds static host routes and the redirect changes the gateway of the
> > static route. I think it would be better to add the redirect with a
> > high priority to the table so the original one is not modified. At
> > least something like this would work now.
> 
> But this way the redirect don't take precedence over static one?

If it has a higher priority it will take over, if the priority is lower
then not. At least in the host route case it works like this.

> Besides my particular case where the redirect point to a non usable
> gateway (which is indeed a bad configuration on the other side), should
> a redirect change a static route?

That's why I suggested to add an extra route, so that we can clean it up
after a while like it is done on dynamic routes cloned for stuff like MTU
updates. To change a route ireversibly and automaticaly (via ICMP) has
some bad after-taste. 

Will need to think about this. For now just turn redirection off (as you
have already done).
-- 
:wq Claudio

Reply via email to