LoginSignup
1
1

More than 5 years have passed since last update.

raspberry pi 1 model bを親機にしてみた。

Last updated at Posted at 2016-10-21

概要

raspberry pi 1 model bを、wifi親機にしてみた。

開発環境

raspberry pi 1 model b
raspbian 2016_09_23 jessie lite
usbトングル buffalo WLI-UC-GNM

インストール

sudo aptitude install hostapd dnsmasq

設定1

/etc/network/interfaces

iface wlan0 inet manual
\# wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

設定2

/etc/dhcpcd.conf

interface wlan0
static ip_address=10.0.0.1/24

設定3

/etc/hostapd/hostapd.conf

interface=wlan0
driver=nl80211
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=<opi>
country_code=JP
hw_mode=g
channel=2
beacon_int=100
max_num_sta=5
macaddr_acl=0
auth_algs=1
wpa=1
wpa_passphrase=<momimomi>
wpa_key_mgmt=WPA-PSK

設定4

/etc/dnsmasq.conf

no-dhcp-interface=eth0
interface=wlan0
dhcp-range=10.0.0.2,10.0.0.125,255.255.255.0,12h

1
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
1
1