/!\ A tester /!\

1) Répertoires de travail :

station132:~# mkdir MATERIELS
station132:~# cd MATERIELS/
station132:~/MATERIELS# mkdir SANSFIL
station132:~/MATERIELS# cd SANSFIL/
station132:~/MATERIELS/SANSFIL#

2) Détection du type de carte réseau sans-fil :

station132:~/MATERIELS/SANSFIL# lspci | grep Net
03:00.0 Network controller: RaLink Device 0781

3) Téléchargement du code source :

Lien : http://www.ralinktech.com/support.php?s=2
Choisir : RT2860PCI/mPCI/CB/PCIe(RT2760/RT2790/RT2860/RT2890)
Fichier : 2009_0918_RT2860_Linux_STA_v2.2.0.0.tar.bz2

4) Décompresser l’archive :

station132:~/MATERIELS/SANSFIL# tar xvfj 2009_0918_RT2860_Linux_STA_v2.2.0.0.tar.bz2
station132:~/MATERIELS/SANSFIL# cd 2009_0918_RT2860_Linux_STA_v2.2.0.0/
station132:~/MATERIELS/SANSFIL/2009_0918_RT2860_Linux_STA_v2.2.0.0#

5) Configuration du Makefile :

Ouvrir :

os/linux/config.mk

Chercher :

# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT=n

# Support Native WpaSupplicant for Network Maganger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n

Remplacer par :

# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT=y

# Support Native WpaSupplicant for Network Maganger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

6) Compilation et installation :

station132:~/MATERIELS/SANSFIL/2009_0918_RT2860_Linux_STA_v2.2.0.0# make
station132:~/MATERIELS/SANSFIL/2009_0918_RT2860_Linux_STA_v2.2.0.0# make install

7) Charger le module :

station132:~/MATERIELS/SANSFIL/2009_0918_RT2860_Linux_STA_v2.2.0.0# modprobe rt2860sta

8) Vérification :

station132:~/MATERIELS/SANSFIL/2009_0918_RT2860_Linux_STA_v2.2.0.0# lsmod | grep rt2860sta
rt2860sta 519816 0
station132:~/MATERIELS/SANSFIL/2009_0918_RT2860_Linux_STA_v2.2.0.0# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

ra0 Ralink STA

9) Activer ra0 :

station132:~/MATERIELS/SANSFIL/2009_0918_RT2860_Linux_STA_v2.2.0.0# ifconfig ra0 up
station132:~/MATERIELS/SANSFIL/2009_0918_RT2860_Linux_STA_v2.2.0.0# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

ra0 Ralink STA ESSID:"" Nickname:"RT2860STA"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Bit Rate:1 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=10/100 Signal level:0 dBm Noise level:-97 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

station132:~/MATERIELS/SANSFIL/2009_0918_RT2860_Linux_STA_v2.2.0.0#

10) Détecter des réseaux sans-fil :

station132:~# iwlist ra0 scan
ra0 Scan completed :
...
Cell 03 - Address: 00:18:39:67:78:7B
Protocol:802.11b/g
ESSID:"lerepairedusanglier"
Mode:Managed
Frequency:2.462 GHz (Channel 11)
Quality:50/100 Signal level:-70 dBm Noise level:-92 dBm
Encryption key:off
Bit Rates:54 Mb/s

10) Configuration d’un réseau « ouvert »

station132:~# iwpriv ra0 set NetworkType=Infra
station132:~# iwpriv ra0 set AuthMode=OPEN
station132:~# iwpriv ra0 set EncrypType=NONE
station132:~# iwconfig ra0 essid lerepairedusanglier
station132:~# ifconfig ra0 192.168.1.133 netmask 255.255.255.0

/!\ Remarque :
Peut-être faire un redémarrage pour prendre en-compte le essid

Pour d’autres types de configuration de réseaux sans-fils :
2009_0918_RT2860_Linux_STA_v2.2.0.0/iwpriv_usage.txt
Rubrique [examples]

11) Vérification :

station132:~# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

ra0 Ralink STA ESSID:"lerepairedusanglier" Nickname:"RT2860STA"
Mode:Managed Frequency=2.462 GHz Access Point: 00:18:39:67:78:7B
Bit Rate=24 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=62/100 Signal level:-80 dBm Noise level:-97 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

tap0 no wireless extensions.

12) Vérification :

station132:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:22:15:df:29:bc
inet adr:192.168.1.132 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: fe80::222:15ff:fedf:29bc/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:61909 errors:0 dropped:1571546306 overruns:0 frame:0
TX packets:36610 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:59864001 (57.0 MiB) TX bytes:3763102 (3.5 MiB)
Interruption:220

lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:576 errors:0 dropped:0 overruns:0 frame:0
TX packets:576 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:252963 (247.0 KiB) TX bytes:252963 (247.0 KiB)

ra0 Link encap:Ethernet HWaddr 00:22:43:45:55:24
inet adr:192.168.1.133 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: fe80::222:43ff:fe45:5524/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4723 errors:0 dropped:0 overruns:0 frame:0
TX packets:218 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:458405 (447.6 KiB) TX bytes:5591 (5.4 KiB)
Interruption:17

13) Tests :

lesanglier@station66:~$ ping 192.168.1.133
PING 192.168.1.133 (192.168.1.133) 56(84) bytes of data.
64 bytes from 192.168.1.133: icmp_seq=1 ttl=64 time=1.57 ms
64 bytes from 192.168.1.133: icmp_seq=2 ttl=64 time=1.34 ms

Ou

lesanglier@station66:~$ ssh root@192.168.1.133
root@192.168.1.133's password:
Linux station132 2.6.26-2-686 #1 SMP Wed Nov 4 20:45:37 UTC 2009 i686

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Dec 26 09:30:34 2009 from station66.local
station132:~#

14) Liens :

http://ubuntuforums.org/showthread.php?t=1045703
http://wiki.debian.org/rt2860sta
http://www.brunovalentin.com/linux/wifi-asus-eeebox-linux/
http://wirelessdefence.org/Contents/LinuxWirelessCommands.htm#iwconfig%20Commands

Cet article a été publié le Vendredi 25 décembre 2009 à 17 h 48 min et est classé dans Informatique, Informatique Didacticiels, Matériels. Vous pouvez suivre les commentaires sur cet article en vous abonnant au flux RSS 2.0 des commentaires. Vous pouvez faire un commentaire, ou un trackback depuis votre propre site.

Laisser une réponse

Nom (*)
Courriel (ne sera pas publié) (*)
Site
Commentaire