1,105,578 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 [?]
 
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 192.168.1.1

On the laptop I did the same thing with the ip 192.168.1.2, 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
jbennet
Moderator
17,127 posts since Apr 2005
Reputation Points: 1,618 [?]
Q&As Helped to Solve: 736 [?]
Skill Endorsements: 38 [?]
Team Colleague
Featured
 
0
 

Maybe the firewall is blocking ICMP (ping) requests?

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