[Olsr-dev] olsrv2 routes with same source IP regardless of outgoing interface

Vigneswaran R (spam-protected)
Wed Jun 25 12:50:01 CEST 2014


On 06/25/2014 04:13 PM, Henning Rogge wrote:
> Yes,
>
> I think this behavior is correct, the originator is the global node IP
> to identify the node, so it should be reachable over all interfaces...
>
> if you want to overwrite the source address, put the address on the
> loopback interface (as a /32 or /128), add the loopback interface to
> the OLSRv2 interface list and use the same source-ip for the whole
> node.

Ok, thank you.

Vignesh

>
> Henning
>
> On Wed, Jun 25, 2014 at 12:35 PM, Vigneswaran R <(spam-protected)> wrote:
>> Hello,
>>
>> I observed that the routes added by OLSRv2 are having the originator IP
>> address as the source IP, regardless of the outgoing interface. (With
>> olsrv1, the IP on the outgoing Interface is used as the SRC IP). Sample
>> OLSRv2 routes,
>>
>> 10.1.2.1 via 10.1.2.1 dev eth0  proto 100  src 10.1.1.1  metric 2 onlink
>> 10.1.4.1 via 10.1.4.1 dev eth1  proto 100  src 10.1.1.1  metric 2 onlink
>> 10.1.5.1 via 10.1.5.1 dev eth2  proto 100  src 10.1.1.1  metric 2 onlink
>>
>> The following lines (src/olsrv2/olsrv2_routing.c) seem to confirm that as
>> the expected behaviour. Is that correct?
>>
>>      if (_domain_parameter[rtentry->domain->index].use_srcip_in_routes
>>          && netaddr_get_address_family(&rtentry->route.dst) == AF_INET) {
>>        memcpy(&rtentry->route.src, olsrv2_originator_get(AF_INET),
>>            sizeof(rtentry->route.src));
>>      }
>>
>>
>> Regards,
>> Vignesh
>>
>> --
>> Olsr-dev mailing list
>> (spam-protected)
>> https://lists.olsr.org/mailman/listinfo/olsr-dev





More information about the Olsr-dev mailing list