Dongle USb DWA-140

Et voilà :

[code]doms-debian:/home/doms# ifdown ra0 -v
Configuring interface ra0=ra0 (inet)
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/50firestarter
Stopping the Firestarter firewall…wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
.
Starting the Firestarter firewall…wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
failed!
run-parts: /etc/network/if-down.d/50firestarter exited with return code 2
run-parts: executing /etc/network/if-down.d/openvpn
run-parts: executing /etc/network/if-down.d/resolvconf
route del default gw 192.168.1.1 ra0
ifconfig ra0 down
run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/avahi-daemon
run-parts: executing /etc/network/if-post-down.d/wireless-tools
Error for wireless request “Set Mode” (8B06) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set Encode” (8B2A) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set ESSID” (8B1A) :
SET failed on device ra0 ; Network is down.
doms-debian:/home/doms# ifup ra0 -v
Configuring interface ra0=ra0 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
Error for wireless request “Set Mode” (8B06) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set Encode” (8B2A) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set Encode” (8B2A) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set ESSID” (8B1A) :
SET failed on device ra0 ; Network is down.

ifconfig ra0 192.168.1.11 netmask 255.255.255.0 broadcast 192.168.0.255 up
route add default gw 192.168.1.1 ra0
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/50firestarter
Stopping the Firestarter firewall…wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
.
Starting the Firestarter firewall…wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
failed!
run-parts: /etc/network/if-up.d/50firestarter exited with return code 2
run-parts: executing /etc/network/if-up.d/avahi-daemon
run-parts: executing /etc/network/if-up.d/mountnfs
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openvpn[/code]

Pour info, wlan0 correspond au nom de périphérique de mon ancien dongle.
Visiblement, mon noyau le cherche toujours.

j’en viens à me demander si il n’y a pas erreur sur le nom de périph.
que te renvoie la commande:

?

Essaie aussi la connexion en DHCP au lieu de statique:

auto lo
iface lo inet loopback

auto ra0
iface ra0 inet dhcp
wireless_keymode open
wireless_mode managed
wireless-essid Wanadoo_XXXX
wireless-key XXXXXXXXXXXXXXXXXXXXXXXXXX

Histoire de se simplifier la vie.
et n’oublie pas d’appuyer sur le bouton lors de la synchronisation.

[code]doms@doms-debian:~$ cat /etc/udev/rules.d/70-persistent-net.rules

This file was automatically generated by the /lib/udev/write_net_rules

program run by the persistent-net-generator.rules rules file.

You can modify it, as long as you keep each rule on a single line.

USB device 0x0cde:0x0008 (prism54usb)

SUBSYSTEM==“net”, ACTION==“add”, DRIVERS=="?", ATTR{address}==“00:03:c9:7e:fd:a4”, ATTR{type}==“1”, KERNEL=="wlan", NAME=“wlan0”

USB device 0x07d1:0x3c07 (rt73usb)

SUBSYSTEM==“net”, ACTION==“add”, DRIVERS=="?", ATTR{address}==“00:22:b0:0c:ff:f1”, ATTR{type}==“1”, KERNEL=="wlan", NAME=“wlan1”[/code]

Donc si je comprends bien, les modules rt73usb et prism54usb sont les seuls qui ont enregistré un périphérique (l’ancien visiblement).

Puis, avec les changements du fichier interfaces :

[code]doms-debian:/home/doms# /etc/init.d/networking restart
Reconfiguring network interfaces…Stopping the Firestarter firewall…wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
.
Starting the Firestarter firewall…wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
failed!
run-parts: /etc/network/if-down.d/50firestarter exited with return code 2
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/ra0/00:26:5a:7f:af:13
Sending on LPF/ra0/00:26:5a:7f:af:13
Sending on Socket/fallback
Error for wireless request “Set Mode” (8B06) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set Encode” (8B2A) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set ESSID” (8B1A) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set Mode” (8B06) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set Encode” (8B2A) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set Encode” (8B2A) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set ESSID” (8B1A) :
SET failed on device ra0 ; Network is down.
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/ra0/00:26:5a:7f:af:13
Sending on LPF/ra0/00:26:5a:7f:af:13
Sending on Socket/fallback
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 3
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
Stopping the Firestarter firewall…wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
.
Starting the Firestarter firewall…wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
failed!
run-parts: /etc/network/if-up.d/50firestarter exited with return code 2
done.[/code]

sachant que c’est le module rt73usb qui a besoin du firmware ralink, ton périphérique ne s’appelle donc pas ra0 comme tu le pensais mais bien wlan1 .

À partir de cette conclusion, modifie ton fichier interfaces en conséquence ( iface wlan … et auto wlan0 ), relance networking et redonne-nous la réponse des deux commandes précédentes ( idown wlan1 et ifup wlan1 -v )

Je le sentais bien ce coup-ci mais… non plus.

[code]doms-debian:/home/doms# /etc/init.d/networking restart
Reconfiguring network interfaces…Error for wireless request “Set Mode” (8B06) :
SET failed on device wlan1 ; No such device.
Error for wireless request “Set Encode” (8B2A) :
SET failed on device wlan1 ; No such device.
Error for wireless request “Set Encode” (8B2A) :
SET failed on device wlan1 ; No such device.
Error for wireless request “Set ESSID” (8B1A) :
SET failed on device wlan1 ; No such device.
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

