[Berlin-wireless] Mesh On LAN / WAN

Perry isprotejesvalkata at gmail.com
Mo Jun 25 17:20:33 CEST 2018


Hallo Hendrik,

Ich habe vorgestern ein CPE mit Meshlan konfiguiert (no-tunnel firmware).

Am Anhang sind die network, olsrd und olsrd6 dataien aus /etc/config

Mit diesen setup ist batmat nicht benutzt.  Also, the dhcp interface
leitet direkt zu der core router.  Der CPE macht nur WLAN-Mesh,
LAN-Mesh, und AccessPoint.

Die IP's habe ich geändert (mit inline Kommentare)

NOTE:  WAN und WAN6 sind gelösht.  DHCP ist auf ignore eingerichted

Gruß,

Perry

On 25.06.2018 17:01, Hendrik Mayer wrote:
> Hat jemand bereits eine CPE210 für Mesh On WAN konfiguriert? Vielleicht
> kann mir diese Person mir helfe, sodass wenigstens die CPE210 läuft und ich
> die Fehlersuche eingrenzen kann.
> Hab bisher auch nur über das Webinterface gearbeitet. Gibt es Dinge, die
> ich zwingend über ssh erledigen muss, dass es überhaupt funktionieren kann
> ( BATMAN etc) oder ist das nur optional. Und woran erkenne ich ob er über
> LAN/WAN mesht. Die IPs, die ich für die LANMesh Interfaces vergeben habe
> kann ich auch erreichen per Ping, aber auf der Status Page steht nur was
> von wlan-adhoc2 als Schnittstelle des Nachbarn. Ich vermute da müsste dann
> FFLAN stehen.
> 
> Am 23. Juni 2018 um 19:10 schrieb Christian Hammel <hammel at gmx.de>:
> 
>> ganz sicher bin ich mir nicht, aber es käme auf den Versuch an:
>> Wenn du weder die Buchse WAN noch die Schnittstelle WAN in der CPE für
>> etwas brauchst, könntest du WAN und WAN6 mal von eth0.2 abklemmen (in deren
>> physikalischen Netzwerkseinstellungen).
>> Vielleicht geht's ja dann.
>> Und da eth0.1 offensichtlich gar nicht benutzt ist, kannst auch noch
>> versuchen, dein Vorhaben über eth0.1 und die LAN-Buchse zu realisieren,
>> (also deine neue Schnittstelle daran hängen), um auszuschließen, dass die
>> CPE die beiden irgendwie intern unterschiedlich handhabt.
>> Christian
>>
>> Am 23.06.2018 um 00:09 schrieb Hendrik Mayer:
>>
>>> Ich habe nun noch die SwitchPortConfig als Bild mit dazu gepackt.
>>> Vielleicht hilft das ja weiter.
>>>
>>> Am 22. Juni 2018 um 21:36 schrieb Hendrik Mayer <hendrik1196 at gmail.com
>>> <mailto:hendrik1196 at gmail.com>>:
>>>
>>>     Vielen Dank schonmal für die Tipps.
>>>
>>>     Leider hab ich es bis jetzt nicht zum Laufen bekommen. Mesh über
>>>     WLAN funktioniert. Als FF-Router mit Internetzugang über den
>>>     Community Tunnel nutze ich den Nexx WT3020. Dieser hat 2 LAN Ports.
>>>     Ich habe meine Bilder der Konfiguration hochgeladen. Vllt kann mir
>>>     ja jemand sagen, wo mein Fehler liegt. Der Bildname fängt immer mit
>>>     dem jeweiligen Router an.
>>>
>>>     https://drive.google.com/drive/folders/1GqOwe5rCVC5_oPX6YCTN
>>> noth0pDql2n2?usp=sharing
>>>     <https://drive.google.com/drive/folders/1GqOwe5rCVC5_oPX6YCT
>>> Nnoth0pDql2n2?usp=sharing>
>>>
>>>     Vielen Dank schonmal.
>>>
>>>     Grüße Hendrik
>>>
>>>     Am 21. Juni 2018 um 06:19 schrieb Karl Felix Beecken
>>>     <karl.lists at gmx.de <mailto:karl.lists at gmx.de>>:
>>>
>>>         Hallo Hendrik
>>>
>>>         Erstmal konfigurierst du die CPE im Assistenten auf Mesh-only.
>>>         Dann arbeitest du das Tutorial noch mal ab, es unterscheiden
>>>         sich nur die Schnittstellenbezeichnungen (Der PoE-In-Port heißt
>>>         IIRC LAN bzw. eth0). Danach sollten die Knoten sowohl über WLAN
>>>         als auch über Kabel meshen, wobei die Kabel-Verbindung aufgrund
>>>         der besseren Übertragungsrate bevorzugt wird.
>>>
>>>         Karl Felix Beecken
>>>
>>>
>>>         Am 20.06.2018 um 21:43 schrieb Hendrik Mayer
>>>         <hendrik1196 at gmail.com <mailto:hendrik1196 at gmail.com>>:
>>>
>>>         Hallo zusammen,
>>>>
>>>>         ich versuche gerade folgendes Konzept aufzubauen:
>>>>
>>>>         Internetrouter --> FF-Router 1 (WLAN an) ---> TP Link CPE210
>>>>
>>>>         FF-Router 1 soll Mesh on LAN machen. Dies habe ich bereits
>>>>         mithilfe diesen Tutorials eingestellt.
>>>>         https://wiki.freifunk.net/Berlin:Tutorial:Mesh_via_LAN#Workf
>>>> low_in_LuCI_.28dem_Web-Interface.29
>>>>         <https://wiki.freifunk.net/Berlin:Tutorial:Mesh_via_LAN#Work
>>>> flow_in_LuCI_.28dem_Web-Interface.29>
>>>>
>>>>         Leider weiß ich nicht genau was ich auf dem TP Link CPE 210
>>>>         einstellen muss, damit er über WAN statt WLAN mesht. Habe dazu
>>>>         leider nichts vertrauenserweckendes gefunden.
>>>>
>>>>         Stehe gerade bei der CPE 210 bei dem Einrichtungsassistenten.
>>>>
>>>>         Danke für die Hilfe :)
>>>>
>>>>         Grüße Hendrik
>>>>         _______________________________________________
>>>>         Berlin mailing list
>>>>         Berlin at berlin.freifunk.net <mailto:Berlin at berlin.freifunk.net>
>>>>         http://lists.berlin.freifunk.net/cgi-bin/mailman/listinfo/berlin
>>>>         <http://lists.berlin.freifunk.net/cgi-bin/mailman/listinfo/b
>>>> erlin>
>>>>         Diese Mailingliste besitzt ein öffentlich einsehbares Archiv
>>>>
>>>
>>>         _______________________________________________
>>>         Berlin mailing list
>>>         Berlin at berlin.freifunk.net <mailto:Berlin at berlin.freifunk.net>
>>>         http://lists.berlin.freifunk.net/cgi-bin/mailman/listinfo/berlin
>>>         <http://lists.berlin.freifunk.net/cgi-bin/mailman/listinfo/berlin
>>>>
>>>         Diese Mailingliste besitzt ein öffentlich einsehbares Archiv
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Berlin mailing list
>>> Berlin at berlin.freifunk.net
>>> http://lists.berlin.freifunk.net/cgi-bin/mailman/listinfo/berlin
>>> Diese Mailingliste besitzt ein �ffentlich einsehbares Archiv
>>>
>>>
>> _______________________________________________
>> Berlin mailing list
>> Berlin at berlin.freifunk.net
>> http://lists.berlin.freifunk.net/cgi-bin/mailman/listinfo/berlin
>> Diese Mailingliste besitzt ein ffentlich einsehbares Archiv
> 
> 
> 
> _______________________________________________
> Berlin mailing list
> Berlin at berlin.freifunk.net
> http://lists.berlin.freifunk.net/cgi-bin/mailman/listinfo/berlin
> Diese Mailingliste besitzt ein �ffentlich einsehbares Archiv
> 
-------------- nächster Teil --------------

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 'fd88:eedf:f649::/48'

