Hi
I have two laptops with wireless enabled (one's running Debian, the other's running Gentoo, and they both have Intel PRO/Wireless cards). Everything seems to be set up correctly, because I can connect to the Internet just fine using an access point.
I recently tried to get the machines connected in ad-hoc mode. I'm not very experienced with wireless networking, but I think I followed the right steps. The problem is that I cannot use either machine to ping the other one. This is what I did:
MACHINE 1 (wireless interface is eth1)
iwconfig eth1 mode Ad-Hoc essid mynet channel 11 key off
ifconfig eth1 10.10.10.10 netmask 255.255.255.0 up
MACHINE 2 (wireless interface is eth0)
iwconfig eth0 mode Ad-Hoc essid mynet channel 11 key off
ifconfig eth0 10.10.10.11 netmask 255.255.255.0 up
Both of them associated with the "mynet" network and accepted the static IP addresses I assigned them. Here's the relevant output from iwconfig on the two machines afterwards:
Code:
eth1 IEEE 802.11g ESSID:"mynet"
Mode:Ad-Hoc Frequency:2.462 GHz Cell: 02:12:F0:4F:41:40
Bit Rate=54 Mb/s Tx-Power=20 dBm
Code:
eth0 IEEE 802.11g ESSID:"mynet"
Mode:Ad-Hoc Frequency:2.462 GHz Cell: 02:12:F0:4F:41:40
Bit Rate=54 Mb/s Tx-Power=20 dBm Sensitivity=8/0
So far, everything looks like it's working properly. I can ping the first machine from itself over the wireless interface. But I can't reach the other machine:
sanmao@localghost:~$ ping -I eth1 10.10.10.10
PING 10.10.10.10 (10.10.10.10) from 10.10.10.10 eth1: 56(84) bytes of data.
64 bytes from 10.10.10.10: icmp_seq=1 ttl=64 time=0.075 ms
64 bytes from 10.10.10.10: icmp_seq=2 ttl=64 time=0.064 ms
--- 10.10.10.10 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.064/0.069/0.075/0.010 ms
sanmao@localghost:~$ ping -I eth1 10.10.10.11
PING 10.10.10.11 (10.10.10.11) from 10.10.10.10 eth1: 56(84) bytes of data.
From 10.10.10.10 icmp_seq=2 Destination Host Unreachable
From 10.10.10.10 icmp_seq=3 Destination Host Unreachable
From 10.10.10.10 icmp_seq=4 Destination Host Unreachable
From 10.10.10.10 icmp_seq=6 Destination Host Unreachable
From 10.10.10.10 icmp_seq=7 Destination Host Unreachable
From 10.10.10.10 icmp_seq=8 Destination Host Unreachable
--- 10.10.10.11 ping statistics ---
8 packets transmitted, 0 received, +6 errors, 100% packet loss, time 7000ms
, pipe 3
I've deactivated the firewalls and other network interfaces on both machines, but it still doesn't work.
I searched the Internet for a bit and found that other people have had similar problems in the past, but I haven't been able to find any answers to this problem. I'm obviously missing something important, and would really appreciate any suggestions on what's going wrong.
Thanks a lot
Simon