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

Vigneswaran R (spam-protected)
Mon Jul 7 11:28:03 CEST 2014


On 07/07/2014 02:44 PM, Henning Rogge wrote:
> On 07/07/2014 11:12 AM, Vigneswaran R wrote:
>> 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
> Hmm... same IPv6 linklocal Address (and MAC) on each of the four interfaces?
>
> Can you give me both (mac and IPv6) so I can reproduce and fix the bug?

I am not using any IPv6 address. Below is the output of 'ip addr' command,

Machine #1
----------
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
     inet 127.0.0.1/8 scope host lo
     inet 10.1.1.1/32 scope global lo
     inet6 ::1/128 scope host
        valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
state UP qlen 1000
     link/ether 00:ab:28:2f:87:00 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
state UP qlen 1000
     link/ether 00:ab:28:2f:87:01 brd ff:ff:ff:ff:ff:ff
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
state UP qlen 1000
     link/ether 00:ab:28:2f:87:02 brd ff:ff:ff:ff:ff:ff
5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
state UP qlen 1000
     link/ether 00:00:ab:9c:56:03 brd ff:ff:ff:ff:ff:ff

Machine #2
----------
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
     inet 127.0.0.1/8 scope host lo
     inet 10.1.2.1/32 scope global lo
     inet6 ::1/128 scope host
        valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
state UP qlen 1000
     link/ether 00:ab:a7:44:02:00 brd ff:ff:ff:ff:ff:ff
     inet 169.254.1.0/16 scope link eth0
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
state UP qlen 1000
     link/ether 00:ab:a7:44:02:01 brd ff:ff:ff:ff:ff:ff
     inet 169.254.1.0/16 scope link eth1
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
state UP qlen 1000
     link/ether 00:00:ab:fe:fc:02 brd ff:ff:ff:ff:ff:ff
     inet 169.254.1.0/16 scope link eth2
5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
state UP qlen 1000
     link/ether 00:00:ab:75:13:03 brd ff:ff:ff:ff:ff:ff
     inet 169.254.1.0/16 scope link eth3

PFA the olsrv2 log collected from Machine #1. Hope that helps.


Regards,
Vignesh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: olsrd2.log.tgz
Type: application/x-compressed-tar
Size: 36019 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20140707/2554c0b9/attachment.bin>


More information about the Olsr-dev mailing list