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

Vigneswaran R (spam-protected)
Mon Jul 7 11:12:17 CEST 2014


On 07/07/2014 02:01 PM, Henning Rogge wrote:
> On 07/07/2014 09:02 AM, Vigneswaran R wrote:
<snip>
>> Tested OLSRv2 with the configuration you suggested -- main IP on 'lo' 
>> interface, link local IP on the other interfaces, and it worked fine. 
>> It reduced the routing table entries. Thanks. 
> Great to hear that it worked for you... if you want you can also do the
> following experiment, just set NO IPv4 address on the interfaces (except
> for the global one on the loopback), OLSRv2 contains a plugin that
> automatically sets linklocal IPv4 addresses on such interfaces and
> continuously looks for collisions.

Ok. Just tried that with two (qemu virtual) machines connected through 
Ethernet, and here are my observations,

* olsrv2 automatically assigned the same network address 
(169.254.1.0/16) to all the Interfaces (on both the machines)

inet 169.254.1.0/16 scope link eth0
inet 169.254.1.0/16 scope link eth1
inet 169.254.1.0/16 scope link eth2
inet 169.254.1.0/16 scope link eth3

* It displayed the below warning,

WARN(packet) src-api/subsystems/os_generic/os_net_generic_join_mcast.c 
148: Cannot set multicast 224.0.0.109 on interface eth0 (src 
169.254.1.0): Invalid argument (22)
WARN(packet) src-api/subsystems/os_generic/os_net_generic_join_mcast.c 
148: Cannot set multicast 224.0.0.109 on interface eth1 (src 
169.254.1.0): Invalid argument (22)
WARN(packet) src-api/subsystems/os_generic/os_net_generic_join_mcast.c 
148: Cannot set multicast 224.0.0.109 on interface eth2 (src 
169.254.1.0): Invalid argument (22)

* Could see the following error in the logs,

WARN(rfc5444) src-api/subsystems/oonf_rfc5444.c 867: Error while parsing 
outgoing RFC5444 packet to 224.0.0.109:269 for printing: Early end of 
packet (-2)
0000: 08bc2200 8300330a 01010100 15001001 58011001 72071001 00e31006 
00ab282f
0020: 87010200 0a010101 a9fe0100 00080214 02010000 0000
         ,------------------
         |  PACKET
         |------------------
         | * Packet version:    0
         | * Packet flags:      0x8
         | * Packet seq number: 48162
         `------------------
DEBUG(packet) src-api/subsystems/oonf_packet_socket.c 191: Sent 54 bytes 
to 224.0.0.109:269 eth1


Regards,
Vignesh





More information about the Olsr-dev mailing list