[Olsr-users] OLSRd2: OLSRv2 Plugin 'lan' does not work?

Bernd Naumann (spam-protected)
Thu May 21 20:03:39 CEST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/21/2015 04:18 PM, Henning Rogge wrote:
> On Thu, May 21, 2015 at 12:22 AM, Bernd Naumann <(spam-protected)> 
> wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> 
>> Hi at all,
>> 
>> I can't get my 'lan' to be  announced.
>> 
>> The relevant part of my olsrd2 config is that:
>> 
>> config olsrv2 list    'lan'           '0.0.0.0/0' list    'lan' 
>> '192.168.101.1/24'
> 
> First the good news... "lan" works well, I just tested it in a VM.
> 
> Now the bad news, I think the problem is either with the UCI config
> file or with the UCI config reader of OONF.
> 
> Just to test this, can you run an olsrd from command-line?
> 
> olsrd2_static --set olsrv2.lan=0.0.0.0/0 <interface-1> 
> <interface-2>
> 
> Can you publish the whole uci config file?
> 
> Henning
> 


Hi Henning,

OK, running `olsrd2_static --set olsrv2.lan=0.0.0.0/0 <interface-1>
<interface-2>` works fine so far!

And now, it also works if olsrd2 is started via openwrt init.d
configured with config/olsrd2 oO - don't know why...

node1 - wlan0: 169.254.254.30/16 - via auto_ll4
        lo:          10.0.1.1/32
        lan:    192.168.101.1/24 - attached network
        wan:                     - dhcp
node2 - wlan0: 169.254.40.149/16 - via auto_ll4
        lo:          10.0.2.1/32
        lan:    192.168.102.1/24 - attached network
node3 - wlan0: 169.254.253.51/16 - via auto_ll4
        lo:          10.0.3.1/32
        lan:    192.168.103.1/24 - attached network

But I still have these warnings (log from node2):

Thu May 21 17:50:18 2015 daemon.warn OLSRd2[1433]:
WARN(olsrv2_routing) src-plugins/olsrv2/olsrv2/olsrv2_routing.c 844:
Error in route setting 'src-ip 10.0.2.1 gw 169.254.253.51 dst
192.168.103.1/24 src-prefix - metric 2 table 254 protocol 100 if wlan0
(5)': Invalid argument (22)
Thu May 21 17:50:19 2015 daemon.warn OLSRd2[1433]:
WARN(olsrv2_routing) src-plugins/olsrv2/olsrv2/olsrv2_routing.c 844:
Error in route setting 'src-ip 10.0.2.1 gw 169.254.254.30 dst
192.168.101.1/24 src-prefix - metric 2 table 254 protocol 100 if wlan0
(5)': Invalid argument (22)
Thu May 21 17:50:19 2015 daemon.warn OLSRd2[1433]:
WARN(olsrv2_routing) src-plugins/olsrv2/olsrv2/olsrv2_routing.c 844:
Error in route setting 'src-ip 10.0.2.1 gw 169.254.253.51 dst
192.168.103.1/24 src-prefix - metric 2 table 254 protocol 100 if wlan0
(5)': Invalid argument (22)
Thu May 21 17:50:20 2015 daemon.warn OLSRd2[1433]:
WARN(olsrv2_routing) src-plugins/olsrv2/olsrv2/olsrv2_routing.c 844:
Error in route setting 'src-ip 10.0.2.1 gw 169.254.254.30 dst
192.168.101.1/24 src-prefix - metric 2 table 254 protocol 100 if wlan0
(5)': Invalid argument (22)
Thu May 21 17:50:20 2015 daemon.warn OLSRd2[1433]:
WARN(olsrv2_routing) src-plugins/olsrv2/olsrv2/olsrv2_routing.c 844:
Error in route setting 'src-ip 10.0.2.1 gw 169.254.253.51 dst
192.168.103.1/24 src-prefix - metric 2 table 254 protocol 100 if wlan0
(5)': Invalid argument (22)
Thu May 21 17:50:21 2015 daemon.warn OLSRd2[1433]:
WARN(olsrv2_routing) src-plugins/olsrv2/olsrv2/olsrv2_routing.c 844:
Error in route setting 'src-ip 10.0.2.1 gw 169.254.254.30 dst
192.168.101.1/24 src-prefix - metric 2 table 254 protocol 100 if wlan0
(5)': Invalid argument (22)
Thu May 21 17:50:21 2015 daemon.warn OLSRd2[1433]:
WARN(olsrv2_routing) src-plugins/olsrv2/olsrv2/olsrv2_routing.c 844:
Error in route setting 'src-ip 10.0.2.1 gw 169.254.253.51 dst
192.168.103.1/24 src-prefix - metric 2 table 254 protocol 100 if wlan0
(5)': Invalid argument (22)
Thu May 21 17:50:22 2015 daemon.warn OLSRd2[1433]:
WARN(olsrv2_routing) src-plugins/olsrv2/olsrv2/olsrv2_routing.c 844:
Error in route setting 'src-ip 10.0.2.1 gw 169.254.254.30 dst
192.168.101.1/24 src-prefix - metric 2 table 254 protocol 100 if wlan0
(5)': Invalid argument (22)
Thu May 21 17:50:22 2015 daemon.warn OLSRd2[1433]:
WARN(olsrv2_routing) src-plugins/olsrv2/olsrv2/olsrv2_routing.c 844:
Error in route setting 'src-ip 10.0.2.1 gw 169.254.253.51 dst
192.168.103.1/24 src-prefix - metric 2 table 254 protocol 100 if wlan0
(5)': Invalid argument (22)


