[FFA] Zweites Interface beim WDR3600 konfigurieren (war: Ad-hoc vs. Infrastructure Mode)

Marco marco.sauter at web.de
Fr Nov 27 23:11:57 CET 2015


Hi Soma,


das hilft mir auf jeden Fall schon mal weiter.
Momentan möchte ich es gern selber probieren, bevor ich den Imagebuilder anwerfe.
Ich will ja was lernen. Sorry wenn ich Eure Freizeit dazu strapaziere. 

Ziel ist Adhoc und AP SSID auf radio0 und radio1

Entspricht ja Deiner Config:
list network 'wireless0'
list network 'wireless0dhcp'
list network ‚wireless0ahdhcp'
list network 'wireless1'
list network 'wireless1dhcp'
list network 'wireless1ahdhcp'


Ich werde mir also für wireless1 noch ne IP aus dem 10.11.0.0/18 Transportnetz krallen.
Wie werden denn die IPs aus dem 6.0. Clientnetz verwaltet?
Ich hab momentan 6.0.100/24. Ist das alles meins? ;-)
Kann ich das einfach subnetten und für die DHCP Interfaces verwenden?


Danke und Servus,
Marco



> Am 25.11.2015 um 17:58 schrieb Manuel Munz <manu at comuno.net>:
> 
> On 25.11.2015 11:38, Marco wrote:
>> Hallo,
>> 
>> 
>> momentan ist auf radio0 das Ad-Hoc mit der SSID augsburg.freifunk.net
>> konfiguriert
>> Auf radio1 hab ich mal testweise eine SSID aindling.freifunk.net
>> angelegt und als Modus Access Point gewählt.
>> 
>> Beim Aktivieren der SSID aindling.freifunk.net bekomme ich im
>> WebInterface immer die Meldung:
>> //WLAN ist deaktiviert oder nicht assoziiert
>> 
>> //Anbei die /etc/config/wireless
>> 
>> [...]
>> 
>> config wifi-iface
>>    option device 'radio1'
>>    option encryption 'none'
>>    option mode 'ap'
>>    option network 'wireless0'
>>    option ssid 'aindling.freifunk.net'
>> 
> Hi Marco,
> 
> ein Problem liegt schon mal hier: option network 'wireless0'
> 
> wireless ist das adhoc interface. Da kann man kein AP-Interface
> draufbridgen. Mir ist auch nicht ganz klar, was zu bezweckst. Wenns drum
> geht, das zweite Interface einzurichten, dann hier mal meine config (die
> relevanten Teile):
> 
> ### /etc/config/wireless ###
> 
> # erstmal das device. htmode ist optional, aber machts u.U. schneller.
> Mac ersetzen mit deiner.
> config wifi-device 'radio1'
>        option type 'mac80211'
>        option macaddr '64:70:02:fe:fe:fe'
>        option htmode 'HT40+'
>        list ht_capab 'LDPC'
>        list ht_capab 'SHORT-GI-20'
>        list ht_capab 'SHORT-GI-40'
>        list ht_capab 'TX-STBC'
>        list ht_capab 'RX-STBC1'
>        list ht_capab 'DSSS_CCK-40'
>        option diversity '1'
>        option channel '40'
>        option disabled '0'
>        option country 'DE'
> 
> # dann zwei ifaces, eins adhoc, das andere ap
> config wifi-iface 'radio1_iface'
>        option device 'radio1'
>        option encryption 'none'
>        option mode 'adhoc'
>        option mcast_rate '6000'
>        option network 'wireless1'
>        option ssid 'augsburg.freifunk.net'
>        # bssid bei anderem Kanal: Laut bssid schema im Freifunk wiki
>        option bssid '02:40:CA:FF:EE:EE'
> 
> config wifi-iface 'radio1_iface_dhcp'
>        option device 'radio1'
>        option mode 'ap'
>        option encryption 'none'
>        option network 'wireless1dhcp'
>        option ssid 'Freifunk-10.11.0.18'
> 
> 
> ### dann dazu die /etc/config/network
> config interface 'wireless1'
>        option dns '8.8.8.8 212.204.49.83 141.1.1.1'
>        option netmask '255.255.192.0'
>        option proto 'static'
>        option ipaddr '10.11.0.18'
> 
> config interface 'wireless1dhcp'
>        option proto 'static'
>        option ipaddr '6.0.18.129'
>        option netmask '255.255.255.128'
> 
> config interface 'wireless1ahdhcp'
>        option ifname '@wireless1'
>        option proto 'static'
>        option ipaddr '6.0.18.1'
>        option netmask '255.255.255.128'
> 
> 
> ### /etc/config/olsrd
> config Interface 'wireless1'
>        option interface 'wireless1'
> 
> ### /etc/config/firewall
> config zone 'zone_freifunk'
>        option name 'freifunk'
>        option input 'REJECT'
>        option forward 'REJECT'
>        option output 'ACCEPT'
>        option masq '1'
>        list masq_src 'lan'
>        list masq_src 'wireless0dhcp'
>        list masq_src 'wireless0ahdhcp'
>        list masq_src 'wireless1dhcp'
>        list masq_src 'wireless1ahdhcp'
>        list network 'wireless0'
>        list network 'wireless0dhcp'
>        list network 'wireless0ahdhcp'
>        list network 'wireless1'
>        list network 'wireless1dhcp'
>        list network 'wireless1ahdhcp'
>        list network 'ffa'
> 
> ### /etc/config/luci_splash
> config iface 'wireless1dhcp'
>        option network 'wireless1dhcp'
>        option zone 'freifunk'
> 
> config iface 'wireless1ahdhcp'
>        option network 'wireless1ahdhcp'
>        option zone 'freifunk'
> 
> 
> ### /etc/config/auto-ipv6
> config interface 'wireless1'
>        option ra '1'
> 
> ### /etc/config/dhcp
> config dhcp 'wireless1dhcp'
>        option interface 'wireless1dhcp'
>        option start '2'
>        option leasetime '30m'
>        option force '1'
> 
> config dhcp 'wireless1ahdhcp'
>        option interface 'wireless1ahdhcp'
>        option start '2'
>        option leasetime '30m'
>        option force '1'
> 
> 
> Ich weiss jetzt nicht, ob dir das gross weiterhilft. Es brauchst auf
> jeden Fall noch Config an mehreren anderen Stellen, wie man sieht. Das
> oben richtet so adhoc und AP ein. Das bringt mich zu deiner Frage zur
> Notwendigkeit von adhoc zurück: Ohne ists halt kein Freifunk der meshen
> kann sondern ein ganz normaler Hotspot. Also nichts mehr, wofür ich
> Freizeit opfern würde...
> 
> Vielleicht wärs einfacher, du sicherst deine Config (insbesondere tinc)
> und generierst dir ein neues image im meshkit. Da kann man ja auch das
> zweite interface konfigurieren. Wenn du es aber so probieren willst: nur
> zu. Ist halt nur ein recht spezielles Konstrukt. Das openwrt
> netzwerksetup ist ja an sich schon nicht so leicht zu durchschauen.
> Unsere Config machts dann auch nicht unbedingt leichter. Aber: es ist
> durchschaubar und solange das nicht der Router ist, auf den man
> angweisen ist, kann man auch nicht viel kaputt machen. Ausser das Mesh,
> aber dann schickt dir schon jemand ne Mail.
> 
> Grüße, soma
> 
> 
> _______________________________________________
> freifunk-augsburg mailing list
> freifunk-augsburg at lists.subsignal.org
> https://lists.subsignal.org/mailman/listinfo/freifunk-augsburg



Mehr Informationen über die Mailingliste freifunk-augsburg