Open robertfoss opened 5 years ago
The problem is that the driver for the newer 5Ghz devices do not support adhoc. There are a couple workaround which you could do.
1) Change the 5Ghz adhoc interface to 802.11s, set the mesh id to "Mesh-Freifunk-Berlin" (repeat on all other devices that mesh at 5Ghz). 2) Delete the adhoc wireless interface. This means that meshing at 5Ghz will no longer work. Additionally you would have to remove the wirelessX interface from Network/Interfaces and OLSR4 and 6. With this setup, the client AP at 5Ghz will start working.
There should be a discussion about which driver to use. There are currently two firmware drivers. Both have their advantages and disadvantages. There is the original driver (which doesn't support adhoc) and the -ct driver [1] which supports adhoc but not encrypted AP's when there are vif's (needed for a user who would like to have their private lan extended with their freifunk router [2]).
This issue is related to https://github.com/freifunk-berlin/firmware/commit/491da5533425e87b10d2e91c2e397775d3f243e3#commitcomment-31278661
[1] http://www.candelatech.com/ath10k-10.1.php [2] https://wiki.freifunk.net/Berlin:erweiterte_Konfiguration#Weiterleiten_des_privaten_Wlan
alternatively check with the recent SAm0815_experimental build, which sets up 802.11s by default and don't deal with AdHoc anymore.
I just tried both, and they do seem to bring up .11s interfaces, but with two routers configured the same way, I'm not sure they're seeing each other.
Just checking, but you are using a separate set of ip addresses for each node, right?
Also, on the command line, you can run 'neigh.sh' to see if the node is meshing. Or take a look at the olsr status pages on the web interface.
# neigh.sh
Local Remote vTime LQ NLQ Cost Host
Local Remote vTime LQ NLQ Cost Host
fd2e:28e1:693d:2::1 2001:bf7:831:63::1 121718 0.310000 0.000000 4194304.000000
The quality of the connection looks poor and I see only ipv6 meshing. How far are they from each other?
Did you use a different set of ip addresses for each router? Would you please post your /etc/config/network files for both routers?
host3:~# neigh.sh
Local Remote vTime LQ NLQ Cost Host
10.31.42.74 10.31.36.247 138177 0.886000 0.788000 1.430664 host2.olsr
Local Remote vTime LQ NLQ Cost Host
fd0e:f68c:df44:2::1 fd2e:28e1:693d:2::1 139240 0.886000 0.732000 1.538086
fd0e:f68c:df44:2::1 2001:bf7:831:63::1 121404 0.345000 0.000000 4194304.000000
host3:~# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd0e:f68c:df44::/48'
config interface 'wan'
option proto 'dhcp'
option peerdns '0'
option type 'bridge'
option ifname 'eth0 ffuplink_wan'
config interface 'wan6'
option ifname 'eth0'
option proto 'dhcpv6'
option peerdns '0'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 4 0t'
config interface 'tunl0'
option ifname 'tunl0'
option proto 'none'
config rule 'olsr_allif_ipv4'
option lookup 'olsr'
option priority '1000'
config rule 'localnets_allif_ipv4'
option lookup 'localnets'
option priority '2000'
config rule 'olsr_tunnel_tunl0_ipv4'
option lookup 'olsr-tunnel'
option priority '19999'
option in 'tunl0'
config rule 'olsr_default_tunl0_ipv4'
option lookup 'olsr-default'
option priority '20000'
option in 'tunl0'
config rule 'olsr_default_unreachable_tunl0_ipv4'
option action 'unreachable'
option priority '20001'
option in 'tunl0'
config interface 'wireless0'
option netmask '255.255.255.255'
option proto 'static'
option ipaddr '10.31.42.73'
option ip6assign '64'
config interface 'wireless1'
option netmask '255.255.255.255'
option proto 'static'
option ipaddr '10.31.42.74'
option ip6assign '64'
config interface 'dhcp'
option proto 'static'
option dns '85.214.20.141 194.150.168.168 2001:4ce8::53 2001:910:800::12'
option ifname 'eth1.1'
option netmask '255.255.255.240'
option ip6assign '64'
option ipaddr '10.36.226.225'
option type 'bridge'
config rule 'olsr_tunnel_wireless0_ipv4'
option lookup 'olsr-tunnel'
option priority '19999'
option in 'wireless0'
config rule 'olsr_default_wireless0_ipv4'
option lookup 'olsr-default'
option priority '20000'
option in 'wireless0'
config rule 'olsr_default_unreachable_wireless0_ipv4'
option action 'unreachable'
option priority '20001'
option in 'wireless0'
config rule 'olsr_tunnel_wireless1_ipv4'
option lookup 'olsr-tunnel'
option priority '19999'
option in 'wireless1'
config rule 'olsr_default_wireless1_ipv4'
option lookup 'olsr-default'
option priority '20000'
option in 'wireless1'
config rule 'olsr_default_unreachable_wireless1_ipv4'
option action 'unreachable'
option priority '20001'
option in 'wireless1'
config rule 'olsr_tunnel_dhcp_ipv4'
option lookup 'olsr-tunnel'
option priority '19999'
option in 'dhcp'
config rule 'olsr_default_dhcp_ipv4'
option lookup 'olsr-default'
option priority '20000'
option in 'dhcp'
config rule 'olsr_default_unreachable_dhcp_ipv4'
option action 'unreachable'
option priority '20001'
option in 'dhcp'
config device 'ffuplink_dev'
option name 'ffuplink'
option macaddr 'bb:6c:c9:ac:23:6e'
config interface 'ffuplink'
option ifname 'ffuplink'
option proto 'dhcp'
option ip4table 'ffuplink'
option ip6table 'ffuplink'
host2:~# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd2e:28e1:693d::/48'
config interface 'wan'
option proto 'dhcp'
option peerdns '0'
option type 'bridge'
option ifname 'eth0 ffuplink_wan'
config interface 'wan6'
option ifname 'eth0'
option proto 'dhcpv6'
option peerdns '0'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 4 0t'
config interface 'tunl0'
option ifname 'tunl0'
option proto 'none'
config rule 'olsr_allif_ipv4'
option lookup 'olsr'
option priority '1000'
config rule 'localnets_allif_ipv4'
option lookup 'localnets'
option priority '2000'
config rule 'olsr_tunnel_tunl0_ipv4'
option lookup 'olsr-tunnel'
option priority '19999'
option in 'tunl0'
config rule 'olsr_default_tunl0_ipv4'
option lookup 'olsr-default'
option priority '20000'
option in 'tunl0'
config rule 'olsr_default_unreachable_tunl0_ipv4'
option action 'unreachable'
option priority '20001'
option in 'tunl0'
config interface 'wireless0'
option netmask '255.255.255.255'
option proto 'static'
option ipaddr '10.31.36.246'
option ip6assign '64'
config interface 'wireless1'
option netmask '255.255.255.255'
option proto 'static'
option ipaddr '10.31.36.247'
option ip6assign '64'
config interface 'dhcp'
option proto 'static'
option dns '85.214.20.141 194.150.168.168 2001:4ce8::53 2001:910:800::12'
option ifname 'eth1.1'
option netmask '255.255.255.240'
option ip6assign '64'
option ipaddr '10.36.178.209'
option type 'bridge'
config rule 'olsr_tunnel_wireless0_ipv4'
option lookup 'olsr-tunnel'
option priority '19999'
option in 'wireless0'
config rule 'olsr_default_wireless0_ipv4'
option lookup 'olsr-default'
option priority '20000'
option in 'wireless0'
config rule 'olsr_default_unreachable_wireless0_ipv4'
option action 'unreachable'
option priority '20001'
option in 'wireless0'
config rule 'olsr_tunnel_wireless1_ipv4'
option lookup 'olsr-tunnel'
option priority '19999'
option in 'wireless1'
config rule 'olsr_default_wireless1_ipv4'
option lookup 'olsr-default'
option priority '20000'
option in 'wireless1'
config rule 'olsr_default_unreachable_wireless1_ipv4'
option action 'unreachable'
option priority '20001'
option in 'wireless1'
config rule 'olsr_tunnel_dhcp_ipv4'
option lookup 'olsr-tunnel'
option priority '19999'
option in 'dhcp'
config rule 'olsr_default_dhcp_ipv4'
option lookup 'olsr-default'
option priority '20000'
option in 'dhcp'
config rule 'olsr_default_unreachable_dhcp_ipv4'
option action 'unreachable'
option priority '20001'
option in 'dhcp'
config device 'ffuplink_dev'
option name 'ffuplink'
option macaddr '4a:fd:53:58:e0:39'
config interface 'ffuplink'
option ifname 'ffuplink'
option proto 'dhcp'
option ip4table 'ffuplink'
Did you set the 5Ghz device on both nodes to 802.11s? I have a similar setup working here (but with different hardware). 5Ghz is meshing with 802.11s and 2.4Ghz is meshing with adhoc.
Could you post /etc/config/wireless from both devices?
host2:~# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option channel '36'
option path 'pci0000:00/0000:00:00.0'
option disabled '0'
option country 'DE'
option doth '0'
option hwmode '11acn'
option diversity '1'
option htmode 'HT20'
config wifi-device 'radio1'
option type 'mac80211'
option path 'platform/qca956x_wmac'
option htmode 'HT20'
option disabled '0'
option country 'DE'
option doth '0'
option hwmode '11bgn'
option diversity '1'
option channel '13'
config wifi-iface
option network 'wireless0'
option device 'radio0'
option bssid '02:36:CA:FF:EE:EE'
option ssid 'intern-ch36.freifunk.net'
option mcast_rate '12000'
option mode 'adhoc'
option ifname 'wlan0-adhoc-5'
config wifi-iface
option ifname 'wlan0-dhcp-5'
option network 'dhcp'
option encryption 'none'
option device 'radio0'
option mode 'ap'
option ssid 'berlin.freifunk.net'
config wifi-iface
option network 'wireless1'
option encryption 'none'
option device 'radio1'
option bssid 'D2:CA:FF:EE:BA:BE'
option ssid 'intern-ch13.freifunk.net'
option mcast_rate '6000'
option mode 'adhoc'
option ifname 'wlan1-adhoc-2'
config wifi-iface
option ifname 'wlan1-dhcp-2'
option network 'dhcp'
option encryption 'none'
option device 'radio1'
option mode 'ap'
option ssid 'berlin.freifunk.net'
host3:~# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option channel '36'
option path 'pci0000:00/0000:00:00.0'
option disabled '0'
option country 'DE'
option doth '0'
option hwmode '11acn'
option diversity '1'
option htmode 'HT20'
config wifi-device 'radio1'
option type 'mac80211'
option path 'platform/qca956x_wmac'
option htmode 'HT20'
option disabled '0'
option country 'DE'
option doth '0'
option hwmode '11bgn'
option diversity '1'
option channel '13'
config wifi-iface
option network 'wireless0'
option device 'radio0'
option bssid '02:36:CA:FF:EE:EE'
option ssid 'intern-ch36.freifunk.net'
option mcast_rate '12000'
option mode 'adhoc'
option ifname 'wlan0-adhoc-5'
config wifi-iface
option ifname 'wlan0-dhcp-5'
option network 'dhcp'
option encryption 'none'
option device 'radio0'
option mode 'ap'
option ssid 'berlin.freifunk.net'
config wifi-iface
option network 'wireless1'
option encryption 'none'
option device 'radio1'
option bssid 'D2:CA:FF:EE:BA:BE'
option ssid 'intern-ch13.freifunk.net'
option mcast_rate '6000'
option mode 'adhoc'
option ifname 'wlan1-adhoc-2'
config wifi-iface
option ifname 'wlan1-dhcp-2'
option network 'dhcp'
option encryption 'none'
option device 'radio1'
option mode 'ap'
option ssid 'berlin.freifunk.net'
5Ghz on both devices are set up to use adhoc. adhoc does not work with the current driver. Please change to 802.11s with MeshID "Berlin-Freiufnk-Mesh" and see if it work better.
I assume this is a typo: "Berlin-Freiufnk-Mesh" -> "Berlin-Freifunk-Mesh"
That seems to work, thanks for helping me straighten that out!
But:
This is from a 3rd node, called host1.
host1:~# neigh.sh
Local Remote vTime LQ NLQ Cost Host
10.31.42.77 10.31.42.74 136515 0.831000 1.000000 1.202148 mid1.ManteuffelStr91-3.olsr
10.31.42.76 10.31.42.73 141380 1.000000 1.000000 1.000000 ManteuffelStr91-3.olsr
10.31.42.77 10.31.36.247 136793 1.000000 0.894000 1.118164 mid1.ManteuffelStr91-2.olsr
10.31.42.76 10.31.36.246 142671 0.886000 1.000000 1.127930 ManteuffelStr91-2.olsr
Local Remote vTime LQ NLQ Cost Host
fd45:a34a:929a:2::1 fd0e:f68c:df44:2::1 138336 0.894000 0.894000 1.250000
fd45:a34a:929a:1::1 fd0e:f68c:df44:1::1 137108 1.000000 1.000000 1.000000
fd45:a34a:929a:2::1 fd2e:28e1:693d:2::1 130683 0.831000 1.000000 1.202148
fd45:a34a:929a:1::1 fd2e:28e1:693d:1::1 138386 1.000000 1.000000 1.000000
Yup, typo...
I don't know what you mean by "can't join the public mesh".
This is a developer's test image. Not everything works automagically yet. So, sometimes a bit of manual configuration is necessary. :)
I don't think your third point is related to #580. But it is also not related to this issue. Could you open up a new issue? Maybe also show a traceroute from a connected client (not on the uplink node). Also, could you show the results of "ip tun" on all of your nodes?
Yup, typo...
I don't know what you mean by "can't join the public mesh".
The ad-hoc berlin freifunk mesh, does not mesh with the 802.11s as far as I understand it.
This is a developer's test image. Not everything works automagically yet. So, sometimes a bit of manual configuration is necessary. :)
Of course! Just wanted to be overly clear!
I don't think your third point is related to #580. But it is also not related to this issue. Could you open up a new issue? Maybe also show a traceroute from a connected client (not on the uplink node). Also, could you show the results of "ip tun" on all of your nodes?
Ack, created #623
Router: TP-Link Archer C59 v1 Build:
LuCI openwrt-18.06 branch (git-18.212.55608-5ec7261) / Freifunk Berlin 1.1.0-alpha 16a3e40
Expected behaviour
5Ghz radio starting being brought up and joining the local 5Ghz mesh.
Actual behaviour
5Ghz radio is recognized, but the interface is not brought up or joins the mesh.