Find the answer to your Linux question:
Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    1

    Unable to ping machines on a wireless ad-hoc network


    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

  2. #2
    Just Joined!
    Join Date
    Jan 2008
    Posts
    1

    Unable to ping machines on a wireless ad-hoc network

    hi simon,

    i think the netmask might be a problem what you have provide .
    You can try the netmask 255.0.0.0 for both and try to ping the machine
    and let me know if it worked.

    i am also new to the networking domain.

    Regards
    Deb

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •