kb:linux:generalites:configurer_une_pi_en_point_d_acces_wifi
                no way to compare when less than two revisions
Différences
Ci-dessous, les différences entre deux révisions de la page.
| — | kb:linux:generalites:configurer_une_pi_en_point_d_acces_wifi [2019/10/21 22:08] (Version actuelle) – créée beu | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | ======Configurer une Pi en Point d' | ||
| + | Pour cela, il va falloir installer **hostapd** | ||
| + | |||
| + | <code bash> | ||
| + | # apt install hostapd | ||
| + | </ | ||
| + | |||
| + | On va désactiver les services bloquants : | ||
| + | |||
| + | <code bash> | ||
| + | # systemctl disable --now dhcpcd wpa_supplicant | ||
| + | </ | ||
| + | |||
| + | puis on va mettre une IP a l' | ||
| + | |||
| + | < | ||
| + | auto wlan0 | ||
| + | iface wlan0 inet static | ||
| + | address 192.168.7.1/ | ||
| + | </ | ||
| + | |||
| + | On monte ensuite l' | ||
| + | |||
| + | <code bash> | ||
| + | # ifup wlan0 | ||
| + | </ | ||
| + | |||
| + | On va ensuite configurer **hostapd** avec la configuration suivante : | ||
| + | |||
| + | <code file / | ||
| + | interface=wlan0 | ||
| + | driver=nl80211 | ||
| + | hw_mode=g # g pour 2.4Ghz, a pour 5Ghz, ag pour dual band | ||
| + | channel=0 | ||
| + | wmm_enabled=0 | ||
| + | macaddr_acl=0 | ||
| + | auth_algs=1 | ||
| + | ignore_broadcast_ssid=1 | ||
| + | wpa=2 | ||
| + | wpa_key_mgmt=WPA-PSK | ||
| + | wpa_pairwise=TKIP | ||
| + | rsn_pairwise=CCMP | ||
| + | ssid=MON-SSID | ||
| + | wpa_passphrase=MA-PASSPHRASE | ||
| + | </ | ||
| + | |||
| + | puis on va activer et démarrer **hostapd** | ||
| + | |||
| + | <code bash> | ||
| + | # systemctl enable --now hostapd | ||
| + | </ | ||
| + | |||
| + | Maintenant, il vous reste a configurer tout ce qui gravite autour, par exemple un [[kb: | ||
kb/linux/generalites/configurer_une_pi_en_point_d_acces_wifi.txt · Dernière modification :  de beu
                
                