SIOCSIFADDR: No such device
wlan1: ERROR while getting interface flags: No such device
wlan1: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up wlan1.
done.
doms-debian:/home/doms# ifdown -v wlan1
ifdown: interface wlan1 not configured
doms-debian:/home/doms# ifup -v wlan1
Configuring interface wlan1=wlan1 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
Error for wireless request “Set Mode” (8B06) :
SET failed on device wlan1 ; No such device.
Error for wireless request “Set Encode” (8B2A) :
SET failed on device wlan1 ; No such device.
Error for wireless request “Set Encode” (8B2A) :
SET failed on device wlan1 ; No such device.
Error for wireless request “Set ESSID” (8B1A) :
SET failed on device wlan1 ; No such device.

dhclient3 -pf /var/run/dhclient.wlan1.pid -lf /var/lib/dhcp3/dhclient.wlan1.leases wlan1
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

SIOCSIFADDR: No such device
wlan1: ERROR while getting interface flags: No such device
wlan1: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up wlan1.[/code]
Merci de ton implication.

Bon désolé, je suis un peu bête, j’avais pas du bien regarder car en fait… bah ton interface ra0 elle marche.
Je veux dire par là qu’elle est detectée:

Et qu’elle envoie des requetes DHCP:

DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 3
No DHCPOFFERS received.

Donc: La question - toujours la même - est:
as-tu bien appuyé sur le bouton de la box lorsque tu as fait cette requete ( celle avec dhcp et l’interface ra0 ) ?
Et lorsque tu auras remis l’interface ra0 dans ton fichier interfaces et relancé /etc/init.d/networing ( encore désolé pour le dérangement ), que te renvoie la commande

et la commande iwconfig ( ainsi que ifconfig pour être au complet )

Oui oui, j’ai mis la livebox en mode association.

[code]doms-debian:/home/doms# /etc/init.d/networking restart
Reconfiguring network interfaces…There is already a pid file /var/run/dhclient.ra0.pid with pid 1946
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/ra0/00:26:5a:7f:af:13
Sending on LPF/ra0/00:26:5a:7f:af:13
Sending on Socket/fallback
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 15
DHCPOFFER from 192.168.1.1
DHCPREQUEST on ra0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.10 – renewal in 276275 seconds.
Stopping the Firestarter firewall…wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
.
Starting the Firestarter firewall…wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
failed!
run-parts: /etc/network/if-up.d/50firestarter exited with return code 2
done.
doms-debian:/home/doms# /etc/init.d/networking restart
Reconfiguring network interfaces…Stopping the Firestarter firewall…wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
.
Starting the Firestarter firewall…wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
failed!
run-parts: /etc/network/if-down.d/50firestarter exited with return code 2
There is already a pid file /var/run/dhclient.ra0.pid with pid 4006
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/ra0/00:26:5a:7f:af:13
Sending on LPF/ra0/00:26:5a:7f:af:13
Sending on Socket/fallback
DHCPRELEASE on ra0 to 192.168.1.1 port 67
Error for wireless request “Set Mode” (8B06) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set Encode” (8B2A) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set ESSID” (8B1A) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set Mode” (8B06) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set Encode” (8B2A) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set Encode” (8B2A) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set ESSID” (8B1A) :
SET failed on device ra0 ; Network is down.
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/ra0/00:26:5a:7f:af:13
Sending on LPF/ra0/00:26:5a:7f:af:13
Sending on Socket/fallback
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 6
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
Stopping the Firestarter firewall…wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
.
Starting the Firestarter firewall…wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
failed!
run-parts: /etc/network/if-up.d/50firestarter exited with return code 2
done.

