LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 02-03-2012, 02:26 PM   #1
dwim
LQ Newbie
 
Registered: Apr 2011
Distribution: Slackware
Posts: 7

Rep: Reputation: 0
cannot ping in ad-hoc lan


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:

Code:
# 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. Despite the fact that Ubuntu says I am connected 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
 
Old 02-04-2012, 09:17 AM   #2
larrym82
Member
 
Registered: Dec 2011
Posts: 71

Rep: Reputation: Disabled
Hello,

Let me preface my remarks by stating that I have *never* been able to set up an ad hoc connection. But then I've never tried in Linux.

That said, you might check your cards to be sure they are in ad hoc mode. In that other OS you'd be looking at advanced settings on the wireless card itself.

By the way, I always got stumped just where you are. It might have to do with IP autoconfig if such exists in Linux, it may be assigning 169.254.n.n which doesn't work for anything (printers, my experience). It may be that the type A address causes this, I haven't looked carefully, but some A addresses are for specific purposes, although your mask should take care of that. Maybe setting one or more of the address blocks in your address to a specific address will work? Like this:

mask: 255.255.0.0 IP: 169.254.74.any with the second computer as mask: same IP: 169.254.74.someotherany

alternatively:

mask 255.255.0.0 IP: 169.254.0.any IP: 169.254.0.someotherany

note that any cannot be 0 or 255 in your last address block

good luck (P.S. these addresses are something I hadn't thought to try when I was attempting this)

Regards.
 
Old 02-05-2012, 10:28 PM   #3
dwim
LQ Newbie
 
Registered: Apr 2011
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: 0
It seems to be a driver issue.
I have it working, but not consistently.
 
Old 02-06-2012, 12:18 PM   #4
larrym82
Member
 
Registered: Dec 2011
Posts: 71

Rep: Reputation: Disabled
Quote:
Originally Posted by dwim View Post
It seems to be a driver issue.
I have it working, but not consistently.
Sounds familiar. What sort of card are you using? The only Linux experience I have with Wifi cards is the Broadcom which company doesn't provide open source drivers.
 
  


Reply

Tags
adhoc, netgear, ping, slackware, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 13 03-17-2011 02:47 AM
Can't PING in ad-hoc mode s_lapetite Linux - Wireless Networking 2 06-02-2007 01:43 PM
Can't PING in ad-hoc mode s_lapetite Linux - Networking 1 06-01-2007 05:26 AM
BCM4318 Ad-hoc: Can't ping between machines 3x3cut0r Linux - Wireless Networking 1 03-16-2007 08:18 AM
Ping between 2 ad-hoc wifi computers bengo3 Linux - Wireless Networking 1 01-01-2005 01:08 PM


All times are GMT -5. The time now is 08:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration