[Berlin-wireless] OLSR vs IPv6 autoconf

Stefan Sperling stsp
Mi Mai 6 18:02:10 CEST 2015


On Mon, May 04, 2015 at 11:22:12PM +0200, Bastian wrote:
> > root at graefe70:~# tcpdump -n -i wlan0-dhcp-2 ip6
> > 17:51:22.689289 IP6 2001:bf7:830:f33:548b:a73a:cd5d:4866 > 2001:bf7:830:f33::1: ICMP6, echo request, seq 76, length 24
> > 17:51:23.834316 IP6 2001:bf7:830:f33:548b:a73a:cd5d:4866 > 2001:bf7:830:f33::1: ICMP6, echo request, seq 77, length 24
> > 17:51:25.740078 IP6 2001:bf7:830:f33:548b:a73a:cd5d:4866 > 2001:bf7:830:f33::1: ICMP6, echo request, seq 79, length 24
> > 
> > Die Antworten gehen aber alle bei eth0 raus (das interface, an dem
> > per Kabel die M5 hängt die per 5Ghz im client mode ins mesh geht,
> > und auf dem OLSR aktiv ist):
> 
> D.h, der FF-Router antwortet nicht auf Pings die an eines seiner eigenen
> Interfaces gerichtet sind?

Genau.

> Guck bitte mal mit und ohne aktivem OLSRd nach den Policy-Rules:
> "ip -6 rule show".

Mit olsrd6:

root at graefe70:~# ip -6 rule show
0:      from all lookup local 
1000:   from all lookup olsr 
20000:  from all iif wlan0-adhoc-2 lookup olsr-default 
20000:  from all iif eth0 lookup olsr-default 
32766:  from all lookup main 
4200000001:     from all iif lo failed_policy
4200000002:     from all iif eth0 failed_policy
4200000004:     from all iif tunl0 failed_policy
4200000006:     from all iif wlan0-adhoc-2 failed_policy
4200000008:     from all iif wlan0-dhcp-2 failed_policy

Ohne olsrd6:

root at graefe70:~# ip -6 rule show
0:      from all lookup local 
32766:  from all lookup main 
4200000001:     from all iif lo failed_policy
4200000002:     from all iif eth0 failed_policy
4200000004:     from all iif tunl0 failed_policy
4200000006:     from all iif wlan0-adhoc-2 failed_policy
4200000008:     from all iif wlan0-dhcp-2 failed_policy

> > Habe ich hier etwas falsch konfiguriert?
> 
> Den HNA6 für dein Subnet hast du konfiguriert? Und haben alle
> Interfaces, die in der /etc/config/network mit "ip6assign" versehen
> sind, auch passende v6-Adressen?

Alles ja.

> Ich weiß nicht genau, wie odhcpd und dnsmasq heute eine default-route
> relayen. Aber evtl. mal ohne odhcpd probieren könnte helfen.

Firmware version ist jetzt:
Powered by LuCI Trunk (git-14.294.77948-ecb0c2f) Freifunk Berlin kathleen 0.1.1-alpha

Ich habe das gleiche Problem in einem anderen Kontext bemerkt.

DHCP requests kommen am wlan Access point rein:

root at graefe70:~# tcpdump -i wlan0-dhcp-2
17:55:17.143452 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 90:d9:41:04:56:32 (oui Unknown), length 300
17:55:17.143557 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 90:d9:41:04:56:32 (oui Unknown), length 300
17:55:17.540182 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 90:d9:41:04:56:32 (oui Unknown), length 300
17:55:17.540291 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 90:d9:41:04:56:32 (oui Unknown), length 300

und kommen bei eth0 raus -- whoops!

root at graefe70:~# tcpdump -n -i eth0 port bootpc
17:55:17.608903 IP 10.31.8.249.67 > 10.230.24.12.68: BOOTP/DHCP, Reply, length 300
17:55:17.610294 IP 10.31.8.249.67 > 10.230.24.12.68: BOOTP/DHCP, Reply, length 300
17:55:17.610338 IP 10.31.8.249.67 > 10.230.24.12.68: BOOTP/DHCP, Reply, length 300
17:55:17.620803 IP 10.31.8.249.67 > 10.230.24.12.68: BOOTP/DHCP, Reply, length 300

Dies erklärt warum dhcp für wlan clients nicht zuverlässig funktioniert.
Das klappt manchmal gut und manchmal gar nicht...

root at graefe70:~# ip rule show
0:      from all lookup local 
1000:   from all lookup olsr 
2000:   from all lookup localnets 
19999:  from all iif tunl0 lookup olsr-tunnel 
19999:  from all iif eth0 lookup olsr-tunnel 
20000:  from all iif tunl0 lookup olsr-default 
20000:  from all iif eth0 lookup olsr-default 
20000:  from all iif eth0 lookup olsr-default 
20000:  from all iif wlan0-adhoc-2 lookup olsr-default 
20001:  from all iif tunl0 unreachable
20001:  from all iif eth0 unreachable
32766:  from all lookup main 
32767:  from all lookup default 
100000: from all lookup olsr-tunnel 
100010: from all lookup olsr-default 





Mehr Informationen über die Mailingliste Berlin