relier 2 ordinateurs par WIFI
Le
Fabrice Delente
Bonjour.
J'ai deux ordinateurs équipés en WIFI.
Je voudrais les faire se parler directement.
Le WIFI marche car je peux tous les deux les relier à ma Freebox par ce
moyen.
L'une des machines a un chipset atheros, j'utilise madwifi de cette façon :
wlanconfig ath0 destroy
wlanconfig ath0 create wlandev wifi0 wlanmode adhoc
iwconfig ath0 essid "airforce-one" mode Ad-Hoc
ifconfig ath0 192.168.1.3 up
Sur l'autre, qui a un chipset intel, je fais
iwconfig wlan0 essid "airforce-one" mode Ad-Hoc
ifconfig wlan0 192.168.1.4 up
route add default gw 192.168.1.0 ath0
Mais impossible de pinger les machines, ni de l'une, ni de l'autre
Que faut-il que je fasse de plus ?
Merci !
À bientôt.
--
Fabrice DELENTE
SVP, ne m'envoyez pas de pièces jointes aux formats Word, PowerPoint, RTF
(formats propriétaires). Utilisez des formats libres comme txt, html, ou
OpenOffice.Org, ou un format ouvert comme PDF. Merci. Voir
http://www.gnu.org/philosophy/no-wo...ts.fr.html
J'ai deux ordinateurs équipés en WIFI.
Je voudrais les faire se parler directement.
Le WIFI marche car je peux tous les deux les relier à ma Freebox par ce
moyen.
L'une des machines a un chipset atheros, j'utilise madwifi de cette façon :
wlanconfig ath0 destroy
wlanconfig ath0 create wlandev wifi0 wlanmode adhoc
iwconfig ath0 essid "airforce-one" mode Ad-Hoc
ifconfig ath0 192.168.1.3 up
Sur l'autre, qui a un chipset intel, je fais
iwconfig wlan0 essid "airforce-one" mode Ad-Hoc
ifconfig wlan0 192.168.1.4 up
route add default gw 192.168.1.0 ath0
Mais impossible de pinger les machines, ni de l'une, ni de l'autre
Que faut-il que je fasse de plus ?
Merci !
À bientôt.
--
Fabrice DELENTE
SVP, ne m'envoyez pas de pièces jointes aux formats Word, PowerPoint, RTF
(formats propriétaires). Utilisez des formats libres comme txt, html, ou
OpenOffice.Org, ou un format ouvert comme PDF. Merci. Voir
http://www.gnu.org/philosophy/no-wo...ts.fr.html

Poser une question


