https://github.com/Phoenix1747/RouteryPi bevat instructies voor het gebruik van een Rasberry Pi als draadloze router voor 2,4 Ghz-netwerken.

Hoe kan ik dit wijzigen om 5 Ghz te krijgen? Ik heb geprobeerd hw_mode te veranderen in ac, maar dat lijkt niet te werken. Waar kan ik fatsoenlijke informatie vinden over de parameters in het hostapd-configuratiebestand en hoe schrijf ik een goede config-bestand?

Reacties

  • Ik heb begrepen dat mijn antwoord helemaal niet ' heeft geholpen

Antwoord

TL; DR

gebruik

hw_mode=a 

Ik zie dat de manpages voor hostapd nogal nutteloos zijn

Ik vond een meer bruikbare pagina https://wiki.gentoo.org/wiki/Hostapd met het volgende voorbeeld

802.11a / n / ac met WPA2-PSK en CCMP

Een eenvoudig maar veilig toegangspunt voor recente 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 

met de nuttige opmerking

hw_mode=a # a simply means 5GHz 

Let op: blijkbaar latere versies (v2.6 + ) van hostapd houden NIET van inline commentaren in de co nfig-bestand

Opmerkingen

  • raspberrypi.org/documentation/configuration/wireless/… bevat ook wat nuttige documentatie over het configuratiebestand
  • Ter info; op hostapd v2.6 houdt het ' niet van inline commentaren specifiek voor de hw_mode regel; Configuratiebestand: /etc/hostapd/hostapd.conf Regel 5: unknown hw_mode ' a # a = 5Ghz, g = 2.4Ghz (blijkbaar) ' HT (IEEE 802.11n) in 11b-modus is niet toegestaan, waardoor HT-mogelijkheden 1 worden uitgeschakeld, fouten gevonden in configuratiebestand ' /etc/hostapd/hostapd.conf'
  • @sirlark bedankt voor de info

Antwoord

Mijn hostapd.conf in raspberry pi 3B plus met raspbian stretch:

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 

Geef een reactie

Het e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *