We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,272 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

cannot ping in ad-hoc lan: linux

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

2
Contributors
1
Reply
1 Week
Discussion Span
1 Year Ago
Last Updated
2
Views
Sudo Bash
Light Poster
35 posts since Dec 2010
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0

Maybe the firewall is blocking ICMP (ping) requests?

jbennet
Moderator
Team Colleague
18,528 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 609
Skill Endorsements: 29

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.1635 seconds using 2.65MB