[WIFI-Linux] configuration avec iwconfig

Maat Messages postés 18 Statut Membre -  
Maat Messages postés 18 Statut Membre -
Bonjour

Je me mets à linux mais je n'arrive pas à avoir internet. J'ai un routeur NETGEAR WGT634U connecté au modem. Ce routeur est ma borne d'accès. Et j'accède à internet grace à un adaptateur wifi usb NETGEAR WG121.

Après un peu de mal, j'ai réussi à installer Ndiswrapper0.12 (les dernières versions ne veulent pas compiler). Je suis sous Mandrake 10.0

Après il faut configurer le réseau avec iwconfig :
---------------
[root@localhost matthieu]# iwconfig wlan0 essid NETGEAR
[root@localhost matthieu]# iwconfig wlan0 key s:*****
[root@localhost matthieu]# iwconfig wlan0 channel 11
[root@localhost matthieu]# iwconfig wlan0 mode managed
[root@localhost matthieu]# iwconfig

wlan0 IEEE 802.11g ESSID:"NETGEAR"
Mode:Managed Frequency:2.462GHz Access Point: 00:0F:B5:0B:96:62
Bit Rate:54Mb/s
RTS thr:2432 B Fragment thr:2432 B
Encryption key:****-****-** Security mode:restricted
Power Management:off
Link Quality:100/100 Signal level:-50 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:16 Invalid misc:9202 Missed beacon:0
--------------------

Donc, là, ca a l'air bien ! Mais il faut que je fasse quoi maintenant pour avoir internet grace à mon routeur ?

Si ca peut aider, voilà un ifconfig :
----------------------
[root@localhost matthieu]# ifconfig
eth0 Lien encap:Ethernet HWaddr 00:0C:76:F4:91:41
adr inet6: fe80::20c:76ff:fef4:9141/64 Scope:Lien
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:0 (0.0 b) TX bytes:6536 (6.3 Kb)
Interruption:19 Adresse de base:0xe800

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:432 errors:0 dropped:0 overruns:0 frame:0
TX packets:432 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:33258 (32.4 Kb) TX bytes:33258 (32.4 Kb)

wlan0 Lien encap:Ethernet HWaddr 00:09:5B:A2:9A:3A
inet adr:192.168.1.10 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: fe80::209:5bff:fea2:9a3a/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:471 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:1202 (1.1 Kb) TX bytes:51626 (50.4 Kb)
------------------------------

Merci d'avance d'aider un nouveau linuxien :)
Maat
A voir également:

1 réponse

Maat Messages postés 18 Statut Membre 1
 
je viens d'avancer et je crois que j'ai réussi grace à ces 2 lignes (je crois que c'est celles là, mais comme j'en ai tapées pas mal...) :

dhclient wlan0
route add -net 0.0.0.0 gw 192.168.1.1

Mais quelqu'un pourrait m'expliquer pourquoi il a fallu mettre 0.0.0.0 comme adresse IP ! Ca me parait bizarre.

Sinon, comment faire pour automatiser tout ca ?
Il faudrait automatiser ces commandes au démarrage :

modprobe ndiswrapper
iwconfig wlan0 mode managed essid NETGEAR key **********
dhclient wlan0
route add -net 0.0.0.0 gw 192.168.1.1

Des idées ? (je débute sous linux)
1