0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

RaspberryPi 3B+を802.11acでアクセスポイント化

Last updated at Posted at 2020-05-26

ドングル等を使わずにラズパイ3B+のネットワークアダプターをそのまま使ってアクセスポイントを構築する。構築方法はRaspberryPiの公式ドキュメントで**ブリッジ構成ルータ構成**の2通りが説明されているが、今回はラズパイ3B+にIPアドレスでアクセスでき、拡張性も高いルータ構成で構築する。

基本的に上記の公式ドキュメントのままに進めていくが、ドキュメントでは通信が802.11gになっているので、802.11acで通信するように変更する。

/etc/hostapd/hostapd.conf
interface=wlan0
driver=nl80211
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=YOURSSID
country_code=JP
ieee80211d=1
hw_mode=a
channel=40
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=-1
fragm_threshold=-1
preamble=1
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wmm_enabled=1
ieee80211n=1
ht_capab=[MAX-AMSDU-3839][HT40-][SHORT-GI-20][SHORT-GI-40][DSSS_CCK-40]
require_ht=1
ieee80211ac=1
vht_capab=[MAX-MPDU-3895][SHORT-GI-80][SU-BEAMFORMEE]
vht_oper_chwidth=0
eapol_key_index_workaround=0
eap_server=0
own_ip_addr=127.0.0.1
wpa=2
wpa_passphrase=YOURPASSPHRASE
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP

あとは、速度テスト用にiperf3をインストールして検証。

sudo apt install -y iperf3
(ラズパイ側はサーバとして起動する)
$ iperf3 -s
(クライアント側はラズパイに接続して速度チェック)
Connecting to host 192.168.4.1, port 5201
[  5] local 192.168.4.50 port 50747 connected to 192.168.4.1 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  10.4 MBytes  87.1 Mbits/sec                  
[  5]   1.00-2.00   sec  10.7 MBytes  89.8 Mbits/sec                  
[  5]   2.00-3.00   sec  10.8 MBytes  90.2 Mbits/sec                  
[  5]   3.00-4.00   sec  10.8 MBytes  90.6 Mbits/sec                  
[  5]   4.00-5.00   sec  10.2 MBytes  85.9 Mbits/sec                  
[  5]   5.00-6.00   sec  11.0 MBytes  92.6 Mbits/sec                  
[  5]   6.00-7.00   sec  10.0 MBytes  84.1 Mbits/sec                  
[  5]   7.00-8.00   sec  10.2 MBytes  85.9 Mbits/sec                  
[  5]   8.00-9.00   sec  10.7 MBytes  89.7 Mbits/sec                  
[  5]   9.00-10.00  sec  10.8 MBytes  90.8 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.00  sec   106 MBytes  88.7 Mbits/sec                  sender
[  5]   0.00-10.03  sec   106 MBytes  88.4 Mbits/sec                  receiver

およそ90Mb/s出ているので、実運用でも使えるレベル。

##参考文献
Setting up a Raspberry Pi as a routed wireless access point
Raspberry Pi 向け CentOS にて稼働している Wi-Fi AP を、屋外でも使用できる 5GHz 帯に対応させる方法 (hostapd) - まこぴかっと

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?