ラズパイの無線ルーター化 hostapdが立ち上がらない
解決したいこと
こちらの記事を参考にRaspberry Piの無線ルーター化を試みています。
https://www.itmedia.co.jp/news/articles/2008/14/news042.html
記事の手順通りに進めているのですが、hostapdの立ち上げができず詰まってしまっています。
解決方法がわかる方がいらっしゃいましたら、ご教授いただきたいです。
使用しているのはRaspberry Pi3 model B、OSのバージョンは10.10です。
発生している問題・エラー
上記の記事の手順通りに、
・「/etc/dhcpcd.conf」に項目を追加
・hostapdのインストールと設定
を行いました。
最初にhostapdのstatusを確認した際は、記事にあるように以下のように表示されました。
● hostapd.service
Loaded: masked (Reason: Unit hostapd.service is masked.)
Active: inactive (dead)
その後、以下の3つのコマンドを実行しました。
sudo systemctl unmask hostapd
sudo systemctl enable hostapd
sudo systemctl start hostapd
すると、以下のようになり、hostapdが立ち上がらなくなりました。
pi@raspberrypi:~ $ sudo systemctl status hostapd
● hostapd.service - Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authen
Loaded: loaded (/lib/systemd/system/hostapd.service; enabled; vendor preset:
Active: activating (auto-restart) (Result: exit-code) since Tue 2021-09-21 1
Process: 1815 ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid -B $DAEMON_O
9月 21 18:06:06 raspberrypi systemd[1]: hostapd.service: Failed with result 'e
9月 21 18:06:06 raspberrypi systemd[1]: Failed to start Advanced IEEE 802.11 A
sudo systemctl restart hostapd を実行すると、以下のようになります。
Job for hostapd.service failed because the control process exited with error code.
See "systemctl status hostapd.service" and "journalctl -xe" for details.
journalctl -xe の実行結果は、以下のようになります。
--
-- An ExecStart= process belonging to unit hostapd.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
9月 21 18:16:07 raspberrypi systemd[1]: hostapd.service: Failed with result 'e
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit hostapd.service has entered the 'failed' state with result 'exit-co
9月 21 18:16:07 raspberrypi systemd[1]: Failed to start Advanced IEEE 802.11 A
-- Subject: A start job for unit hostapd.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit hostapd.service has finished with a failure.
--
-- The job identifier is 48890 and the job result is failed.
0 likes