Bonjour,
voir les firewalls de vos *nix ?
la gateway, vous êtes sûr ? (la 192.168.1.1 ou 192.168.1.254 non ?)
Cdlt
Je n'en ai pas.
Non, je ne suis pas s^ur, justement :^) Je vais essayer avec 192.168.1.1;
autant que je me rappelle ça ne marchait pas avec 192.168.1.254.
À bientôt.
--
Fabrice DELENTE
SVP, ne m'envoyez pas de pièces jointes aux formats Word, PowerPoint, RTF
(formats propriétaires). Utilisez des formats libres comme txt, html, ou
OpenOffice.Org, ou un format ouvert comme PDF. Merci. Voir
http://www.gnu.org/philosophy/no-wo...ts.fr.html
Sur celle avec le chipset intel
==============================
# iwconfig
wlan0 IEEE 802.11g ESSID:"airforce-one"
Mode:Ad-Hoc Frequency:2.412 GHz Cell: 02:15:AF:16:A1:EC
Tx-Power' dBm
Retry min limit:7 RTS thr:off Fragment thr#46 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
# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:27 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2796 (2.7 KiB) TX bytes:2796 (2.7 KiB)
wlan0 Link encap:Ethernet HWaddr 00:1f:3c:4a:f7:8f
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21f:3cff:fe4a:f78f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:3852 (3.7 KiB)
wmaster0 Link encap:UNSPEC HWaddr 00-1F-3C-4A-F7-8F-77-6C-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 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.1.254 0.0.0.0 UG 0 0 0 wlan0
# ping 192.168.1.3
PING swift.airforce-one.org (192.168.1.3) 56(84) bytes of data.
From slick.airforce-one.org (192.168.1.4) icmp_seq=1 Destination Host Unreachable
From slick.airforce-one.org (192.168.1.4) icmp_seq=2 Destination Host Unreachable
From slick.airforce-one.org (192.168.1.4) icmp_seq=3 Destination Host Unreachable
From slick.airforce-one.org (192.168.1.4) icmp_seq=5 Destination Host Unreachable
From slick.airforce-one.org (192.168.1.4) icmp_seq=6 Destination Host Unreachable
From slick.airforce-one.org (192.168.1.4) icmp_seq=7 Destination Host Unreachable
--- swift.airforce-one.org ping statistics ---
9 packets transmitted, 0 received, +6 errors, 100% packet loss, time 8011ms
, pipe 3
Sur celle avec le chipset atheros
================================
#ifconfig
ath0 Link encap:Ethernet HWaddr 00:15:af:16:a1:ec
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
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 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 00:1a:92:98:69:f2
inet addr: $MONIP Bcast: $MONIP.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40322 errors:0 dropped:0 overruns:0 frame:0
TX packets:24586 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:49916683 (47.6 MiB) TX bytes:1999394 (1.9 MiB)
Interrupt:19 Base address:0x6c00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:92 errors:0 dropped:0 overruns:0 frame:0
TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6044 (5.9 KiB) TX bytes:6044 (5.9 KiB)
wifi0 Link encap:UNSPEC HWaddr 00-15-AF-16-A1-EC-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:54923 errors:0 dropped:0 overruns:0 frame:225
TX packets:45 errors:2 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:6590723 (6.2 MiB) TX bytes:3527 (3.4 KiB)
Interrupt:17
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
$MONIP.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 ath0
default $MONIP.254 0.0.0.0 UG 0 0 0 eth0
# iwconfig
ath0 IEEE 802.11g ESSID:"airforce-one" Nickname:"swift"
Mode:Ad-Hoc Frequency:2.412 GHz Cell: 02:15:AF:16:A1:EC
Bit Rate:0 kb/s Tx-Power:17 dBm Sensitivity=1/1
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=9/70 Signal level=-80 dBm Noise level=-89 dBm
Rx invalid nwid:19 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
# ping 192.168.1.4
PING slick.airforce-one.org (192.168.1.4) 56(84) bytes of data.
From swift.airforce-one.org (192.168.1.3) icmp_seq=1 Destination Host Unreachable
From swift.airforce-one.org (192.168.1.3) icmp_seq=2 Destination Host Unreachable
From swift.airforce-one.org (192.168.1.3) icmp_seq=3 Destination Host Unreachable
From swift.airforce-one.org (192.168.1.3) icmp_seq=4 Destination Host Unreachable
From swift.airforce-one.org (192.168.1.3) icmp_seq=5 Destination Host Unreachable
From swift.airforce-one.org (192.168.1.3) icmp_seq=6 Destination Host Unreachable
--- slick.airforce-one.org ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6003ms
, pipe 4
Toujours pas de résultats...
À bientôt.
--
Fabrice DELENTE
SVP, ne m'envoyez pas de pièces jointes aux formats Word, PowerPoint, RTF
(formats propriétaires). Utilisez des formats libres comme txt, html, ou
OpenOffice.Org, ou un format ouvert comme PDF. Merci. Voir
http://www.gnu.org/philosophy/no-wo...ts.fr.html
NB - si tu es sous Vista , il faut un mot de passe de session!
--
--
Serge CENCI
MVP MS Windows
https://mvp.support.microsoft.com/p...erge.Cenci
http://www.communautes-numeriques.net/
"Fabrice Delente" news:48c262d3$0$10490$
Ça n'a aucune importance, je veux relier les 2 pc directement, sans passer
par la freebox.
Je suis sous linux, j'ai oublié de préciser, désolé.
À bientôt.
--
Fabrice DELENTE
SVP, ne m'envoyez pas de pièces jointes aux formats Word, PowerPoint, RTF
(formats propriétaires). Utilisez des formats libres comme txt, html, ou
OpenOffice.Org, ou un format ouvert comme PDF. Merci. Voir
http://www.gnu.org/philosophy/no-wo...ts.fr.html