raspberrypiでwifi
文書の過去の版を表示しています。
raspberrypiでwifi
- planex GW-USNano2
/etc/modprobe.d/8192cu.conf
options 8192cu rtw_power_mgnt=0
2台目のアダプタの追加方法
環境確認
iwconfig
wlan0が既存の物、wlan1がusbのものとする
デフォルトではhostapdはマスクされている。アンマスクしたうえで、有効化。
sudo systemctl unmask hostapd sudo systemctl enable hostapd
RaspberryPiでは2つのWiFiアダプタ両方共インターネット接続に設定されてしまう場合がある。 インターネット接続させたいアダプタwlan0に関して /etc/wpa_supplicant/wpa_supplicant-wlan0.conf に設定しておけばwpa_supplicantはwlan0だけを設定するので、 勝手にwlan1を掴んでしまう事は無いようだ。
/etc/network/interfaces
allow-hotplug wlan1 iface wlan1 inet manual
/etc/dhcpcd.conf
interface wlan1 static ip_address=192.168.130.1/24 static routers=192.168.130.1 static domain_name_servers=192.168.130.1 static broadcast 192.168.130.255
/etc/default/hostapd
DAEMON_CONF="/etc/hostapd/hostapd.conf" DAEMON_OPTS="-dd -t -f /home/pi/hostapd.log"
raspberrypiでwifi.1587222664.txt.gz · 最終更新: 2020/04/19 00:11 by nabezo