1,105,546 Community Members

cannot ping in ad-hoc lan: linux

Member Avatar
Sudo Bash
Light Poster
35 posts since Dec 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 0 [?]

I have a slackware 13.1 tower computer and an Ubuntu 10.04 netbook. The netbook has an Atheros AR9285 wireless adapter, and I just recently got a Netgear WG111v3 USB wireless for the tower. I got the ndiswrapper driver working for the Netgear, and I have been previously been using the Ubuntu wifi without problem.

My goal is to get an ad-hoc lan set up between the two computers, and it seems that I have almost succeed. The laptop says it is connected, but neither computer can ping the other.

Here is what I did.
On the tower:

# ifconfig wlan0 down
# iwconfig wlan0 channel 1 mode ad-hoc essid 'lan' key off
# ifconfig

On the laptop I did the same thing with the ip, but when that didn't work I typed iwconfig to see if everything was correct and the essid key was scrambled. I then tried using Ubuntu's network manager to connect. I connected to 'lan' and, after I manually set the ip and netmask, it said I had a very strong connection.

Here is the problem. I can't ping either computer. Ping always returns "Destination Host Unreachable." when I try to ping the other computer.

I am currently fairly new to setting up ad-hoc networks and was wondering what I could do to troubleshoot.

Thanks in advance

Member Avatar
17,127 posts since Apr 2005
Reputation Points: 1,618 [?]
Q&As Helped to Solve: 736 [?]
Skill Endorsements: 38 [?]
Team Colleague

Maybe the firewall is blocking ICMP (ping) requests?

This article has been dead for over three months: Start a new discussion instead
Start New Discussion
View similar articles that have also been tagged: