Linux/Cle Usb Wifi
De GeRgOsNet
Distribution : Debian Squeeze Clé Usb Wifi : TP-Link TL-WN321G
- La clé est elle detecté :
root@debian:~# iwconfig
Si vous voyez:
wlan0 IEEE 802.11bg ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm Retry long limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:on
Alors oui .
- Activer le reseau wifi :
ifconfig wlan0 up
- Scan des reseaux dispo :
iwlist wlan0 scan
- Installation du module WPA :
apt-get install wpasupplicant
- Connexion à un réseau à la main :
iwconfig wlan0 essid MonSSID
- Config Clé Wep :
iwconfig wlan0 key LaCLEWEP
- Config Clé Wpa :
Creer fichier :
pico /etc/wpa_supplicant.conf
Mettre dedans :
network={ ssid="le_nom_de_votre_super_wifi" psk="la_clé_de_votre_super_wifi" }
Lancé le reseau en WPA :
wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant.conf -Dwext
Après cela la clé devrait être connecter . Si ce n'est pas le cas il suffit de faire un :
ifconfig down ifconfig up
- Connexion automatique à un reseau :
Editer /etc/network/interfaces
pico /etc/network/interfaces
Ajouter :
Version WEP:
auto wlan0 iface wlan0 inet static wireless-essid VotreWIFI wireless-key VotreCleWEP address 192.168.3.61 netmask 255.255.255.0 gateway 192.168.3.240
Version WPA :
auto wlan0 iface wlan0 inet static wpa-ssid VotreWIFI wpa-psk VotreCleWPA address 192.168.3.61 netmask 255.255.255.0 gateway 192.168.3.240
- Forcer la vitesse du réseau wifi :
ifdown wlan0 iwconfig wlan0 rate 54M ifup wlan0
- Changer la MAC de sa clé usb :
ifconfig wlan0 hw ether xx:xx:xx:xx:xx:xx
- Créer un ad-hoc en WPA :
Manuel :
Auto:
Editer /etc/network/interfaces
auto wlan0 iface wlan0 inet static address 192.168.3.61 netmask 255.255.255.0 gateway 192.168.3.240 wpa-ssid MonReseauWPA wpa-ap-scan 2 wpa-scan-ssid 1 wpa-key-mgmt WPA-NONE wpa-group TKIP wpa-pairwise NONE wpa-proto WPA wpa-psk MonPassWifiAmoi
- Créer un ad-hoc en WEP :
Manuel :
ifconfig wlan0 down iwconfig wlan0 mode ad-hoc iwconfig wlan0 channel 4 iwconfig wlan0 essid GreGEstFort iwconfig wlan0 key abcde12345 ifconfig wlan0 192.168.6.6
Auto :
Editer /etc/network/interfaces
auto wlan0 iface wlan0 inet static address 192.168.6.61 netmask 255.255.255.0 gateway 192.168.6.240 wireless-mode ad-hoc wireless-essid GreGEst2foisPlusFort wireless-key abcde12345