[Olsr-users] OLSRv2: routing only for one hop neighbors
Martin Garbe
(spam-protected)
Wed Apr 6 00:02:23 CEST 2016
Hello all,
currently I try to connect three devices in a row via OLSRv2 and this
fails. I tried to choose a simple setup using IPv4. Node A is only
connected to node B. Node C is only connected to node B.
A -- B -- C
My problem is that A has no routing information about C and vice versa.
Therefore A cannot connecto to C and C not to A.
Via link_twohop all nodes are visible. I checked link symmetry and valid
IP addresses.
At this point I do not know what to check next. Can anybody give a hint?
Attached you can find the following information of all three nodes:
- ifconfig
- echo /nhdpinfo link
- echo /nhdpinfo link_twohop
- echo /olsrv2info route
- OLSRv2 Config
Thanks in advance,
Martin
-------------- next part --------------
Node A - Linux Laptop, OLSRv2 Git commit: v0.10.0-96-ga9a7894
------
$ ifconfig
eth0 Link encap:Ethernet HWaddr 3c:97:xx:xx:42:b3
inet addr:192.168.99.1 Bcast:192.168.99.1 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:258011 errors:0 dropped:4 overruns:0 frame:0
TX packets:276767 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:67188651 (67.1 MB) TX bytes:32012329 (32.0 MB)
Interrupt:20 Memory:f2500000-f2520000
...
$ echo /nhdpinfo link | nc localhost 2009
eth0 192.168.21.3 20 2 18 18 38 symmetric - c4:e9:84:7d:e4:48 192.168.21.3 - 0 ff_dat_metric 1020 bit/s 2105088 1020 bit/s 2105088 p_recv=33,p_total=33,speed=1024,success=8,missed_hello=0,lastseq=21302,lneigh=1
$ echo /nhdpinfo link_twohop | nc localhost 2009
eth0 192.168.21.3 192.168.21.3 192.168.230.2 false 18 ff_dat_metric 136.533 Mbit/s 15 136.533 Mbit/s 15
$ echo /olsrv2info route | nc localhost 2009
192.168.21.2 192.168.21.3 192.168.99.1 0.0.0.0/0 2 254 100 eth0 2 192.168.99.1 0 ff_dat_metric 1020 bit/s (1 hops) 2105088 1
192.168.21.3 - 192.168.99.1 0.0.0.0/0 2 254 100 eth0 2 192.168.99.1 0 ff_dat_metric 1020 bit/s (1 hops) 2105088 1
OLSRv2 Config File#######
[global]
failfast no
lockfile /var/lock/olsrd2
pidfile /var/run/olsrd2.pid
[log]
stderr true
syslog true
[olsrv2]
[telnet]
port 2009
[interface=eth0]
-------------- next part --------------
Node B - TP-Link AP, OpenWRT 15.05, oonf-olsrd2 - 0.9.2
------
#ifconfig
eth0.2 Link encap:Ethernet HWaddr C4:E9:84:7D:E4:48
inet addr:192.168.21.3 Bcast:255.255.255.255 Mask:255.255.255.255
inet6 addr: fe80::c6e9:84ff:fe7d:e448/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4274 errors:0 dropped:0 overruns:0 frame:0
TX packets:4743 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:495588 (483.9 KiB) TX bytes:1311658 (1.2 MiB)
wlan0 Link encap:Ethernet HWaddr C4:E9:84:7D:E4:49
inet addr:192.168.21.2 Bcast:255.255.255.255 Mask:255.255.255.255
inet6 addr: fe80::c6e9:84ff:fe7d:e449/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4439 errors:0 dropped:0 overruns:0 frame:0
TX packets:5897 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1812507 (1.7 MiB) TX bytes:2103262 (2.0 MiB)
.......
# echo /nhdpinfo link | nc localhost 2009
eth0.2 192.168.99.1 20 2 19 19 39 symmetric - 3c:97:xx:xx:42:b3 192.168.99.1 - 0 ff_dat_metric 1020 bit/s 2105088 1020 bit/s 2105088 p_recv=45,p_total=45,speed=1024,success=8,missed_hello=0,lastseq=15716,lneigh=1
wlan0 192.168.230.2 20 2 17 18 38 symmetric fe80::c24a:ff:fe40:adc2 c0:4a:00:40:ad:c2 192.168.230.2 fe80::c24a:ff:fe40:adc2 0 ff_dat_metric 146.285 Mbit/s 14 136.533 Mbit/s 15 p_recv=33,p_total=33,speed=151414784,success=8,missed_hello=0,lastseq=46712,lneigh=2
wlan0 fe80::c24a:ff:fe40:adc2 20 2 17 18 38 symmetric 192.168.230.2 c0:4a:00:40:ad:c2 fe80::c24a:ff:fe40:adc2 192.168.230.2 0 ff_dat_metric 146.285 Mbit/s 14 136.533 Mbit/s 15 p_recv=33,p_total=33,speed=151414784,success=8,missed_hello=0,lastseq=42557,lneigh=2
# echo /nhdpinfo link_twohop | nc localhost 2009
-
# echo /olsrv2info route | nc localhost 2009
192.168.99.1 - 192.168.21.3 0.0.0.0/0 2 254 100 eth0.2 50 192.168.21.3 0 ff_dat_metric 1020 bit/s (1 hops) 2105088 1
192.168.230.2 - 192.168.21.3 0.0.0.0/0 2 254 100 wlan0 51 192.168.21.3 0 ff_dat_metric 136.533 Mbit/s (1 hops) 15 1
OLSRv2 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'
option 'file' '/var/log/olsrd2.log'
option 'debug' 'all'
config telnet
option 'port' '2009'
config olsrv2
config interface
option 'ifname' 'loopback'
option 'ignore' '1'
config interface
list 'ifname' 'on_wifi_0'
option 'ignore' '0'
config interface
list 'ifname' 'wan'
option 'ignore' '0'
config interface
list 'ifname' 'lan'
option 'ignore' '1'
-------------- next part --------------
Node C - TP-Link AP, OpenWRT 15.05, oonf-olsrd2 - 0.9.2
------
$ ifconfig
wlan0 Link encap:Ethernet HWaddr C0:4A:00:40:AD:C2
inet addr:192.168.230.2 Bcast:255.255.255.255 Mask:255.255.255.255
inet6 addr: fe80::c24a:ff:fe40:adc2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:256 errors:0 dropped:0 overruns:0 frame:0
TX packets:212 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:77954 (76.1 KiB) TX bytes:77909 (76.0 KiB)
...
# echo /nhdpinfo link | nc localhost 2009
wlan0 192.168.21.2 20 2 19 19 39 symmetric fe80::c6e9:84ff:fe7d:e449 c4:e9:84:7d:e4:49 192.168.21.3 fe80::c6e9:84ff:fe7d:e4480ff_dat_metric 55.351 Mbit/s 37 17.066 Mbit/s 120 p_recv=19,p_total=48,speed=151414784,success=3,missed_hello=0,lastseq=42558,lneigh=2
wlan0 fe80::c6e9:84ff:fe7d:e449 20 2 19 19 39 symmetric 192.168.21.2 c4:e9:84:7d:e4:49 fe80::c6e9:84ff:fe7d:e448 192.168.21.3 0 ff_dat_metric 55.351 Mbit/s 37 17.066 Mbit/s 120 p_recv=19,p_total=48,speed=151414784,success=3,missed_hello=0,lastseq=7462,lneigh=2
# echo /nhdpinfo link_twohop | nc localhost 2009
wlan0 192.168.21.2 192.168.21.3 192.168.99.1 false 18 ff_dat_metric 1020 bit/s 2105088 1020 bit/s 2105088
# echo /olsrv2info route | nc localhost 2009
192.168.21.2 - 192.168.230.2 0.0.0.0/0 2 254 100 wlan0 44 192.168.230.2 0 ff_dat_metric 136.533 Mbit/s (1 hops) 15 1
192.168.21.3 192.168.21.2 192.168.230.2 0.0.0.0/0 2 254 100 wlan0 44 192.168.230.2 0 ff_dat_metric 136.533 Mbit/s (1 hops) 15 1
OLSRv2 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'
option 'file' '/var/log/olsrd2.log'
config telnet
option 'port' '2009'
config olsrv2
config interface
option 'ifname' 'on_wifi_0'
More information about the Olsr-users
mailing list