[Olsr-users] Help in mesh configuration

John Tobias (spam-protected)
Wed Aug 17 00:28:21 CEST 2011


Hi Guys,

I ping google.com using its IP address (74.125.224.50). Unfortunately, I am
still no luck.
# ping 74.125.224.50 returning "ping: sendto: Network is unreachable"

Here's the tcpdump:

22:05:28.008300 IP 192.168.3.3.698 > 192.168.3.255.698: UDP, length 28
22:05:28.418273 IP 192.168.3.4.698 > 192.168.3.255.698: UDP, length 28
22:05:29.008850 IP 192.168.3.3.698 > 192.168.3.255.698: UDP, length 56
22:05:29.318786 IP 192.168.3.4.698 > 192.168.3.255.698: UDP, length 28
22:05:29.910949 IP 192.168.3.3.698 > 192.168.3.255.698: UDP, length 28
22:05:30.121032 IP 192.168.3.4.698 > 192.168.3.255.698: UDP, length 88
22:05:30.712036 IP 192.168.3.3.698 > 192.168.3.255.698: UDP, length 56
22:05:31.121215 IP 192.168.3.4.698 > 192.168.3.255.698: UDP, length 28
22:05:31.612548 IP 192.168.3.3.698 > 192.168.3.255.698: UDP, length 28
22:05:32.021331 IP 192.168.3.4.698 > 192.168.3.255.698: UDP, length 68
22:05:32.514953 IP 192.168.3.3.698 > 192.168.3.255.698: UDP, length 56
22:05:33.022888 IP 192.168.3.4.698 > 192.168.3.255.698: UDP, length 28
22:05:33.415557 IP 192.168.3.3.698 > 192.168.3.255.698: UDP, length 28
22:05:34.023986 IP 192.168.3.4.698 > 192.168.3.255.698: UDP, length 88
22:05:34.216979 IP 192.168.3.3.698 > 192.168.3.255.698: UDP, length 28
22:05:34.824035 IP 192.168.3.4.698 > 192.168.3.255.698: UDP, length 28
22:05:35.118072 IP 192.168.3.3.698 > 192.168.3.255.698: UDP, length 56
22:05:35.724975 IP 192.168.3.4.698 > 192.168.3.255.698: UDP, length 68
22:05:36.119750 IP 192.168.3.3.698 > 192.168.3.255.698: UDP, length 28
22:05:36.625335 IP 192.168.3.4.698 > 192.168.3.255.698: UDP, length 28
22:05:37.120788 IP 192.168.3.3.698 > 192.168.3.255.698: UDP, length 56
22:05:37.527313 IP 192.168.3.4.698 > 192.168.3.255.698: UDP, length 88
22:05:38.121185 IP 192.168.3.3.698 > 192.168.3.255.698: UDP, length 56
22:05:38.528839 IP 192.168.3.4.698 > 192.168.3.255.698: UDP, length 28
22:05:39.121307 IP 192.168.3.3.698 > 192.168.3.255.698: UDP, length 28
22:05:39.530944 IP 192.168.3.4.698 > 192.168.3.255.698: UDP, length 68
22:05:40.021728 IP 192.168.3.3.698 > 192.168.3.255.698: UDP, length 56
22:05:40.431396 IP 192.168.3.4.698 > 192.168.3.255.698: UDP, length 28

Any idea?.

Regards,

john


On Tue, Aug 16, 2011 at 2:22 PM, Markus Kittenberger <
(spam-protected)> wrote:

