[Olsr-users] OLSRv2: routing only for one hop neighbors
Martin Garbe
(spam-protected)
Wed Apr 6 22:58:00 CEST 2016
On 04/06/2016 08:27 AM, Henning Rogge wrote:
> On Wed, Apr 6, 2016 at 12:02 AM, Martin Garbe
> <(spam-protected)> wrote:
>> Hello all,
>
> At first a good advise...
>
> forget that "ifconfig" ever existed and start using the "ip" command.
>
> "ifconfig" hides a lot about your configuration, especially for IPv6...
>
> try "ip addr" for getting a better picture.
Good advice. I will do so.
>
>> 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
>
> First something I noticed...
>
> Node A has no IPv6 at all... and a strange "broadcast" IP.
I deactivated IPv6 now on all interfaces.
All nodes have a netmask of /16 now.
>
>> My problem is that A has no routing information about C and vice versa.
>
> I see two routing entries in all of your text files.
>
> Could you add the output of "ip route" (in addition to "ip addr") for
> all three nodes?
yes, see files attached with all information included.
Regards,
Martin
-------------- next part --------------
Node C - TP-Link AP, OpenWRT 15.05, oonf-olsrd2 - 0.9.2
------
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 2001::230:1/64 scope global
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether c0:4a:00:40:ad:c3 brd ff:ff:ff:ff:ff:ff
inet6 fe80::c24a:ff:fe40:adc3/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br-lan state UP group default qlen 1000
link/ether c0:4a:00:40:ad:c2 brd ff:ff:ff:ff:ff:ff
7: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether c0:4a:00:40:ad:c2 brd ff:ff:ff:ff:ff:ff
inet 172.16.0.1/24 brd 172.16.0.255 scope global br-lan
valid_lft forever preferred_lft forever
inet6 fe80::c24a:ff:fe40:adc2/64 scope link
valid_lft forever preferred_lft forever
8: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether c0:4a:00:40:ad:c2 brd ff:ff:ff:ff:ff:ff
inet 192.168.230.2/16 brd 192.168.255.255 scope global wlan0
valid_lft forever preferred_lft forever
# echo /nhdpinfo link | nc 127.0.0.1 2009
wlan0 192.168.21.2 20 2 19 19 39 symmetric - c4:e9:84:7d:e4:49 192.168.21.3 - 0 ff_dat_metric 136.533 Mbit/s 15120.47 Mbit/s 17 p_recv=34,p_total=34,speed=136314880,success=8,missed_hello=0,lastseq=37560,lneigh=1
# echo /nhdpinfo link_twohop | nc 127.0.0.1 2009
wlan0 192.168.21.2 192.168.21.3 192.168.99.1 false 19 ff_dat_metric 1020 bit/s 2105088 1020 bit/s 2105088
# echo /olsrv2info originator | nc 127.0.0.1 2009
192.168.230.2
-
# echo /olsrv2info route | nc 127.0.0.1 2009
192.168.21.2 - 192.168.230.2 0.0.0.0/0 2 254 100 wlan0 8 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 8 192.168.230.2 0 ff_dat_metric 136.533 Mbit/s (1 hops) 15 1
# ip route
172.16.0.0/24 dev br-lan proto kernel scope link src 172.16.0.1
192.168.0.0/16 dev wlan0 proto kernel scope link src 192.168.230.2
192.168.21.2 via 192.168.21.2 dev wlan0 proto 100 src 192.168.230.2 metric 2 onlink
192.168.21.3 via 192.168.21.2 dev wlan0 proto 100 src 192.168.230.2 metric 2 onlink
-------------- next part --------------
Node B - TP-Link AP, OpenWRT 15.05, oonf-olsrd2 - 0.9.2
------
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 2001::21:4/64 scope global
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether c4:e9:84:7d:e4:48 brd ff:ff:ff:ff:ff:ff
inet6 fe80::c6e9:84ff:fe7d:e448/64 scope link
valid_lft forever preferred_lft forever
13: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether c4:e9:84:7d:e4:48 brd ff:ff:ff:ff:ff:ff
inet 172.16.0.1/24 brd 172.16.0.255 scope global br-lan
valid_lft forever preferred_lft forever
inet6 fe80::c6e9:84ff:fe7d:e448/64 scope link
valid_lft forever preferred_lft forever
14: (spam-protected): <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP group default
link/ether c4:e9:84:7d:e4:48 brd ff:ff:ff:ff:ff:ff
15: (spam-protected): <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether c4:e9:84:7d:e4:48 brd ff:ff:ff:ff:ff:ff
inet 192.168.21.3/16 brd 192.168.255.255 scope global eth0.2
valid_lft forever preferred_lft forever
16: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether c4:e9:84:7d:e4:49 brd ff:ff:ff:ff:ff:ff
inet 192.168.21.2/16 brd 192.168.255.255 scope global wlan0
valid_lft forever preferred_lft forever
# echo /nhdpinfo link | nc 127.0.0.1 2009
eth0.2 192.168.99.1 20 2 18 18 38 symmetric - 3c:97:0e:6c: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=48855,lneigh=1
wlan0 192.168.230.2 20 2 19 19 39 symmetric - c0:4a:00:40:ad:c2 192.168.230.2 - 0 ff_dat_metric 136.533 Mbit/s 15136.533 Mbit/s 15 p_recv=33,p_total=33,speed=136314880,success=8,missed_hello=0,lastseq=58728,lneigh=1
# echo /nhdpinfo link_twohop | nc 127.0.0.1 2009
#
# echo /olsrv2info originator | nc 127.0.0.1 2009
192.168.21.3
-
# echo /olsrv2info route | nc 127.0.0.1 2009
192.168.99.1 - 192.168.21.3 0.0.0.0/0 2 254 100 eth0.2 15 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 16 192.168.21.3 0 ff_dat_metric 136.533 Mbit/s (1 hops) 15 1
# ip route
172.16.0.0/24 dev br-lan proto kernel scope link src 172.16.0.1
192.168.0.0/16 dev eth0.2 proto kernel scope link src 192.168.21.3
192.168.0.0/16 dev wlan0 proto kernel scope link src 192.168.21.2
192.168.99.1 via 192.168.99.1 dev eth0.2 proto 100 src 192.168.21.3 metric 2 onlink
192.168.230.2 via 192.168.230.2 dev wlan0 proto 100 src 192.168.21.3 metric 2 onlink
-------------- next part --------------
Node A - Linux Laptop, OLSRv2 Git commit: v0.10.0-96-ga9a7894
------
$ ip addr
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 3c:97:xx:xx:42:b3 brd ff:ff:ff:ff:ff:ff
inet 192.168.99.1/16 brd 192.168.255.255 scope global eth0
valid_lft forever preferred_lft forever
...
$ echo /nhdpinfo link | nc 127.0.0.1 2009
eth0 192.168.21.3 20 2 19 20 40 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=34,p_total=34,speed=1024,success=8,missed_hello=0,lastseq=57855,lneigh=1
$ echo /nhdpinfo link_twohop | nc 127.0.0.1 2009
eth0 192.168.21.3 192.168.21.3 192.168.230.2 false 19 ff_dat_metric 120.47 Mbit/s 17 120.47 Mbit/s 17
$ echo /olsrv2info originator | nc 127.0.0.1 2009
192.168.99.1
-
$ echo /olsrv2info route | nc 127.0.0.1 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
$ ip route
default via 172.17.17.1 dev wlan0 proto static metric 600
10.0.0.0/16 dev docker0 proto kernel scope link src 10.0.42.1
169.254.0.0/16 dev docker0 scope link metric 1000
172.17.17.0/24 dev wlan0 proto kernel scope link src 172.17.17.27 metric 600
192.168.0.0/16 dev eth0 proto kernel scope link src 192.168.99.1 metric 100
192.168.21.2 via 192.168.21.3 dev eth0 proto 100 src 192.168.99.1 metric 2 onlink
192.168.21.3 via 192.168.21.3 dev eth0 proto 100 src 192.168.99.1 metric 2 onlink
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
192.168.253.0/24 dev virbr2 proto kernel scope link src 192.168.253.1
192.168.254.0/24 dev virbr1 proto kernel scope link src 192.168.254.1
More information about the Olsr-users
mailing list