donc résumé des opérations :

>> Ok, j'ai donc essayer d'attribuer la même ip que sous windows à savoir
>> 192.168.0.3 pour une passerelle se trouvant à l'adresse 192.168.0.1 :
>> # iwconfig
>> lo        no wireless extensions.
>> eth0      no wireless extensions.
>> sit0      no wireless extensions.
>> wlan0     IEEE 802.11g  ESSID:"NETGEAR"
>>           Mode:Managed  Frequency:2.462 GHz  Access Point:
>>                  00:18:4D:04:16:CC Bit Rate:11 Mb/s   
>>                  Tx-Power:20 dBm   Sensitivity=-121 dBm 
>>                  RTS thr:2347 B   Fragment thr:2346 B
>>           Encryption key:off
>>           Power Management:off
>>           Link Quality:100/100  Signal level:-81 dBm  Noise level:-256 dBm
>>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>>           Tx excessive retries:0  Invalid misc:0   Missed beacon:0
>>
>>]# ifconfig wlan0 192.168.0.3
>># ping 192.168.0.1
>> PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
>>  From 192.168.0.3 icmp_seq=2 Destination Host Unreachable
>>  From 192.168.0.3 icmp_seq=3 Destination Host Unreachable
>>  From 192.168.0.3 icmp_seq=4 Destination Host Unreachable
>>
>> --- 192.168.0.1 ping statistics ---
>> 5 packets transmitted,
>> 0 received, +3 errors, 100% packet loss, time 4001ms  , pipe 3
>># route
>>Table de routage IP du noyau
>>Destination     Passerelle      Genmask      Indic Metric Ref    Use Iface
>>192.168.0.0     *           255.255.255.0   U   0      0        0 wlan0
>>169.254.0.0     *           255.255.0.0     U     0      0        0 lo
comme tu le vois, la passerelle n'est pas encore renseignéee

># route add -net 192.168.0.0 netmask 255.255.255.0 dev wlan0
># route
>Table de routage IP du noyau
>Destination     Passerelle      Genmask         Indic Metric Ref    Use Iface
>192.168.0.0     *               255.255.255.0   U     0      0        0 wlan0
>192.168.0.0     *               255.255.255.0   U     0      0        0 wlan0
>169.254.0.0     *               255.255.0.0     U     0      0        0 lo
tu vois 2 interfaces Wlan0 en 192.168.0.0 : cette commande n'était donc pas 
necessaire ... 


># route add default gw 192.168.0.1
># route
>Table de routage IP du noyau
>Destination     Passerelle      Genmask         Indic Metric Ref    Use Iface
>192.168.0.0     *               255.255.255.0   U     0      0        0 wlan0
>192.168.0.0     *               255.255.255.0   U     0      0        0 wlan0
>169.254.0.0     *               255.255.0.0     U     0      0        0 lo
>default         192.168.0.1     0.0.0.0         UG    0      0        0 wlan0

Et à ce moment là que donne le ping ?

____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Répondre à