<div>On Sat, Oct 23, 2010 at 4:03 AM, mason <span dir="ltr"><<a href="mailto:myongsu.choe@gmail.com">myongsu.choe@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br><br>I am trying to configure the following network using olsr.<br><br><br>PC <-----> Node 1 ---- Node 2 ---- Node 3 <----> Camera<br>    wired       wireless    wireless       wired<br><br><br>PC: <a href="http://172.31.1.10/24" target="_blank">172.31.1.10/24</a><br>

Node1: WAN (<a href="http://172.31.1.110/24" target="_blank">172.31.1.110/24</a>)<br>       LAN (<a href="http://172.16.1.110/24" target="_blank">172.16.1.110/24</a>)<br>      WLAN (<a href="http://10.10.1.110/24" target="_blank">10.10.1.110/24</a>)<br>
Node2:<br>       LAN (<a href="http://172.16.1.120/24" target="_blank">172.16.1.120/24</a>)<br>
      WLAN (<a href="http://10.10.1.120/24" target="_blank">10.10.1.120/24</a>)<br>Node3:<br>       LAN (<a href="http://172.16.1.130/24" target="_blank">172.16.1.130/24</a>)<br>      WLAN (<a href="http://10.10.1.130/24" target="_blank">10.10.1.130/24</a>)<br>
Camera: <a href="http://172.16.1.210/24" target="_blank">172.16.1.210/24</a><br>
<br><br>Basically. PC wants to monitor the scene from camera. Although I imposed firewall to allow all<br>of the traffic between interfaces, routing between olsr running nodes are working well.</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>I can ping PC <--> Node1, Node1<--> Node2<--->Node3 and Node2<-->Camera.<br>
In other case, like PC <--> Camera, PC<-->Node2, PC<-->Node3, I can not find any connectivity between them.<br></blockquote><div><div>olsrd generates only routes to targets it knows! #1 <br></div><div><br>
</div><div>so you need to add hna entries in the olsrd.conf for the pc on node1 and the camera on node3.<br>this announces that pc is reachable via node1 (and camera via node3) in the olsr mesh.<br><br></div><div>you can announce the whole network, or just some hosts</div>
<div>e.g. on node3 (announce only the camera )<br>Hna4{<br><a href="http://172.16.1.110/24" target="_blank">172.16.1.210</a> 255.255.255.255<br></div><div>}</div><div><br></div><div>on node1 (announce the complete WAN segment (<a href="http://172.31.1.0/24">172.31.1.0/24</a>))<br>
Hna4{<br><a href="http://172.31.1.110/24" target="_blank">172.31.1.0 255.255.255.0</a><br>}<br><br>furthermore you need static routes (e.g. a default route / correct gateway) on the pc and on the camera<br></div><div>e.g. camera: gateway: <a href="http://172.16.1.110/24" target="_blank">172.16.1.110</a><br>
on the pc 172.31.1.110</div></div><div><br></div><div>Markus</div><div><br></div><div>p.s. it`s "enough" to use WLAN as the only olsr "interfaces" on all your nodes in this setup.</div><div><br>Adding interfaces without olsr neighbours has not much "benefit", as olsr does not announce the network segments on this interfaces automatically -> you need to use HNAs for this.<br>
</div><div><br></div><div>furthermore you used the same segement (<a href="http://172.16.1.0/24">172.16.1.0/24</a>) for LAN on all nodes, <br>this ist not helpful to get connectivity between them,.. <br></div><div><br></div>
<div>#1 btw: olsr only create routes, it does not handle any trafffic itself</div></div>