Précédent   Forum des professionnels en informatique > Systèmes > Linux > Réseau
Réseau Vos questions autour des réseaux et télécoms sous Linux
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 13/10/2007, 16h21   #1
Rédacteur
 
Avatar de gege2061
 
Inscription : juin 2004
Messages : 5 850
Détails du profil
Informations personnelles :
Âge : 28
Localisation : France, Indre et Loire (Centre)

Informations forums :
Inscription : juin 2004
Messages : 5 850
Points : 8 299
Points : 8 299
Par défaut [Debian] Connexion wifi avec clés WPA

Bonjour,

J'essaye d'installer le wifi sous Debian Sid mais impossible de me connecter. Plus génant, je n'arrive pas à savoir pourquoi

Voici ce que j'ai fait pour l'installation :

Test de connexion :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# ifup wlan0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
 
wmaster0: unknown hardware address type 801
SIOCSIFFLAGS: No such file or directory
SIOCSIFFLAGS: No such file or directory
wmaster0: unknown hardware address type 801
Listening on LPF/wlan0/00:18:f3:9a:75:75
Sending on   LPF/wlan0/00:18:f3:9a:75:75
Sending on   Socket/fallback
receive_packet failed on wlan0: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 21
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 1
send_packet: Network is down
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
J'ai aussi essayé en modifiant uniquement le fichier /etc/network/interfaces :
Code :
1
2
3
4
5
6
iface wlan0 inet dhcp
        pre-up iwconfig wlan0 essid "La_Poisse"
        pre-up iwconfig wlan0 mode Managed
        pre-up iwpriv wlan0 set param AuthMode=WPAPSK
        pre-up iwpriv wlan0 set param EncrypType=AES
        pre-up iwpriv wlan0 set param WPAPSK="xxx"
Mais j'obtiens une erreur :
Code :
1
2
3
4
# /etc/init.d/networking restart
Reconfiguring network interfaces...Invalid command : set
Failed to bring up wlan0.
done.
Si vous avez la moindre idée pour faire avancer le smilblick

---

Informations utiles :
Code :
1
2
3
4
5
6
7
8
9
10
# cat /var/log/messages
[...]
Oct 13 17:27:58 moisi-box kernel: phy0 -> rt2x00mac_conf_tx: Info - Configured TX ring 0 - CWmin: 4, CWmax: 10, Aifs: 2.
Oct 13 17:27:58 moisi-box kernel: phy0 -> rt2x00mac_conf_tx: Info - Configured TX ring 1 - CWmin: 4, CWmax: 10, Aifs: 2.
Oct 13 17:27:58 moisi-box kernel: phy0 -> rt2x00mac_conf_tx: Info - Configured TX ring 2 - CWmin: 4, CWmax: 10, Aifs: 2.
Oct 13 17:27:58 moisi-box kernel: phy0 -> rt2x00mac_conf_tx: Info - Configured TX ring 3 - CWmin: 4, CWmax: 10, Aifs: 2.
Oct 13 17:27:58 moisi-box kernel: phy0 -> rt2x00mac_conf_tx: Info - Configured TX ring 4 - CWmin: 4, CWmax: 10, Aifs: 2.
Oct 13 17:27:58 moisi-box kernel: phy0 -> rt2x00lib_request_firmware: Info - Loading firmware file 'rt73.bin'.
Oct 13 17:27:58 moisi-box kernel: phy0 -> rt2x00lib_request_firmware: Info - Loading firmware file 'rt73.bin'.
[...]
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# ifconfig -a
eth0      Lien encap:Ethernet  HWaddr 00:18:F3:EC:ED:AB  
          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 lg file transmission:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interruption:17 Adresse de base:0x6000 
 
lo        Lien 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:28 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0 
          RX bytes:1400 (1.3 KiB)  TX bytes:1400 (1.3 KiB)
 
wlan0     Lien encap:Ethernet  HWaddr 00:18:F3:9A:75:75  
          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 lg file transmission:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
 
wmaster0  Lien encap:UNSPEC  HWaddr 00-18-F3-9A-75-75-00-00-00-00-00-00-00-00-00-00  
          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 lg file transmission:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# iwconfig 
lo        no wireless extensions.
 
eth0      no wireless extensions.
 
wmaster0  no wireless extensions.
 
wlan0     IEEE 802.11g  ESSID:"La_Poisse"  
          Mode:Managed  Channel:0  Access Point: Not-Associated   
          Retry min limit:7   RTS thr:off   Fragment thr=2346 B   
          Encryption key:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#lsusb -v
