[Olsr-users] Include all advertised IPs in the routing table

Michele Segata (spam-protected)
Fri Jan 20 16:54:10 CET 2017

Hi everyone,

I have a question regarding the configuration of OLSRv2 in a simple 
network. Consider the following network topology:

  .0.1      .1.1   .1.2     .2.1
0 ------------- 1 ------------- 2

The network is "flat", and all addresses belong to the 
network. We are trying some experiments using mininet and OLSRv2 with a 
very basic OLSR configuration which is the following:

       originator    -
       originator    -::/0
       originator    default_accept
       bindto        -
       bindto        -::/0
       bindto        default_accept

The configuration is taken from the OLSR wiki to enable only IP4. In 
addition, each node enables OLSR on all its interfaces (but the 
loopback) using

[interface=<interface name>]

By running the mininet emulation, everything works almost as expected. 
After some seconds, the routing tables are populated. For example, this 
is the routing table for node 0

Kernel IP routing table
Destination  Gateway   Genmask         Flags Metric Iface     *       U     0      h0_0-eth1 UGH   2      h0_0-eth1 UGH   2      h0_0-eth1

and this is the routing table for node 2

Kernel IP routing table
Destination  Gateway   Genmask         Flags Metric Iface     *       U     0      h2_2-eth1 UGH   2      h2_2-eth1 UGH   2      h2_2-eth1

I said that everything is working "almost" as expected because I was 
expecting the routing tables of nodes 0 and 2 to include the IP address as a possible destination, but this does not happen.
I checked whether node 1 is including both IPs in its messages, and it 
does, so it seems like OLSR decides not to include that address in the 
routing table. The questions are:
1) why does this happen?
2) how can I tell OLSR to include all IPs when populating the routing 

Thanks in advance

Michele Segata, PhD
Department of Information Engineering and Computer Science
University of Trento, Italy

More information about the Olsr-users mailing list