WIFI AP avec Raspberry PI

Besoin d'un point d?acc?s wifi ?
http://rpi.vypni.net/wifi-ap-rt5370-on-raspberry-pi/
mat?riel n?cessaire :
 - rpi b 256mo
 - 2 cl? usb WIFI
 - uns sd avec  Raspbian Jessie Lite du 2015-11-21

pi@rpijessy:~ $ lsusb
Bus 001 Device 005: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. LAN9500 Ethernet 10/100 Adapter / SMSC9512/9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 Installation  de hostapd et dnmasq

aptitude install hostapd dnsmasq

Edition de /etc/network/interfaces afin de fixer une ip statique ? wlan0

nano /etc/network/interfaces

 

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 192.168.0.46
        netmask 255.255.255.0
        broadcast 192.168.0.255
        network 192.168.0.0
        gateway 192.168.0.1
        dns-nameservers 212.27.40.240 212.27.40.241


allow-hotplug wlan0
iface wlan0 inet static
  address 192.168.100.1
  netmask 255.255.255.0

#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
#iface default inet manual

allow-hotplug wlan1
auto wlan1
 
iface wlan1 inet static
        address 192.168.0.36
        netmask 255.255.255.0
        broadcast 192.168.0.255
        network 192.168.0.0
        gateway 192.168.0.1
        dns-nameservers 212.27.40.240 212.27.40.241
    wpa-ssid "ssid_du_wifi_auquel_on_veut_se_connecter"
    wpa-psk "motdepasse"

 le client DHCP est actif par defaut. il vaut mieux le desactiver pour eviter les pb de double adresses IP sur ET0

 

No module Published on Offcanvas position