config switch
	option name 'switch0'
	option reset '1'
	option enable_vlan '1'

config switch_vlan
	option device 'switch0'
	option vlan '1'
	option ports '0t 4 5t'
	option vid '10'

config switch_vlan
	option device 'switch0'
	option vlan '2'
	option ports '0t 5t'
	option vid '200'

config interface 'tunl0'
	option ifname 'tunl0'
	option proto 'none'

config device 'ffuplink_dev'
	option type 'veth'
	option name 'ffuplink'
	option peer_name 'ffuplink_wan'

config interface 'ffuplink'
	option ifname 'ffuplink'
	option proto 'dhcp'

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.XXX.YYY' # Mesh IP addr
	option ip6assign '64'

config interface 'dhcp'
	option proto 'static'
	option ip6assign '64'
	option type 'bridge'
	option ifname 'eth0.10'
	option ipaddr '10.36.XXX.YYY'  # eine IP-adresse aus der DHCP bereich von der core router.
	option netmask '255.255.255.192'  # Gleiche netmask wie der core router.
	option dns '85.214.20.141 194.150.168.168 2001:4ce8::53 2001:910:800::12'

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_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 interface 'cpelan'
	option proto 'static'
	option ifname 'eth0.200'
	option ipaddr '10.31.XXX.ZZZ' # Mesh IP adresse
	option netmask '255.255.255.255'
	option ip6assign '64'

