Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

wifi rt61 via module-assistant : un peu galère, non ?

1 réponse
Avatar
Bulot Grégory
bonjour,=20

j'ai vu pas mal de fils sur ralink et le rt61, mais pas de vrais r=E9ponses=
=20
(sauf erreur, omission de ma part).
Je m'occupe de cette machine =E0 distance (via ssh en eth0)


sous etch en 2.6.18-4-i686

j'ai fait un=20
=2D m-a auto-install rt2x00-source
ce qui a g=E9n=E9r=E9 ce .deb qui a =E9t=E9 install=E9, j'ai lu le README=20
(/usr/share/doc/rt2x00-modules-2.6.18-4-686/README.gz)

/usr/src/rt2x00-modules-2.6.18-4-686_0cvs20060928-1+2.6.18.dfsg.1-12etch2_i=
386.deb
=2D j'ai copi=E9 les rt26*.bin dans /lib/firmware/. comme demand=E9.

=2D pour les tests je me suis fait un script wlan0up.sh :
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
#!/bin/bash

Interface=3Dwlan0
IP=3D192.168.1.12
PASSERELLE=3D192.168.1.1

echo 1 > /sys/module/rt61pci/parameters/debug

echo "iwconfig : "
iwconfig $Interface essid dlink
iwconfig $Interface channel 1
ifconfig $Interface up

iwlist $Interface


echo "ifconfig : "
/sbin/ifconfig $Interface $IP netmask 255.255.255.0 up
echo "route :"
/sbin/route add defauft gw $PASSERELLE
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D


=2D apr=E8s execution, j'ai ceci=20
=2E/wlan0up.sh
iwconfig :
iwlist: unknown command `wlan0'
ifconfig :
route :
defauft: H=F4te inconnu


# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

sit0 no wireless extensions.

wmaster0 IEEE 802.11g Frequency:2.412 GHz
RTS thr:off Fragment thr=3D2346 B

wlan0 IEEE 802.11g ESSID:"dlink"
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
RTS thr:off Fragment thr=3D2346 B
Encryption key:off

# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface

auto eth0
allow-hotplug eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1


iface wlan0 inet static
address 192.168.1.12
netmask 255.255.255.0
gateway 192.168.1.1
pre-up iwconfig wlan0 mode Managed
pre-up iwconfig wlan0 essid dlink
pre-up iwconfig wlan0 key restricted s:MotDePasse



# lsmod | grep rt
rt61pci 33988 0
80211 141000 2 rate_control,rt61pci
firmware_class 9600 1 rt61pci
crc_itu_t 2240 1 rt61pci


# ifconfig
eth0 Lien encap:Ethernet HWaddr 00:19:D1:6F:0C:D1
inet adr:192.168.1.10 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: fe80::219:d1ff:fe6f:cd1/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5106 errors:0 dropped:0 overruns:0 frame:0
TX packets:2597 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:1174840 (1.1 MiB) TX bytes:291132 (284.3 KiB)

lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:H
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:132 errors:0 dropped:0 overruns:0 frame:0
TX packets:132 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:62422 (60.9 KiB) TX bytes:62422 (60.9 KiB)

wlan0 Lien encap:Ethernet HWaddr 00:19:5B:67:99:BE
inet adr:192.168.1.12 Masque:255.255.255.0
adr inet6: fe80::219:5bff:fe67:99be/64 Scope:Lien
UP RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:0 (0.0 b) TX bytes:3078 (3.0 KiB)
Adresse de base:0xb000

wmaster0 Lien encap:UNSPEC HWaddr=20
00-19-5B-67-99-BE-30-3A-00-00-00-00-00-00-00-00
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:0 (0.0 b) TX bytes:0 (0.0 b)
Adresse de base:0xb000


# cat /etc/Wireless/RT61STA/rt61sta.dat (je suis pas sur de ce fichier)
[Default]
CountryRegion=3D0
CountryRegionABand=3D7
WirelessMode=3D0
SSID=3Ddlink
NetworkType=3DInfra
Channel=3D1
#AuthMode=3DOPEN
AuthMode=3DWEP
EncrypType=3DNONE
DefaultKeyID=3D1
Key1Type=3D0
Key1Str=3DMotDepasse
Key2Type=3D0
Key2Str=3D
Key3Type=3D0
Key3Str=3D
Key4Type=3D0
Key4Str=3D
WPAPSK=3DMotDePasse
TxBurst=3D0
PktAggregate=3D0
WmmCapable=3D0
APSDCapable=3D0
APSDAC=3D0;0;0;0
BGProtection=3D0
IEEE80211H=3D0
TxRate=3D0
RTSThreshold=3D2347
=46ragThreshold=3D2346
RoamThreshold=3D75
PSMode=3DCAM
TxPreamble=3D0
=46astRoaming=3D0



un ping 192.168.1.12 : pas de host unreachable, tant que je retire pas mon=
=20
c=E2ble rj45 de eth0





j'ai rat=E9/d=E9conn=E9 sur quoi ?

1 réponse

Avatar
Jean-Michel OLTRA
Bonjour,


Le mercredi 17 octobre 2007, Bulot Grégory a écrit...


echo "iwconfig : "
iwconfig $Interface essid dlink
iwconfig $Interface channel 1
ifconfig $Interface up



iwlist $Interface




echo "ifconfig : "
/sbin/ifconfig $Interface $IP netmask 255.255.255.0 up
echo "route :"
/sbin/route add defauft gw $PASSERELLE
=======================



- après execution, j'ai ceci
./wlan0up.sh
iwconfig :
iwlist: unknown command `wlan0'
ifconfig :
route :
defauft: Hôte inconnu



j'ai raté/déconné sur quoi ?



man iwlist
man route

... te diront que :

- iwlist demande une interface _et_ une commande
(ex : iwlist wlan0 scan)
- que « defauft » s'écrit en réalité « default »


--
jm

A.E.L. Sarl (R.C.S CASTRES 490843240)
http://www.affaires-en-ligne.com



--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact