https://github.com/Phoenix1747/RouteryPi enthält Anweisungen zur Verwendung eines Rasberry Pi als WLAN-Router für 2,4-GHz-Netzwerke.

Wie kann ich dies ändern, um 5 GHz zu erhalten? Ich habe versucht, hw_mode in ac zu ändern, aber das scheint nicht zu funktionieren. Wo kann ich anständige Informationen zu den Parametern in der Hostapd-Konfigurationsdatei erhalten und wie schreibe ich eine gute Konfigurationsdatei?

Kommentare

  • Ich habe meine Antwort gesammelt. ' hat überhaupt nicht geholfen

Antwort

TL; DR

benutze

hw_mode=a 

Ich sehe, dass die Manpages für hostapd ziemlich nutzlos sind.

Ich habe eine nützlichere Seite gefunden. https://wiki.gentoo.org/wiki/Hostapd mit dem folgenden Beispiel

802.11a / n / ac mit WPA2-PSK und CCMP

Ein einfacher, aber sicherer AP für aktuelle Hardware:
FILE /etc/hostapd/hostapd.conf

interface=wlan0 # the interface used by the AP hw_mode=a # a simply means 5GHz channel=0 # the channel to use, 0 means the AP will search for the channel with the least interferences ieee80211d=1 # limit the frequencies used to those allowed in the country country_code=FR # the country code ieee80211n=1 # 802.11n support ieee80211ac=1 # 802.11ac support wmm_enabled=1 # QoS support ssid=somename # the name of the AP auth_algs=1 # 1=wpa, 2=wep, 3=both wpa=2 # WPA2 only wpa_key_mgmt=WPA-PSK rsn_pairwise=CCMP wpa_passphrase=somepassword 

mit dem nützlichen Kommentar

hw_mode=a # a simply means 5GHz 

Bitte beachten Sie: anscheinend spätere Versionen (v2.6 + ) von hostapd mögen keine Inline-Kommentare in der Co. nfig-Datei

Kommentare

  • raspberrypi.org/documentation/configuration/wireless/… enthält auch einige nützliche Dokumentationen zur Konfigurationsdatei
  • FYI; Auf hostapd v2.6 werden ' keine Inline-Kommentare speziell für die Zeile hw_mode angezeigt. Konfigurationsdatei: /etc/hostapd/hostapd.conf Zeile 5: unbekannt hw_mode ' a # a = 5 GHz, g = 2,4 GHz (anscheinend) ' HT (IEEE 802.11n) im 11b-Modus ist nicht zulässig. Deaktivieren von HT-Funktionen 1 Fehler in der Konfigurationsdatei ' /etc/hostapd/hostapd.conf'
  • @sirlark danke für die Info

Antwort

Meine hostapd.conf in Himbeer-Pi 3B plus mit Raspbian-Dehnung:

interface=wlan0 ssid=pi-5G macaddr_acl=0 ignore_broadcast_ssid=0 ## 2.4G #hw_mode=a #channel=7 ## 5G hw_mode=a channel=36 country_code=US ieee80211d=1 ieee80211n=1 ieee80211ac=1 wmm_enabled=1 ## wpa auth auth_algs=1 wpa=2 wpa_passphrase=11111111 wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP 

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.