> jep!
>
> dns servers do not sneak on its own to your configuration files,..
> (usually dhcp brings them, (-;)
>
> so add one in /etc/resolv.conf
>
> btw setting up dns is not related to oslrd anymore:
>  oslrd just creates routes to your mesh,.. (and to extrenal networks)
>  everything else (including if and which dns to use) is up to you,..
>
>
> On Tue, Aug 16, 2011 at 11:18 PM, John Tobias <(spam-protected)>wrote:
>
>> Hi Markus,
>>
>> No dns server on devA.
>>
>> john
>>
>>
>>
>>
>>
>> On Aug 16, 2011, at 2:14 PM, Markus Kittenberger <
>> (spam-protected)> wrote:
>>
>> did u set up an dns server on devA ???
>>
>> MArkus
>>
>> On Tue, Aug 16, 2011 at 11:04 PM, John Tobias <<(spam-protected)>
>> (spam-protected)> wrote:
>>
>>> Hey Guys,
>>>
>>> Thanks for your patient. I corrected the Hna4 of devB, I put "0.0.0.0
>>> 0.0.0.0".
>>>
>>> *Here's the latest status of DevB:*
>>>
>>> Table: Links
>>> Local IP        Remote IP       Hyst.   LQ      NLQ     Cost
>>> 192.168.3.4     192.168.3.3     0.00    0.905   1.000   1.104
>>>
>>> Table: Neighbors
>>> IP address      SYM     MPR     MPRS    Will.   2 Hop Neighbors
>>> 192.168.3.3     YES     NO      NO      4       1
>>>
>>> Table: Topology
>>> Dest. IP        Last hop IP     LQ      NLQ     Cost
>>> 192.168.3.4     192.168.3.3     1.000   0.905   1.104
>>> 192.168.3.3     192.168.3.4     0.905   1.000   1.104
>>>
>>> Table: HNA
>>> Destination     Gateway
>>> 0.0.0.0/0       192.168.3.4
>>>
>>>
>>> Table: MID
>>> IP address      Aliases
>>>
>>> Table: Routes
>>> Destination     Gateway IP      Metric  ETX     Interface
>>> 192.168.3.3/32  192.168.3.3     1       1.104   wlan0
>>>
>>>
>>> *Here's the latest status of DevA:*
>>>
>>> Table: Links
>>> Local IP        Remote IP       Hyst.   LQ      NLQ     Cost
>>> 192.168.3.3     192.168.3.4     0.00    1.000   0.937   1.066
>>>
>>>
>>> Table: Neighbors
>>> IP address      SYM     MPR     MPRS    Will.   2 Hop Neighbors
>>> 192.168.3.4     YES     NO      NO      4       0
>>>
>>> Table: Topology
>>> Dest. IP        Last hop IP     LQ      NLQ     Cost
>>> 192.168.3.4     192.168.3.3     1.000   0.937   1.066
>>> 192.168.3.3     192.168.3.4     0.940   0.835   1.271
>>>
>>> Table: HNA
>>> Destination     Gateway
>>> 0.0.0.0/0       192.168.3.4
>>>
>>>
>>> Table: MID
>>> IP address      Aliases
>>>
>>> Table: Routes
>>> Destination     Gateway IP      Metric  ETX     Interface
>>> 0.0.0.0/0       192.168.3.4     1       1.066   wlan0
>>> 192.168.3.4/32  192.168.3.4     1       1.066   wlan0
>>>
>>> *Here's the latest routing table of DevA:*
>>>
>>> Kernel IP routing table
>>> Destination     Gateway         Genmask         Flags Metric Ref    Use
>>> Iface
>>> 192.168.3.4     *               255.255.255.255 UH    2      0        0
>>> wlan0
>>> 192.168.3.0     *               255.255.255.0   U     0      0        0
>>> wlan0
>>>  default         192.168.3.4     0.0.0.0         UG    2      0        0
>>> wlan0
>>>
>>> But, when I ping <http://google.com>google.com, I got ping: bad address
>>> ' <http://google.com>google.com'.
>>>
>>> Btw, I am using olsrd-0.6.1 released of olsr.
>>>
>>> Regards,
>>>
>>> john
>>>
>>>
>>>
>>>
>>> On Tue, Aug 16, 2011 at 1:32 PM, Markus Kittenberger <<(spam-protected)>
>>> (spam-protected)> wrote:
>>>
>>>> as i already said in my previous mail,..
>>>>
>>>> you have to announce the "outside world" with olsr on devB
>>>>
>>>> e.g. such an hna
>>>>
>>>> Hna4
>>>> {
>>>>         0.0.0.0         0.0.0.0
>>>> }
>>>>
>>>> Markus
>>>>
>>>> On Tue, Aug 16, 2011 at 10:07 PM, John Tobias <<(spam-protected)>
>>>> (spam-protected)> wrote:
>>>>
>>>>> Hi Michel,
>>>>>
>>>>> 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".
>>>>>
>>>>> LoadPlugin "olsrd_txtinfo.so.0.1"
>>>>> {
>>>>>     PlParam     "Accept"   "127.0.0.1"
>>>>> }
>>>>>
>>>>> Before running the oslr, I bring up the wlan0 on both devices (see the
>>>>> command below), ping it, both devices responded to each other.
>>>>> iwconfig wlan0 essid mesh0 mode ad-hoc channel 1
>>>>> ifconfig wlan0 192.168.13.3 netmask 255.255.255.0 (devA)
>>>>> ifconfig wlan0 192.168.13.4 netmask 255.255.255.0 (devB)
>>>>>
>>>>> 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
>>>>> Here is the routing table of DevB:
>>>>>
>>>>> Kernel IP routing table
>>>>> Destination     Gateway         Genmask         Flags Metric Ref    Use
>>>>> Iface
>>>>> 192.168.3.3     *               255.255.255.255 UH    2      0        0
>>>>> wlan0
>>>>> 192.168.3.0     *               255.255.255.0   U     0      0        0
>>>>> wlan0
>>>>> 192.168.1.0     *               255.255.255.0   U     0      0        0
>>>>> eth0
>>>>> default         192.168.1.1     0.0.0.0         UG    0      0        0
>>>>> eth0
>>>>>
>>>>> While DevA is not capable of reaching outside world.
>>>>> Here is the routing table of DevA:
>>>>>
>>>>> Kernel IP routing table
>>>>> Destination     Gateway         Genmask         Flags Metric Ref    Use
>>>>> Iface
>>>>> 192.168.3.4     *               255.255.255.255 UH    2      0        0
>>>>> wlan0
>>>>> 192.168.3.0     *               255.255.255.0   U     0      0        0
>>>>> wlan0
>>>>>
>>>>>
>>>>> *DevB status:*
>>>>>
>>>>> Table: Links
>>>>> Local IP        Remote IP       Hyst.   LQ      NLQ     Cost
>>>>> 192.168.3.4     192.168.3.3     0.00    1.000   1.000   1.000
>>>>>
>>>>> Table: Neighbors
>>>>> IP address      SYM     MPR     MPRS    Will.   2 Hop Neighbors
>>>>> 192.168.3.3     YES     NO      NO      4       0
>>>>>
>>>>>
>>>>> Table: Topology
>>>>> Dest. IP        Last hop IP     LQ      NLQ     Cost
>>>>>  192.168.3.4     192.168.3.3     1.000   1.000   1.000
>>>>> 192.168.3.3     192.168.3.4     1.000   1.000   1.000
>>>>>
>>>>> Table: HNA
>>>>> Destination     Gateway
>>>>> 1.234.56.0/27   192.168.3.4
>>>>> 123.45.67.0/24  192.168.3.4
>>>>>
>>>>>
>>>>> Table: MID
>>>>> IP address      Aliases
>>>>>
>>>>> Table: Routes
>>>>> Destination     Gateway IP      Metric  ETX     Interface
>>>>> 192.168.3.3/32  192.168.3.3     1       1.000   wlan0
>>>>>
>>>>>
>>>>> *DevA status:*
>>>>>
>>>>> Table: Links
>>>>> Local IP        Remote IP       Hyst.   LQ      NLQ     Cost
>>>>> 192.168.3.3     192.168.3.4     0.00    1.000   1.000   1.000
>>>>>
>>>>>
>>>>> Table: Neighbors
>>>>> IP address      SYM     MPR     MPRS    Will.   2 Hop Neighbors
>>>>> 192.168.3.4     YES     NO      NO      4       0
>>>>>
>>>>>
>>>>> Table: Topology
>>>>> Dest. IP        Last hop IP     LQ      NLQ     Cost
>>>>> 192.168.3.4     192.168.3.3     1.000   1.000   1.000
>>>>> 192.168.3.3     192.168.3.4     1.000   1.000   1.000
>>>>>
>>>>> Table: HNA
>>>>> Destination     Gateway
>>>>> 1.234.56.0/27   192.168.3.3
>>>>> 123.45.67.0/24  192.168.3.3
>>>>>
>>>>>
>>>>> Table: MID
>>>>> IP address      Aliases
>>>>>
>>>>> Table: Routes
>>>>> Destination     Gateway IP      Metric  ETX     Interface
>>>>> 192.168.3.4/32  192.168.3.4     1       1.000   wlan0
>>>>>
>>>>>
>>>>> I have a follow up questions:
>>>>> 1. In my step-by-step procedures, did I miss something?. If I have a
>>>>> mistake, could you correct it?
>>>>> 2. With regards to the kernel, are there any required modules?.
>>>>>
>>>>>
>>>>> Regards,
>>>>>
>>>>> john
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Aug 15, 2011 at 8:05 PM, Michel Blais <<(spam-protected)>
>>>>> (spam-protected)> wrote:
>>>>>
>>>>>> This is the link with the default config i used at first. You should
>>>>>> add security plugin if you run public network.
>>>>>>
>>>>>> <http://staros.tog.net/wiki/OLSR>http://staros.tog.net/wiki/OLSR
>>>>>> Le 2011-08-15 22:24, "John Tobias" < <(spam-protected)>
>>>>>> (spam-protected)> a écrit :
>>>>>>  > Hi Guys,
>>>>>> >
>>>>>> > I was trying to configure my two devices to enable the mesh network
>>>>>> support.
>>>>>> > I will call them DevA and DevB, the two devices seems they can see
>>>>>> to each
>>>>>> > other (I can ping them vice-versa). DevB has a capability to go
>>>>>> outside
>>>>>> > world (WAN), but DevA need to use the mesh network in order to go
>>>>>> outside
>>>>>> > world. When, I issue a command 'ping <http://google.com>google.com'
>>>>>> on DevA, it doesn't work.
>>>>>> > Any idea what am I missing (Please see DevA and DevB configuration
>>>>>> below)?
>>>>>> >
>>>>>> > NOTE: I do not have a router that support mesh networking and I am
>>>>>> not sure
>>>>>> > if I needed it.
>>>>>> >
>>>>>> > DevA:
>>>>>> > wlan0 Link encap:Ethernet HWaddr 00:0E:8E:30:BC:07
>>>>>> > inet addr:192.168.13.3 Bcast:192.168.13.255 Mask:255.255.255.0
>>>>>> > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>>>>>> > RX packets:28579 errors:105 dropped:0 overruns:0 frame:0
>>>>>> > TX packets:3344 errors:0 dropped:0 overruns:0 carrier:0
>>>>>> > collisions:0 txqueuelen:1000
>>>>>> > RX bytes:3761333 (3.5 Mb) TX bytes:361494 (353.0 Kb)
>>>>>> >
>>>>>> > Table: Links
>>>>>> > Local IP Remote IP Hyst. LQ NLQ Cost
>>>>>> > 192.168.13.3 192.168.13.4 0.00 1.000 0.862 1.158
>>>>>> >
>>>>>> > Table: Neighbors
>>>>>> > IP address SYM MPR MPRS Will. 2 Hop Neighbors
>>>>>> > 192.168.13.4 YES NO NO 3 0
>>>>>> >
>>>>>> > Table: Topology
>>>>>> > Dest. IP Last hop IP LQ NLQ Cost
>>>>>> > 192.168.13.4 192.168.13.3 1.000 0.862 1.158
>>>>>> > 192.168.13.3 192.168.13.4 0.862 1.000 1.158
>>>>>> >
>>>>>> > Table: HNA
>>>>>> > Destination Gateway
>>>>>> > 192.168.13.0/24 192.168.13.3
>>>>>> >
>>>>>> > Table: MID
>>>>>> > IP address Aliases
>>>>>> >
>>>>>> > Table: Routes
>>>>>> > Destination Gateway IP Metric ETX Interface
>>>>>> > 192.168.13.4/32 192.168.13.4 1 1.158 wlan0
>>>>>> >
>>>>>> >
>>>>>> > *DevB:*
>>>>>> > eth0 Link encap:Ethernet HWaddr 00:25:19:BF:AF:F4
>>>>>> > inet addr:192.168.1.168 Bcast:192.168.1.255 Mask:255.255.255.0
>>>>>> > UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
>>>>>> > RX packets:9247 errors:0 dropped:0 overruns:0 frame:0
>>>>>> > TX packets:3892 errors:0 dropped:0 overruns:0 carrier:0
>>>>>> > collisions:0 txqueuelen:1000
>>>>>> > RX bytes:651031 (635.7 Kb) TX bytes:1595657 (1.5 Mb)
>>>>>> >
>>>>>> > wlan0 Link encap:Ethernet HWaddr 00:0E:8E:30:BB:A2
>>>>>> > inet addr:192.168.13.4 Bcast:192.168.13.255 Mask:255.255.255.0
>>>>>> > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>>>>>> > RX packets:194197 errors:480 dropped:0 overruns:0 frame:0
>>>>>> > TX packets:15546 errors:0 dropped:0 overruns:0 carrier:0
>>>>>> > collisions:0 txqueuelen:1000
>>>>>> > RX bytes:25706893 (24.5 Mb) TX bytes:1726766 (1.6 Mb)
>>>>>> >
>>>>>> > Table: Links
>>>>>> > Local IP Remote IP Hyst. LQ NLQ Cost
>>>>>> > 192.168.13.4 192.168.13.3 0.00 0.862 1.000 1.158
>>>>>> >
>>>>>> > Table: Neighbors
>>>>>> > IP address SYM MPR MPRS Will. 2 Hop Neighbors
>>>>>> > 192.168.13.3 YES NO NO 5 0
>>>>>> >
>>>>>> > Table: Topology
>>>>>> > Dest. IP Last hop IP LQ NLQ Cost
>>>>>> > 192.168.13.4 192.168.13.3 1.000 0.862 1.158
>>>>>> > 192.168.13.3 192.168.13.4 0.862 1.000 1.158
>>>>>> >
>>>>>> > Table: HNA
>>>>>> > Destination Gateway
>>>>>> > 192.168.13.0/24 192.168.13.4
>>>>>> >
>>>>>> > Table: MID
>>>>>> > IP address Aliases
>>>>>> >
>>>>>> > Table: Routes
>>>>>> > Destination Gateway IP Metric ETX Interface
>>>>>> > 192.168.13.3/32 192.168.13.3 1 1.158 wlan0
>>>>>> >
>>>>>> >
>>>>>> > Thanks,
>>>>>> >
>>>>>> > john
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Olsr-users mailing list
>>>>>  <(spam-protected)>(spam-protected)
>>>>>  <https://lists.olsr.org/mailman/listinfo/olsr-users>
>>>>> https://lists.olsr.org/mailman/listinfo/olsr-users
>>>>>
>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20110816/4a43b562/attachment.html>


More information about the Olsr-users mailing list