config rule 'olsr_tunnel_cpelan_ipv4'
	option lookup 'olsr-tunnel'
	option priority '19999'
	option in 'cpelan'

config rule 'olsr_default_cpelan_ipv4'
	option lookup 'olsr-default'
	option priority '20000'
	option in 'cpelan'

config rule 'olsr_default_unreachable_cpelan_ipv4'
	option action 'unreachable'
	option priority '20001'
	option in 'cpelan'

-------------- nächster Teil --------------

config LoadPlugin
	option accept '0.0.0.0'
	option library 'olsrd_txtinfo.so.0.1'
	option port '2006'

config LoadPlugin
	option library 'olsrd_arprefresh.so.0.1'

config LoadPlugin
	option library 'olsrd_nameservice.so.0.3'
	option suffix '.olsr'
	option hosts_file '/tmp/hosts/olsr'
	option latlon_file '/var/run/latlon.js'
	option services_file '/var/etc/services.olsr'

config LoadPlugin
	option accept '0.0.0.0'
	option library 'olsrd_jsoninfo.so.0.0'
	option ignore '0'

config LoadPlugin
	option library 'olsrd_watchdog.so.0.1'
	option file '/var/run/olsrd.watchdog'
	option interval '30'

config LoadPlugin
	option library 'olsrd_dyn_gw.so.0.5'
	list Ping '85.214.20.141'
	list Ping '213.73.91.35'
	list Ping '194.150.168.168'
	option ignore '0'
	option PingCmd 'ping -c 1 -q -I ffuplink %s'
	option PingInterval '30'

config olsrd
	option IpVersion '4'
	option FIBMetric 'flat'
	option AllowNoInt 'yes'
	option TcRedundancy '2'
	option NatThreshold '0.75'
	option LinkQualityAlgorithm 'etx_ff'
	option SmartGateway 'yes'
	option SmartGatewayThreshold '50'
	option Pollrate '0.025'
	option RtTable '111'
	option RtTableDefault '112'
	option RtTableTunnel '113'
	option RtTableTunnelPriority '100000'
	option RtTableDefaultOlsrPriority '20000'
	option LinkQualityLevel '2'
	option OlsrPort '698'
	option SmartGatewayUplink 'both'
	option Willingness '3'

config InterfaceDefaults
	option MidValidityTime '500.0'
	option TcInterval '2.0'
	option HnaValidityTime '125.0'
	option HelloValidityTime '125.0'
	option TcValidityTime '500.0'
	option Ip4Broadcast '255.255.255.255'
	option MidInterval '25.0'
	option HelloInterval '3.0'
	option HnaInterval '10.0'
	option Mode 'mesh'

config Interface
	option ignore '0'
	option interface 'wireless0'

config Interface
	option ignore '0'
	option interface 'cpelan'
	option Mode 'ether'

-------------- nächster Teil --------------

config LoadPlugin
	option accept '0::'
	option library 'olsrd_txtinfo.so.0.1'
	option port '2006'
	option ipv6only 'true'

config LoadPlugin
	option library 'olsrd_nameservice.so.0.3'
	option suffix '.olsr'
	option hosts_file '/tmp/hosts/olsr.ipv6'
	option latlon_file '/var/run/latlon.js.ipv6'
	option services_file '/var/etc/services.olsr.ipv6'

config LoadPlugin
	option accept '0::'
	option library 'olsrd_jsoninfo.so.0.0'
	option ignore '0'
	option ipv6only 'true'

config LoadPlugin
	option library 'olsrd_watchdog.so.0.1'
	option file '/var/run/olsrd6.watchdog'
	option interval '30'

config olsrd
	option IpVersion '6'
	option FIBMetric 'flat'
	option AllowNoInt 'yes'
	option TcRedundancy '2'
	option LinkQualityAlgorithm 'etx_ffeth'
	option Pollrate '0.025'
	option RtTable '111'
	option RtTableDefault '112'
	option RtTablePriority '1000'
	option RtTableDefaultOlsrPriority '20000'

config InterfaceDefaults
	option MidValidityTime '500.0'
	option TcInterval '2.0'
	option HnaValidityTime '125.0'
	option HelloValidityTime '125.0'
	option TcValidityTime '500.0'
	option MidInterval '25.0'
	option HelloInterval '3.0'
	option HnaInterval '10.0'
	option Mode 'mesh'

config Interface
	option ignore '0'
	option interface 'wireless0'

config Hna6
	option prefix '48'
	option netaddr 'fd88:eedf:f649::'

config Interface
	option ignore '0'
	option interface 'cpelan'
	option Mode 'ether'



Mehr Informationen über die Mailingliste Berlin