iwlist ra0 scan : (je n’ai pas pu tout mettre)
Cell 06 - Address: 06:1D:19:70:B4:B2
Protocol:802.11b/g
ESSID:"SFR_WPA_01E6E"
Mode:Managed
Frequency:2.427 GHz (Channel 4)
Quality:23/100 Signal level:-81 dBm Noise level:-89 dBm
Encryption key:on
Bit Rates:54 Mb/s
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: DD2C0050F204104A00011010440001021057000100104700100000000E0E0000000000000000000900103C000101
Cell 07 - Address: 00:1D:6A:D5:E7:35
Protocol:802.11b/g
ESSID:"Livebox-D26D"
Mode:Managed
Frequency:2.437 GHz (Channel 6)
Quality:23/100 Signal level:-81 dBm Noise level:-85 dBm
Encryption key:on
Bit Rates:54 Mb/s
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
Cell 08 - Address: 00:1D:6A:5A:74:06
Protocol:802.11b/g/n
ESSID:"Livebox-eb6c"
Mode:Managed
Frequency:2.437 GHz (Channel 6)
Quality:7/100 Signal level:-87 dBm Noise level:-95 dBm
Encryption key:on
Bit Rates:54 Mb/s
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: DD2C0050F204104A0001101044000102105700010010470010565AA94967C14C0EAA8FF349E6F59311103C000101
Cell 09 - Address: 00:16:41:0D:B5:05
Protocol:802.11b/g
ESSID:"Wanadoo_2d69"
Mode:Managed
Frequency:2.457 GHz (Channel 10)
Quality:52/100 Signal level:-69 dBm Noise level:-92 dBm
Encryption key:on
Bit Rates:54 Mb/s
Cell 10 - Address: 00:1A:6B:C0:FC:BC
Protocol:802.11b/g
ESSID:"Livebox-4684"
Mode:Managed
Frequency:2.457 GHz (Channel 10)
Quality:0/100 Signal level:-95 dBm Noise level:-90 dBm
Encryption key:on
Bit Rates:54 Mb/s
Cell 11 - Address: 00:17:33:F2:35:25
Protocol:802.11b/g
ESSID:"NEUF_3524"
Mode:Managed
Frequency:2.462 GHz (Channel 11)
Quality:100/100 Signal level:-43 dBm Noise level:-92 dBm
Encryption key:on
Bit Rates:54 Mb/s
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
Cell 12 - Address: 00:17:33:F2:35:2C
Protocol:802.11b/g
ESSID:"Neuf WiFi"
Mode:Managed
Frequency:2.462 GHz (Channel 11)
Quality:100/100 Signal level:-43 dBm Noise level:-92 dBm
Encryption key:off
Bit Rates:54 Mb/s
Cell 13 - Address: 00:03:C9:AC:83:C2
Protocol:802.11b/g
ESSID:"ALICE-D9F34F"
Mode:Managed
Frequency:2.462 GHz (Channel 11)
Quality:0/100 Signal level:-95 dBm Noise level:-100 dBm
Encryption key:on
Bit Rates:54 Mb/s
oms-debian:/home/doms# iwconfig
lo no wireless extensions.

ra0 Ralink STA ESSID:“11n-AP” Nickname:"RT2870STA"
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=66/100 Signal level:-69 dBm Noise level:-91 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

doms-debian:/home/doms# ifconfig
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:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:560 (560.0 B) TX bytes:560 (560.0 B)

ra0 Link encap:Ethernet HWaddr 00:26:5a:7f:af:13
adr inet6: fe80::226:5aff:fe7f:af13/64 Scope:Lien
UP BROADCAST RUNNING 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:21653173 (20.6 MiB) TX bytes:2903897 (2.7 MiB)[/code]

C’est normal que tu n’arrives pas à te connecter: l’ESSID que tu cherches est “11n-AP”, mais il n’apparait pas dans la liste des réseaux disponibles

Oui, je comprends bien. Le problème c’est que je n’arrive pas à faire en sorte c’est que l’ESSID soit celui de ma box.

Ah… tu le savais depuis le début?

Bon bref, j’ai vu que ta box a une connection encryptée, mais en quoi? WPA ou WEP?

C’est du WEP pour l’instant.

tu peux alors essayer ( je ne suis pas sûr, mais théoriquement ça doit marcher )

remplacer la ligne

par

Toujours rien de plus :

[code]# /etc/init.d/networking restart
Reconfiguring network interfaces…Error for wireless request “Set Mode” (8B06) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set Encode” (8B2A) :
SET failed on device ra0 ; Network is down.
Error for wireless request “Set Encode” (8B2A) :
SET failed on device ra0 ; Network is down.
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/ra0/00:26:5a:7f:af:13
Sending on LPF/ra0/00:26:5a:7f:af:13
Sending on Socket/fallback
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 12
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
Stopping the Firestarter firewall…wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
.
Starting the Firestarter firewall…wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
wlan0: error fetching interface information: Device not found
failed!
run-parts: /etc/network/if-up.d/50firestarter exited with return code 2
done.[/code]

Je me demande si cela ne pourrait pas venir du pilote. Pourtant c’est censé être le bon si je suis la doc ubuntu…

as-tu bien installé le paquet firmware-ralink ?

quel driver as-tu installé?

J’ai utilisé cette méthode pour installer le driver RT3070USB : doc.ubuntu-fr.org/dwa-140#d-link_dwa-140_b2

d’accord.

que te renvoie la commande

$ apt-cache policy firmware-ralink firmware ralink : Installé : 0.14+lenny2 Candidat : 0.14+lenny2 Table de version : *** 0.14+lenny2 0 100 /var/lib/dpkg/status

Là je sèche…

Je vais regarder si ya pas des rapports de bugs, et si j’ai pas loupé quelque chose dans tout tes logs, mais franchement là je vois pas.

Ok, je te remercie en tout cas d’avoir pris de ton temps.
Le paquet firmware-ralink qu’il y a dans les paquets correspond à quoi au juste ? Comment savoir quels sont les drivers pris en compte ?

Je viens de regarder la doc d’ubuntu.
pourquoi as-tu installé les drivers pour dwa-140 B2 au lieu de dwa-140 tout court?

car ce ne sont pas du tout les mêmes noms de drivers.

Que te renvoient les commandes

lsmod | grep rt cat /etc/modules