[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4D6E928D.6030806@candelatech.com>
Date: Wed, 02 Mar 2011 10:55:09 -0800
From: Ben Greear <greearb@...delatech.com>
To: Joe Buehler <aspam@....net>
CC: Chris Friesen <chris.friesen@...band.com>, netdev@...r.kernel.org
Subject: Re: source route ignored in favor of local interface
On 03/01/2011 11:31 AM, Joe Buehler wrote:
>> If you really want to modify things, have you looked at your ip rules?
>> "ip ru" will dump them. Typically it looks something like
>>
>> 0: from all lookup local
>> 32766: from all lookup main
>> 32767: from all lookup default
>>
>> The last item in each row is the name of the routing table. As you can
>> see, the first rule is for local interfaces, and a later rule deals with
>> the main and default routing tables.
>>
>> You could move the local lookup to rule 1 and add in a new rule 0
>> specifically dealing with your situation.
>
> We have tried some variations on modifications to ip rules, but the
> kernel appears to treat rule 0 specially -- it cannot be deleted, for
> example. This results in the enforcing of local interfaces before
> source routes -- surely something that should be a policy decision, not
> hard-coded.
>
> Let me rephrase and ask: Does anyone know how to replace the priority 0
> rule?
You can do this on more modern kernels (2.6.36 and later definately works..not sure
about earlier).
ip rule add pref 512 lookup local
ip rule del pref 0 lookup local
Thanks,
Ben
>
> Joe Buehler
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Ben Greear <greearb@...delatech.com>
Candela Technologies Inc http://www.candelatech.com
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists