User avatar
JeremPi
Posts: 24
Joined: Tue May 05, 2015 1:33 pm

point d'accès wifi

Wed Jun 24, 2015 10:10 am

Bonjour à tous,

J'essaie désepérement de trouner ma raspberry Pi (modèle B+) en un point d'accès wifi.
J'ai réussi en filaire (eth0) mais je n'arrive pas a me faire la main sur le wifi (wlan0).
J'ai d'ores et déjà installer dnsmasq et hostapd .
J'utilise une clé usb wifi (dongle)
lsusb:

Code: Select all

pi@raspberrypi:~$ lsusb
***
Bus 001 Device 004: ID 050d:2103 Belkin Components F7D2102 802.11n N300 Micro Wireless Adapter v3000 [Realtek RTL8192CU]
Quand j'essaie de redémarrer le network j'ai ceci:

Code: Select all

pi@raspberrypi:~$ sudo /etc/init.d/networking stop
Deconfiguring network interfaces...done.
pi@raspberrypi:~$ sudo /etc/init.d/networking start
Configuring network interfaces...wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
done.
pi@raspberrypi:~$ 
la commande iw ne me renvoie rien du tout. pourtant la documentation de ma clé wifi affirme posséder un mode master (AP).
ifconfig:

Code: Select all

pi@raspberrypi:~$ ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr b4:75:0e:1f:88:07  
          inet addr:192.168.24.5  Bcast:192.168.24.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
interface:

Code: Select all

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.23.5
netmask 255.255.255.0

auto wlan0
iface wlan0 inet static
address 192.168.24.5
netmask 255.255.255.0
network 192.168.24.0
broadcast 192.168.24.255

auto wlan1
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
hostapd.conf:

Code: Select all

interface=wlan0
driver=nl80211
hw_mode=g
channel=2
country_code=FR
ieee80211d=1
ssid=PiStream
auth_algs=3
wpa=3
wpa_passphrase=raspberry
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
macaddr_acl=0
ht_capab=[HT20][SHORT-GI-20]
eap_reauth_period=360000000
ignore_broadcast_ssid=0
dnsmasq.conf:

Code: Select all

bogus-priv
interface=wlan0
dhcp-range=192.168.24.6,192.168.24.254,255.255.255.0,12h
log-queries
log-dhcp
Une idée :?:
Last edited by JeremPi on Wed Jun 24, 2015 1:15 pm, edited 1 time in total.

MrEngman
Posts: 3838
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: point d'accès wifi

Wed Jun 24, 2015 10:28 am

Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

User avatar
JeremPi
Posts: 24
Joined: Tue May 05, 2015 1:33 pm

Re: point d'accès wifi

Wed Jun 24, 2015 12:30 pm

I don't want to bridge wifi to ethernet. I don't need ethernet, I want only wifi.

i-zerocool
Posts: 98
Joined: Tue Oct 02, 2012 10:27 am

Re: point d'accès wifi

Wed Jun 24, 2015 2:25 pm

tu suits le tuto que MrEngman a cité mais en excluant les parties concernant le bridge.

Return to “Français”