[...]
Bus 001 Device 005: ID 0b05:1723 ASUSTek Computer, Inc. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0b05 ASUSTek Computer, Inc.
  idProduct          0x1723 
  bcdDevice            0.01
  iManufacturer           1 Ralink
  iProduct                2 802.11 bg WLAN
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              300mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)
[...]
Code :
1
2
3
4
5
6
7
8
9
10
# lsmod
[...]
rt73usb                27008  0 
rt2x00usb              10784  1 rt73usb
rt2x00lib              23680  2 rt73usb,rt2x00usb
crc_itu_t               2144  1 rt2x00lib
firmware_class          9504  2 rt2x00lib,bttv
mac80211              120644  3 rc80211_simple,rt2x00usb,rt2x00lib
usbcore               125096  9 snd_usb_audio,snd_usb_lib,rt73usb,rt2x00usb,usbhid,usb_storage,ohci_hcd,ehci_hcd
[...]
__________________
gege2061's blog
gege2061 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 13/10/2007, 23h07   #2
Rédacteur
 
Avatar de Arnaud F.
 
Homme Arnaud Feltz
Développeur .NET
Inscription : août 2005
Messages : 5 204
Détails du profil
Informations personnelles :
Nom : Homme Arnaud Feltz
Âge : 25
Localisation : France

Informations professionnelles :
Activité : Développeur .NET
Secteur : Transports

Informations forums :
Inscription : août 2005
Messages : 5 204
Points : 6 113
Points : 6 113


Ton point d'accès n'est pas détecté et ça peut venir du fait que tu sois sur le mauvais channel, donc essai en changeant de channel et ça devrait passer , je pense pas que ça provienne du WPA proprement dit.

Pour connaitre ton channel :
Au pire, t'as déjà essayé de te connecter avec aucune protection sur ta box? (aucune clé, rien?)


++
__________________
C'est par l'adresse que vaut le bûcheron, bien plus que par la force. Homère

Installation de Code::Blocks sous Debian à partir de Nightly Builds
Arnaud F. est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 14/10/2007, 00h01   #3
Rédacteur
 
Avatar de gege2061
 
Inscription : juin 2004
Messages : 5 850
Détails du profil
Informations personnelles :
Âge : 28
Localisation : France, Indre et Loire (Centre)

Informations forums :
Inscription : juin 2004
Messages : 5 850
Points : 8 299
Points : 8 299
Citation:
Envoyé par buchs Voir le message
Ton point d'accès n'est pas détecté et ça peut venir du fait que tu sois sur le mauvais channel, donc essai en changeant de channel et ça devrait passer ,
Je suis passé sur le channel 6 (impossible de passer sur le 13 ) mais ça ne change rien

Citation:
Envoyé par buchs Voir le message
Au pire, t'as déjà essayé de te connecter avec aucune protection sur ta box? (aucune clé, rien?)
Je suis chez free et ça ne semble pas possible, je suis passé en clés WEP simple mais ça ne change rien :
Code :
1
2
3
4
5
6
7
8
9
10
11
$ cat /etc/network/interfaces
[...]
# Wifi
 
iface wlan0 inet dhcp
        pre-up iwconfig wlan0 essid La_Poisse
        pre-up iwconfig wlan0 mode Managed
        pre-up iwconfig wlan0 channel 6
        pre-up iwconfig wlan0 key s:xxx
 
auto wlan0
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# ifup wlan0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
 
wmaster0: unknown hardware address type 801
SIOCSIFFLAGS: No such file or directory
SIOCSIFFLAGS: No such file or directory
wmaster0: unknown hardware address type 801
Listening on LPF/wlan0/00:18:f3:9a:75:75
Sending on   LPF/wlan0/00:18:f3:9a:75:75
Sending on   Socket/fallback
receive_packet failed on wlan0: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 20
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
send_packet: Network is down
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
send_packet: Network is down
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
Code :
1
2
3
4
5
6
7
8
# iwlist scan
lo        Interface doesn't support scanning.
 
eth0      Interface doesn't support scanning.
 
wmaster0  Interface doesn't support scanning.
 
wlan0     Interface doesn't support scanning : Network is down
__________________
gege2061's blog
gege2061 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 14/10/2007, 08h58   #4
Rédacteur
 
Avatar de Arnaud F.
 
Homme Arnaud Feltz
Développeur .NET
Inscription : août 2005
Messages : 5 204
Détails du profil
Informations personnelles :
Nom : Homme Arnaud Feltz
Âge : 25
Localisation : France

Informations professionnelles :
Activité : Développeur .NET
Secteur : Transports