Here is a full uci config set from one of my nodes (node2):

(spam-protected)[0]=dnsmasq
(spam-protected)[0].domainneeded='1'
(spam-protected)[0].boguspriv='1'
(spam-protected)[0].filterwin2k='0'
(spam-protected)[0].localise_queries='1'
(spam-protected)[0].rebind_protection='1'
(spam-protected)[0].rebind_localhost='1'
(spam-protected)[0].local='/lan/'
(spam-protected)[0].domain='lan'
(spam-protected)[0].expandhosts='1'
(spam-protected)[0].nonegcache='0'
(spam-protected)[0].authoritative='1'
(spam-protected)[0].readethers='1'
(spam-protected)[0].leasefile='/tmp/dhcp.leases'
(spam-protected)[0].resolvfile='/tmp/resolv.conf.auto'
(spam-protected)[0].localservice='1'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.start='100'
dhcp.lan.limit='150'
dhcp.lan.leasetime='12h'
dhcp.lan.dhcpv6='server'
dhcp.lan.ra='server'
dhcp.wan=dhcp
dhcp.wan.interface='wan'
dhcp.wan.ignore='1'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp='0'
dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
(spam-protected)[0]=dropbear
(spam-protected)[0].PasswordAuth='on'
(spam-protected)[0].RootPasswordAuth='on'
(spam-protected)[0].Port='22'
(spam-protected)[0]=defaults
(spam-protected)[0].syn_flood='1'
(spam-protected)[0].input='ACCEPT'
(spam-protected)[0].output='ACCEPT'
(spam-protected)[0].forward='REJECT'
(spam-protected)[0]=zone
(spam-protected)[0].name='lan'
(spam-protected)[0].network='lan'
(spam-protected)[0].input='ACCEPT'
(spam-protected)[0].output='ACCEPT'
(spam-protected)[0].forward='ACCEPT'
(spam-protected)[1]=zone
(spam-protected)[1].name='wan'
(spam-protected)[1].network='wan' 'wan6'
(spam-protected)[1].input='REJECT'
(spam-protected)[1].output='ACCEPT'
(spam-protected)[1].forward='REJECT'
(spam-protected)[1].masq='1'
(spam-protected)[1].mtu_fix='1'
(spam-protected)[2]=zone
(spam-protected)[2].name='wlanadhoc'
(spam-protected)[2].network='wlanadhoc'
(spam-protected)[2].input='ACCEPT'
(spam-protected)[2].output='ACCEPT'
(spam-protected)[2].forward='ACCEPT'
(spam-protected)[0]=forwarding
(spam-protected)[0].src='lan'
(spam-protected)[0].dest='wan'
(spam-protected)[1]=forwarding
(spam-protected)[1].src='lan'
(spam-protected)[1].dest='wlanadhoc'
(spam-protected)[2]=forwarding
(spam-protected)[2].src='wlanadhoc'
(spam-protected)[2].dest='lan'
(spam-protected)[0]=rule
(spam-protected)[0].name='Allow-DHCP-Renew'
(spam-protected)[0].src='wan'
(spam-protected)[0].proto='udp'
(spam-protected)[0].dest_port='68'
(spam-protected)[0].target='ACCEPT'
(spam-protected)[0].family='ipv4'
(spam-protected)[1]=rule
(spam-protected)[1].name='Allow-Ping'
(spam-protected)[1].src='wan'
(spam-protected)[1].proto='icmp'
(spam-protected)[1].icmp_type='echo-request'
(spam-protected)[1].family='ipv4'
(spam-protected)[1].target='ACCEPT'
(spam-protected)[2]=rule
(spam-protected)[2].name='Allow-IGMP'
(spam-protected)[2].src='wan'
(spam-protected)[2].proto='igmp'
(spam-protected)[2].family='ipv4'
(spam-protected)[2].target='ACCEPT'
(spam-protected)[3]=rule
(spam-protected)[3].name='Allow-DHCPv6'
(spam-protected)[3].src='wan'
(spam-protected)[3].proto='udp'
(spam-protected)[3].src_ip='fe80::/10'
(spam-protected)[3].src_port='547'
(spam-protected)[3].dest_ip='fe80::/10'
(spam-protected)[3].dest_port='546'
(spam-protected)[3].family='ipv6'
(spam-protected)[3].target='ACCEPT'
(spam-protected)[4]=rule
(spam-protected)[4].name='Allow-MLD'
(spam-protected)[4].src='wan'
(spam-protected)[4].proto='icmp'
(spam-protected)[4].src_ip='fe80::/10'
(spam-protected)[4].icmp_type='130/0' '131/0' '132/0' '143/0'
(spam-protected)[4].family='ipv6'
(spam-protected)[4].target='ACCEPT'
(spam-protected)[5]=rule
(spam-protected)[5].name='Allow-ICMPv6-Input'
(spam-protected)[5].src='wan'
(spam-protected)[5].proto='icmp'
(spam-protected)[5].icmp_type='echo-request' 'echo-reply'
'destination-unreachable' 'packet-too-big' 'time-exceeded'
'bad-header' 'unknown-header-type' 'router-solicitatio
n' 'neighbour-solicitation' 'router-advertisement'
'neighbour-advertisement'
(spam-protected)[5].limit='1000/sec'
(spam-protected)[5].family='ipv6'
(spam-protected)[5].target='ACCEPT'
(spam-protected)[6]=rule
(spam-protected)[6].name='Allow-ICMPv6-Forward'
(spam-protected)[6].src='wan'
(spam-protected)[6].dest='*'
(spam-protected)[6].proto='icmp'
(spam-protected)[6].icmp_type='echo-request' 'echo-reply'
'destination-unreachable' 'packet-too-big' 'time-exceeded'
'bad-header' 'unknown-header-type'
(spam-protected)[6].limit='1000/sec'
(spam-protected)[6].family='ipv6'
(spam-protected)[6].target='ACCEPT'
(spam-protected)[0]=include
(spam-protected)[0].path='/etc/firewall.user'
network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1/8' '10.0.2.1/32'
network.loopback.ip6assign='60'
network.globals=globals
network.globals.ula_prefix='fddf:b481:027c::/48'
network.lan=interface
network.lan.ifname='eth1'
network.lan.proto='static'
network.lan.ipaddr='192.168.102.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.wan=interface
network.wan.ifname='eth0'
network.wan.proto='dhcp'
network.wan6=interface
network.wan6.ifname='eth0'
network.wan6.proto='dhcpv6'
(spam-protected)[0]=switch
(spam-protected)[0].name='switch0'
(spam-protected)[0].reset='1'
(spam-protected)[0].enable_vlan='1'
(spam-protected)[0]=switch_vlan
(spam-protected)[0].device='switch0'
(spam-protected)[0].vlan='1'
(spam-protected)[0].ports='0 1 2 3 4'
network.wlanadhoc=interface
network.wlanadhoc.ifname='wlan0'
network.wlanadhoc.ip6assign='60'
(spam-protected)[0]=global
(spam-protected)[0].failfast='no'
(spam-protected)[0].pidfile='/var/run/olsrd2.pid'
(spam-protected)[0].lockfile='/var/lock/olsrd2'
(spam-protected)[0]=log
(spam-protected)[0].syslog='true'
(spam-protected)[0].stderr='true'
(spam-protected)[0]=telnet
(spam-protected)[0]=olsrv2
(spam-protected)[0].lan='192.168.102.1/24'
(spam-protected)[0]=interface
(spam-protected)[0].ifname='loopback'
(spam-protected)[1]=interface
(spam-protected)[1].ifname='wlanadhoc'
(spam-protected)[2]=interface
(spam-protected)[2].ifname='wan'
(spam-protected)[2].ignore='1'
(spam-protected)[3]=interface
(spam-protected)[3].ifname='lan'
(spam-protected)[3].ignore='1'
(spam-protected)[0]=system
(spam-protected)[0].hostname='olsrv2-mesh-2'
(spam-protected)[0].timezone='UTC'
system.ntp=timeserver
system.ntp.server='0.openwrt.pool.ntp.org' '1.openwrt.pool.ntp.org'
'2.openwrt.pool.ntp.org' '3.openwrt.pool.ntp.org'
system.ntp.enabled='1'
system.ntp.enable_server='0'
system.led_wan=led
system.led_wan.name='WAN'
system.led_wan.sysfs='tp-link:green:wan'
system.led_wan.trigger='netdev'
system.led_wan.dev='eth0'
system.led_wan.mode='link tx rx'
system.led_lan1=led
system.led_lan1.name='LAN1'
system.led_lan1.sysfs='tp-link:green:lan1'
system.led_lan1.trigger='switch0'
system.led_lan1.port_mask='0x04'
system.led_lan2=led
system.led_lan2.name='LAN2'
system.led_lan2.sysfs='tp-link:green:lan2'
system.led_lan2.trigger='switch0'
system.led_lan2.port_mask='0x08'
system.led_lan3=led
system.led_lan3.name='LAN3'
system.led_lan3.sysfs='tp-link:green:lan3'
system.led_lan3.trigger='switch0'
system.led_lan3.port_mask='0x10'
system.led_lan4=led
system.led_lan4.name='LAN4'
system.led_lan4.sysfs='tp-link:green:lan4'
system.led_lan4.trigger='switch0'
system.led_lan4.port_mask='0x02'
system.led_wlan=led
system.led_wlan.name='WLAN'
system.led_wlan.sysfs='tp-link:green:wlan'
system.led_wlan.trigger='phy0tpt'
wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
system.led_wan.sysfs='tp-link:green:wan'
system.led_wan.trigger='netdev'
system.led_wan.dev='eth0'
system.led_wan.mode='link tx rx'
system.led_lan1=led
system.led_lan1.name='LAN1'
system.led_lan1.sysfs='tp-link:green:lan1'
system.led_lan1.trigger='switch0'
system.led_lan1.port_mask='0x04'
system.led_lan2=led
system.led_lan2.name='LAN2'
system.led_lan2.sysfs='tp-link:green:lan2'
system.led_lan2.trigger='switch0'
system.led_lan2.port_mask='0x08'
system.led_lan3=led
system.led_lan3.name='LAN3'
system.led_lan3.sysfs='tp-link:green:lan3'
system.led_lan3.trigger='switch0'
system.led_lan3.port_mask='0x10'
system.led_lan4=led
system.led_lan4.name='LAN4'
system.led_lan4.sysfs='tp-link:green:lan4'
system.led_lan4.trigger='switch0'
system.led_lan4.port_mask='0x02'
system.led_wlan=led
system.led_wlan.name='WLAN'
system.led_wlan.sysfs='tp-link:green:wlan'
system.led_wlan.trigger='phy0tpt'
wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.channel='11'
wireless.radio0.hwmode='11g'
wireless.radio0.path='platform/ar934x_wmac'
wireless.radio0.htmode='HT20'
wireless.radio0.txpower='15'
(spam-protected)[0]=wifi-iface
(spam-protected)[0].device='radio0'
(spam-protected)[0].mode='adhoc'
(spam-protected)[0].ssid='olsr2-mesh'
(spam-protected)[0].bssid='be:ca:ff:ee:ba:be'
(spam-protected)[0].network='wlanadhoc'


