<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    The hna 1.234.56.0/27 and 123.45.67.0/24 must be replace by the HNA
    you need for your configuration.<br>
    <br>
    Your problem is simple, Dev A have no default route because Dev B
    must have the HNA 0.0.0/0 so all other olsr node send it all request
    not destinated to your internal network (destinated to the external
    network aka internet because it's the olsr node that know how to
    reach the internet).<br>
    <br>
    Dev B don't need any hna because it will automaticly declare himself
    as a /32 so all other olsr node will know how to rech it. You only
    add hna when your need to route a subnet of device not supporting
    olsr. <br>
    <br>
    So erase all hna, add the hna "0.0.0.0 0.0.0.0" to dev b that all.<br>
    <br>
    Michel<br>
    <br>
    Le 2011-08-16 16:07, John Tobias a écrit :
    <blockquote
cite="mid:CACUGKYNwffPSEFC4L3Y12PiPkidYMQeS7DkjjUZWhZTB6-8jmQ@mail.gmail.com"
      type="cite">Hi Michel,<br>
      <br>
      I used your default config on my two devices DevA and DevB. I just
      added the "olsrd_txtinfo.so.0.1" section and in interface section,
      I only put "wlan0".<br>
      <br>
      LoadPlugin "olsrd_txtinfo.so.0.1"<br>
      {<br>
          PlParam     "Accept"   "127.0.0.1"<br>
      }<br>
      <br>
      Before running the oslr, I bring up the wlan0 on both devices (see
      the command below), ping it, both devices responded to each other.<br>
      iwconfig wlan0 essid mesh0 mode ad-hoc channel 1<br>
      ifconfig wlan0 192.168.13.3 netmask 255.255.255.0 (devA)<br>
      ifconfig wlan0 192.168.13.4 netmask 255.255.255.0 (devB)<br>
      <br>
      Again, DevB is capable of reaching outside world because of eth0 -
      it has an IP 192.168.1.168 and default gateway 192.168.1.1<br>
      Here is the routing table of DevB:<br>
      <br>
      Kernel IP routing table<br>
      Destination     Gateway         Genmask         Flags Metric
      Ref    Use Iface<br>
      192.168.3.3     *               255.255.255.255 UH    2     
      0        0 wlan0<br>
      192.168.3.0     *               255.255.255.0   U     0     
      0        0 wlan0<br>
      192.168.1.0     *               255.255.255.0   U     0     
      0        0 eth0<br>
      default         192.168.1.1     0.0.0.0         UG    0     
      0        0 eth0<br>
      <br>
      While DevA is not capable of reaching outside world.<br>
      Here is the routing table of DevA:<br>
      <br>
      Kernel IP routing table<br>
      Destination     Gateway         Genmask         Flags Metric
      Ref    Use Iface<br>
      192.168.3.4     *               255.255.255.255 UH    2     
      0        0 wlan0<br>
      192.168.3.0     *               255.255.255.0   U     0     
      0        0 wlan0<br>
      <br>
      <br>
      <b>DevB status:</b><br>
      Table: Links<br>
      Local IP        Remote IP       Hyst.   LQ      NLQ     Cost<br>
      192.168.3.4     192.168.3.3     0.00    1.000   1.000   1.000   <br>
      <br>
      Table: Neighbors<br>
      IP address      SYM     MPR     MPRS    Will.   2 Hop Neighbors<br>
      192.168.3.3     YES     NO      NO      4       0<br>
      <br>
      Table: Topology<br>
      Dest. IP        Last hop IP     LQ      NLQ     Cost<br>
      192.168.3.4     192.168.3.3     1.000   1.000   1.000<br>
      192.168.3.3     192.168.3.4     1.000   1.000   1.000<br>
      <br>
      Table: HNA<br>
      Destination     Gateway<br>
      <a moz-do-not-send="true" href="http://1.234.56.0/27">1.234.56.0/27</a>  
      192.168.3.4<br>
      <a moz-do-not-send="true" href="http://123.45.67.0/24">123.45.67.0/24</a> 
      192.168.3.4<br>
      <br>
      Table: MID<br>
      IP address      Aliases<br>
      <br>
      Table: Routes<br>
      Destination     Gateway IP      Metric  ETX     Interface<br>
      <a moz-do-not-send="true" href="http://192.168.3.3/32">192.168.3.3/32</a> 
      192.168.3.3     1       1.000   wlan0  <br>
      <br>
      <br>
      <b>DevA status:</b><br>
      Table: Links<br>
      Local IP        Remote IP       Hyst.   LQ      NLQ     Cost<br>
      192.168.3.3     192.168.3.4     0.00    1.000   1.000   1.000<br>
      <br>
      Table: Neighbors<br>
      IP address      SYM     MPR     MPRS    Will.   2 Hop Neighbors<br>
      192.168.3.4     YES     NO      NO      4       0<br>
      <br>
      Table: Topology<br>
      Dest. IP        Last hop IP     LQ      NLQ     Cost<br>
      192.168.3.4     192.168.3.3     1.000   1.000   1.000<br>
      192.168.3.3     192.168.3.4     1.000   1.000   1.000<br>
      <br>
      Table: HNA<br>
      Destination     Gateway<br>
      <a moz-do-not-send="true" href="http://1.234.56.0/27">1.234.56.0/27</a>  
      192.168.3.3<br>
      <a moz-do-not-send="true" href="http://123.45.67.0/24">123.45.67.0/24</a> 
      192.168.3.3<br>
      <br>
      Table: MID<br>
      IP address      Aliases<br>
      <br>
      Table: Routes<br>
      Destination     Gateway IP      Metric  ETX     Interface<br>
      <a moz-do-not-send="true" href="http://192.168.3.4/32">192.168.3.4/32</a> 
      192.168.3.4     1       1.000   wlan0<br>
      <br>
      <br>
      I have a follow up questions:<br>
      1. In my step-by-step procedures, did I miss something?. If I have
      a mistake, could you correct it?<br>
      2. With regards to the kernel, are there any required modules?.<br>
      <br>
      <br>
      Regards,<br>
      <br>
      john<br>
      <br>
      <br>
      <br>
      <div class="gmail_quote">On Mon, Aug 15, 2011 at 8:05 PM, Michel
        Blais <span dir="ltr"><<a moz-do-not-send="true"
            href="mailto:michel@targointernet.com">michel@targointernet.com</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <p>This is the link with the default config i used at first.
            You should add security plugin if you run public network.</p>
          <p><a moz-do-not-send="true"
              href="http://staros.tog.net/wiki/OLSR" target="_blank">http://staros.tog.net/wiki/OLSR</a></p>
          <div class="gmail_quote">
            <div class="im">Le 2011-08-15 22:24, "John Tobias" <<a
                moz-do-not-send="true"
                href="mailto:john.tobias.ph@gmail.com" target="_blank">john.tobias.ph@gmail.com</a>>
              a écrit :<br type="attribution">
            </div>
            <div>
              <div class="h5">> Hi Guys,<br>
                > <br>
                > I was trying to configure my two devices to enable
                the mesh network support.<br>
                > I will call them DevA and DevB, the two devices
                seems they can see to each<br>
                > other (I can ping them vice-versa). DevB has a
                capability to go outside<br>
                > world (WAN), but DevA need to use the mesh network
                in order to go outside<br>
                > world. When, I issue a command 'ping <a
                  moz-do-not-send="true" href="http://google.com"
                  target="_blank">google.com</a>' on DevA, it doesn't
                work.<br>
                > Any idea what am I missing (Please see DevA and
                DevB configuration below)?<br>
                > <br>
                > NOTE: I do not have a router that support mesh
                networking and I am not sure<br>
                > if I needed it.<br>
                > <br>
                > DevA:<br>
                > wlan0 Link encap:Ethernet HWaddr 00:0E:8E:30:BC:07<br>
                > inet addr:192.168.13.3 Bcast:192.168.13.255
                Mask:255.255.255.0<br>
                > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
                > RX packets:28579 errors:105 dropped:0 overruns:0
                frame:0<br>
                > TX packets:3344 errors:0 dropped:0 overruns:0
                carrier:0<br>
                > collisions:0 txqueuelen:1000<br>
                > RX bytes:3761333 (3.5 Mb) TX bytes:361494 (353.0
                Kb)<br>
                > <br>
                > Table: Links<br>
                > Local IP Remote IP Hyst. LQ NLQ Cost<br>
                > 192.168.13.3 192.168.13.4 0.00 1.000 0.862 1.158<br>
                > <br>
                > Table: Neighbors<br>
                > IP address SYM MPR MPRS Will. 2 Hop Neighbors<br>
                > 192.168.13.4 YES NO NO 3 0<br>
                > <br>
                > Table: Topology<br>
                > Dest. IP Last hop IP LQ NLQ Cost<br>
                > 192.168.13.4 192.168.13.3 1.000 0.862 1.158<br>
                > 192.168.13.3 192.168.13.4 0.862 1.000 1.158<br>
                > <br>
                > Table: HNA<br>
                > Destination Gateway<br>
                > <a moz-do-not-send="true"
                  href="http://192.168.13.0/24" target="_blank">192.168.13.0/24</a>
                192.168.13.3<br>
                > <br>
                > Table: MID<br>
                > IP address Aliases<br>
                > <br>
                > Table: Routes<br>
                > Destination Gateway IP Metric ETX Interface<br>
                > <a moz-do-not-send="true"
                  href="http://192.168.13.4/32" target="_blank">192.168.13.4/32</a>
                192.168.13.4 1 1.158 wlan0<br>
                > <br>
                > <br>
                > *DevB:*<br>
                > eth0 Link encap:Ethernet HWaddr 00:25:19:BF:AF:F4<br>
                > inet addr:192.168.1.168 Bcast:192.168.1.255
                Mask:255.255.255.0<br>
                > UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1<br>
                > RX packets:9247 errors:0 dropped:0 overruns:0
                frame:0<br>
                > TX packets:3892 errors:0 dropped:0 overruns:0
                carrier:0<br>
                > collisions:0 txqueuelen:1000<br>
                > RX bytes:651031 (635.7 Kb) TX bytes:1595657 (1.5
                Mb)<br>
                > <br>
                > wlan0 Link encap:Ethernet HWaddr 00:0E:8E:30:BB:A2<br>
                > inet addr:192.168.13.4 Bcast:192.168.13.255
                Mask:255.255.255.0<br>
                > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
                > RX packets:194197 errors:480 dropped:0 overruns:0
                frame:0<br>
                > TX packets:15546 errors:0 dropped:0 overruns:0
                carrier:0<br>
                > collisions:0 txqueuelen:1000<br>
                > RX bytes:25706893 (24.5 Mb) TX bytes:1726766 (1.6
                Mb)<br>
                > <br>
                > Table: Links<br>
                > Local IP Remote IP Hyst. LQ NLQ Cost<br>
                > 192.168.13.4 192.168.13.3 0.00 0.862 1.000 1.158<br>
                > <br>
                > Table: Neighbors<br>
                > IP address SYM MPR MPRS Will. 2 Hop Neighbors<br>
                > 192.168.13.3 YES NO NO 5 0<br>
                > <br>
                > Table: Topology<br>
                > Dest. IP Last hop IP LQ NLQ Cost<br>
                > 192.168.13.4 192.168.13.3 1.000 0.862 1.158<br>
                > 192.168.13.3 192.168.13.4 0.862 1.000 1.158<br>
                > <br>
                > Table: HNA<br>
                > Destination Gateway<br>
                > <a moz-do-not-send="true"
                  href="http://192.168.13.0/24" target="_blank">192.168.13.0/24</a>
                192.168.13.4<br>
                > <br>
                > Table: MID<br>
                > IP address Aliases<br>
                > <br>
                > Table: Routes<br>
                > Destination Gateway IP Metric ETX Interface<br>
                > <a moz-do-not-send="true"
                  href="http://192.168.13.3/32" target="_blank">192.168.13.3/32</a>
                192.168.13.3 1 1.158 wlan0<br>
                > <br>
                > <br>
                > Thanks,<br>
                > <br>
                > john<br>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
    </blockquote>
  </body>
</html>