[Olsr-users] Howto feed routing-table into OLSRd2?

Bastian Rosner (spam-protected)
Sun Jun 14 14:00:39 CEST 2015


Hi,

just to make sure that this is not related to any IPv6 settings, i
adjusted the configuration to be IPv4-only and changed to logging behavior:

According to logs plugin lan_import loaded fine. Also inserting
neighbors route to table 123 succeeded:

13:48:48.293 INFO(olsrv2_routing)
src-plugins/olsrv2/olsrv2/olsrv2_routing.c 767: Set route 'src-ip - gw
169.254.1.2 dst 10.31.105.4 src-prefix - metric 2 table 123 protocol 100
if eth1.31 (5)' (0 0 -)
13:48:48.293 INFO(olsrv2_routing)
src-plugins/olsrv2/olsrv2/olsrv2_routing.c 935: Successfully set route
'src-ip 10.31.105.5 gw 169.254.1.2 dst 10.31.105.4 src-prefix - metric 2
table 123 protocol 100 if eth1.31 (5)'

Log also contains the following message:

13:52:29.683 WARN(os_routing)
src-plugins/subsystems/os_linux/os_system_linux.c 503: netlink recvmsg
error: No buffer space available (105)

Do i need to run a recent version of olsrv2 on openwrt-side to accept
attached-network routes generated by ubuntu's lan_import?

Cheers,
Bastian

On 06/13/2015 09:59 PM, Bastian Rosner wrote:
> Hi,
> 
> looks like I need some help configuring this:
> 
> Two nodes, Ubuntu-x86 running "Git commit: v0.8.2-4-g799f820" and
> OpenWRT-ar71xx running "Git commit: v0.8.1-8-g43556d3" connected via cable.
> 
> My goal is to export all IPv6-routes from Ubuntu table 100 into OpenWRT
> table 123.
> Using config shown below, i only achieve a single route in table 123 per
> node.
> 
> Any help is highly appreciated!
> 
> 
> Ubuntu Config:
> 
> [log]
> file /var/log/olsr2.log
> info all
> 
> [interface=eth1.31]
> bindto <public_IPv6>
> 
> [lan_import]
> table 100
> 
> [domain]
> table 123
> 
> 
> 
> OpenWRT UCI-Config:
> 
> config global
> 	option failfast 'no'
> 	option pidfile '/var/run/olsrd2.pid'
> 	option lockfile '/var/lock/olsrd2'
> 
> config log
> 	option syslog 'true'
> 	option stderr 'true'
> 
> config telnet
> 	option port '2009'
> 
> config olsrv2
> 
> config domain
> 	option table '123'
> 
> config interface
> 	list ifname 'lan'
> 	option ignore '0'
> 	option bindto '<public_IPv6>'
> 
> 
> Cheers,
> Bastian
> 
> On 06/09/2015 09:48 PM, Henning Rogge wrote:
>> I expect some feedback... ;)
>>
>> I tested the plugin with two VMs only.
>>
>> Henning
>>
>> On Tue, Jun 9, 2015 at 9:24 PM, Bastian Rosner <(spam-protected)> wrote:
>>> Awesome, Thank you!
>>>
>>> On 06/09/2015 03:13 PM, Henning Rogge wrote:
>>>> On Mon, Jun 8, 2015 at 1:41 PM, Henning Rogge <(spam-protected)> wrote:
>>>>> On Sun, Jun 7, 2015 at 7:14 PM, Bastian Rosner <(spam-protected)> wrote:
>>>>>> Hi,
>>>>>
>>>>> Hi, I have good news and some bad news for you...
>>>>>
>>>>>> is there a config option in olsr2 for dynamically feeding a whole
>>>>>> routing table as attached network into the mesh? Maybe even with
>>>>>> filtering for specific subnets or proto attributes.
>>>>>>
>>>>>> Any pointers to existing documentation are welcome!
>>>>>
>>>>> This is something that has been on my "todo" list for a long time...
>>>>>
>>>>> Good news: have a look at the "lan_import" plugin that was pushed into
>>>>> the repository a few minutes ago.
>>>>>
>>>>> Bad news: I have yet to write documentation for it, but "olsrd2_static
>>>>> --schema=lan_import" should give you a hint.
>>>>
>>>> http://www.olsr.org/mediawiki/index.php/LAN_Import_Plugin
> 
> 






More information about the Olsr-users mailing list