Running on:
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='Bleeding Edge'
DISTRIB_REVISION='r45705'
DISTRIB_CODENAME='chaos_calmer'
DISTRIB_TARGET='ar71xx/generic'
DISTRIB_DESCRIPTION='OpenWrt Chaos Calmer r45705'
DISTRIB_TAINTS='no-all busybox'
r45705


Bernd

- -- 
Bernd Naumann <(spam-protected)>

PGP:   0xA150A04F via pool.sks-keyservers.net
XMPP:  (spam-protected)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQIcBAEBAgAGBQJVXh37AAoJEEYW3OihUKBP5JMP/0FHhUXa0y/7gOlyr1Vkb7xP
Xf5cIuUZuYxCmmUoC7fq2gHv/dXsPL4LXCsUctbTsf6QmCtcvSYiq1bf9bRn6bUb
APoIX3F2WqtU8uteCrtofIjcNT4takpl5v3EwTCPAABQo68BHmuXURAcsglbLD1N
yoATckVTYqA4t/4hYE1gh3jzcacqupUlhGiC0CF0fLoeSx2FLBE6o4M+QA0Fwc2E
pi60CcZNe31vY9v445+T4XHDyQmP/6ONP4vYl93ukkCC117yaclWsi2gj0GfkV3v
4D5DPDk+mHcPqo/p9iTnpiGIQjiEiHUqh8IeGxbLak2bG1VOW0MVGKcxEwU98UUB
3I0ZZC+XRi8DpwROI+jLKT6D7H2DKu/FHHMJn7ajZ7P+vfPF0YDzJMazJ3VuQQ6k
UfNybPy3UIR1YCjIHjjjX8BawB8B83klGYteP9hmmHysAxiad4GuPVX3Bsm3tkyX
yyfmv88nV6lAxsASt6lVH/7/QAgpn7Nu1A8aYF0smCR0hXTGgPzjZ5bSksNzez/A
fNVWUKxt5Z8rzjpBTYVRno742s/Rqmm06HXRkwvV1JcWZ9gPTCflyHgX6U4W8WZz
wV0EIan4S4MEd/QjIVFrtKBLCFZxMBnC+UVeDZV1GDjrhHD8ovFOpRGya4sUG9fy
650Gx0Cuhd/acIudp+Lb
=4vGK
-----END PGP SIGNATURE-----




More information about the Olsr-users mailing list