Informations forums :
Inscription : août 2005
Messages : 5 204
Points : 6 113
Points : 6 113
En effet, c'est mauvais

Si tu peux changer le channel de ta box, essai de le faire

Au passage, j'ai vu que l'erreur retournée par ton DHCP venait du fait qu'il arrive pas à ce synchro ou je ne sais quoi, mais une solution proposée est de passée une adresse statiquement (dans le fichier d'interfaces) :

Code :
1
2
3
4
5
iface wlan0 static
address
gateway
network
...
Pour plus de détails :
Ensuite, pour tenter de te connecter à Internet soit tu tapes :
soit
Code :
/etc/init.d/networking restart
Un autre indice, regarde ce que renvoi la commande dmesg

++

P.S : Quand t'es sur le bon channel, normalement t'as
dans le retour de la commande iwconfig
__________________
C'est par l'adresse que vaut le bûcheron, bien plus que par la force. Homère

Installation de Code::Blocks sous Debian à partir de Nightly Builds
Arnaud F. est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 14/10/2007, 21h29   #5
Rédacteur
 
Avatar de gege2061
 
Inscription : juin 2004
Messages : 5 850
Détails du profil
Informations personnelles :
Âge : 28
Localisation : France, Indre et Loire (Centre)

Informations forums :
Inscription : juin 2004
Messages : 5 850
Points : 8 299
Points : 8 299
Bon j'avais oublié d'installer le firmware

Avec le scan fonctionne Par contre je n'arrive toujours pas à me connecter, cette fois ça viens sûrement de l'authentification.
__________________
gege2061's blog
gege2061 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 17/12/2007, 21h30   #6
Rédacteur
 
Avatar de gege2061
 
Inscription : juin 2004
Messages : 5 850
Détails du profil
Informations personnelles :
Âge : 28
Localisation : France, Indre et Loire (Centre)

Informations forums :
Inscription : juin 2004
Messages : 5 850
Points : 8 299
Points : 8 299
ça y ai, je viens de réussir à installer ma clé sous Linux

Donc pour résumer, il faut créer ou modifier les fichiers de configuration comme préciser dans mon 1er post, ensuite copier le firmware rt73.bin dans /lib/firmware et enfin utiliser le pilote wext pour wpa_supplicant !
__________________
gege2061's blog
gege2061 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 17/12/2007, 23h14   #7
Rédacteur
 
Avatar de Arnaud F.
 
Homme Arnaud Feltz
Développeur .NET
Inscription : août 2005
Messages : 5 204
Détails du profil
Informations personnelles :
Nom : Homme Arnaud Feltz
Âge : 25
Localisation : France

Informations professionnelles :
Activité : Développeur .NET
Secteur : Transports

Informations forums :
Inscription : août 2005
Messages : 5 204
Points : 6 113
Points : 6 113
Citation:
Envoyé par gege2061 Voir le message
ça y ai, je viens de réussir à installer ma clé sous Linux

Donc pour résumer, il faut créer ou modifier les fichiers de configuration comme préciser dans mon 1er post, ensuite copier le firmware rt73.bin dans /lib/firmware et enfin utiliser le pilote wext pour wpa_supplicant !
content que t'es réussi
__________________
C'est par l'adresse que vaut le bûcheron, bien plus que par la force. Homère

Installation de Code::Blocks sous Debian à partir de Nightly Builds
Arnaud F. est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 12/06/2008, 12h18   #8
Rédacteur
 
Avatar de gege2061
 
Inscription : juin 2004
Messages : 5 850
Détails du profil
Informations personnelles :
Âge : 28
Localisation : France, Indre et Loire (Centre)

Informations forums :
Inscription : juin 2004
Messages : 5 850
Points : 8 299
Points : 8 299
Pour compéter et conclure cette histoire il y a une page sur le wiki Debian très complète : Setting up rt73 on Debian testing
__________________
gege2061's blog
gege2061 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 14/10/2008, 21h03   #9
Invité de passage
 
Inscription : octobre 2008
Messages : 1
Détails du profil
Informations forums :
Inscription : octobre 2008
Messages : 1
Points : 1
Points : 1
1000 fois merçi pour l'astuce. Je suis sous Debian, et cela faisait un petit moment que je cherchais LA solution à ce problème. Ca m'apprendra à ne pas lire le dmesg Tout y était clairement écrit.
Par contre, je ne sais pas à quel endroit tu as récupèré le rt73.bin. Perso, je l'ai pris sur mon autre ordi tournant sous Ubuntu. Et ça fonctionne.

Tiki ( heureux )
Tiki10 est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 15h31.


 
 
 
 
Partenaires

Hébergement Web