[Olsr-users] Help in mesh configuration

Markus Kittenberger (spam-protected)
Tue Aug 16 23:22:25 CEST 2011


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/12f91138/attachment.html>


More information about the Olsr-users mailing list