[Olsr-users] OLSR network routing question

Deepak Lal (spam-protected)
Wed Feb 15 15:23:10 CET 2017


Thanks.


I tried two appproaches and neither work correctly.


Approach 1) On the TWO multi-homed linux routers, I had the following config (192.168.2.0/24 is mesh network and 192.168.3.0/24 is lan)

---

[olsrv2]

  lan 192.168.3.0/24


[interface eth1]

----

The issue here was that the whole topology was not propagated


-> 192.168.2.10/11 could not reach 192.168.2.12 and vice-versa

->192.168.2.10/11 could not reach 192.168.3.2

->192.168.2.12 could not reach 192.168.3.1



Approach 2)  On the two multi-homes linux routers, I had the following config (running olsr on both interfaces)


[interface eth0]

[interface eth1]


Now, I had much elaborate routing tables and almost everything was working except:


-> I could not ping 192.168.2.1 from 192.168.2.2

-> I could not ping 192.168.2.2 from 192.168.2.1

-> I could not ping 192.168.2.1 from 192.168.2.12

-> I could not ping 192.168.2.2 from 192.168.2.10



The problem here is that the route that tells me that the following route is missing and my question is WHY?


192.168.2.1 (dest)  192.168.3.1(gw)
192.168.2.2 (dest)   192.168.3.2(gw)



Thanks

________________________________
From: Henning Rogge <(spam-protected)>
Sent: February 15, 2017 2:07 AM
To: Deepak Lal
Cc: (spam-protected)
Subject: Re: [Olsr-users] OLSR network routing question

On Tue, Feb 14, 2017 at 10:13 PM, Deepak Lal <(spam-protected)> wrote:
>
> Hello,

> This network is to simulate a two networks (mesh/manet and a static network). Objective is for all nodes to be able to ping each other.
>
> Mesh is the 192.168.2.0/24 network and the other network is 192.168.3.0/24
>
> On the laptops connected to both mesh and static network I am running OLSR on both eth0 and eth1. I am also displaying the routing table populated by OSLRv2
>
>
> I am able to ping almost every node to every node.
>
>
> Issue I am having is that the interfaces 192.168.2.1 and 192.168.2.2 are not being propagated by OSLR.
>
> I cannot ping 192.168.2.1 FROM 192.168.2.12 or even 192.168.2.2
>
> I cannot ping 192.168.2.2 FROM 192.168.2.10, 192.168.2.11 and even 192.168.2.1
>
>
> I was expecting to see a route such as
>
>
> 192.168.2.1 (dest)  192.168.3.1(gw)
>
> 192.168.2.2 (dest)   192.168.3.2(gw)

By default olsrd only propagates the addresses of the mesh interfaces,
olsrd2 only propagates the chosen originator IP address!

Neither propagates a prefix of a non-mesh interface unless you specify
it in the configuration.

In case of olsrd, you want to set a HNA entry in the configuration...
in olsrd2, you set a "lan" (locally attached network) in the "olsrv2"
section of the configuration or use the lan_import plugin (see
olsr.org wiki "deployments").

Henning
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20170215/8fdf3ac5/attachment.html>


More information about the Olsr-users mailing list