LinuxQuestions.org
Register a domain and help support LQ
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 01-18-2008, 01:48 PM   #1
jmhal
Member
 
Registered: Sep 2006
Location: Fortaleza Brazil
Distribution: Slackware
Posts: 33

Rep: Reputation: 15
Creating Wireless Ad-Hoc Networks on Linux Boxes


Hi,

I have two Linux Boxes, one with Slackware 12 and other with Ubuntu 7.10. The Ubuntu machine has an USB wifi stick, model DWL-G132, working nice with ndiswrapper. The Slackware 12 machine is a notebook with Intel 2200BG wireless. They both work with access points without bugs.

I want to create a Ad-Hoc network using these two machines. On the Slackware machine, i'm performing the following commands:

Code:
# iwconfig eth1 mode Ad-Hoc
# iwconfig eth1 essid pulse
# iwconfig eth1 channel 8 
# ifconfig eth1 10.0.0.1 up
On the Ubuntu box, i'm using these commands:

Code:
sudo /etc/dbus-1/event.d/25NetworkManager stop
sudo iwconfig wlan0 mode Ad-Hoc
sudo iwconfig wlan0 essid pulse
sudo iwconfig wlan0 channel 8
sudo iwconfig wlan0 10.0.0.2 up
I can't ping 10.0.0.2 from 10.0.0.1 and the other way around neither. There are no other interfaces or networks set on the machines. The other services aren't available either. Am I missing any step?
 
Old 01-20-2008, 09:19 PM   #2
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
Yeah that "should" work, sadly ad-hoc mode has become the neglected step-child of the 802.11 service modes. Can you post back the output from "iwconfig" and "ifconfig", most important being the cell ID from iwconfig. Its formated like a mac address, and if the network were properly established on the 802.11 layer 2, they would match between the two interfaces.

Cheers,

Finegan
 
Old 01-21-2008, 10:35 AM   #3
jmhal
Member
 
Registered: Sep 2006
Location: Fortaleza Brazil
Distribution: Slackware
Posts: 33

Original Poster
Rep: Reputation: 15
Ok, I'll check that ID. But the steps i'm taking are ok? Any command missing?
 
Old 01-21-2008, 06:46 PM   #4
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
Yeah, I mean, I was doing sort of the same thing a week ago, nat'ing from an ad-hoc network to my evdo card, and those were the commands I used. Some drivers support ad-hoc better than others. I'm almost certain your ipw2200 card will do ad-hoc just fine, its the ndiswrapper'd one I would think may be sketchy.

If the Cell ID's don't match, that's certainly the problem though.

Cheers,

Finegan
 
  


Reply

Tags
adhoc


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
[samba] how to reslov names in Ad-hoc networks ? jabka Linux - Server 1 12-08-2007 11:02 PM
[samba] how to reslov names in Ad-hoc networks ? jabka Linux - Networking 1 12-08-2007 06:45 AM
creating a crossover network with 2 linux boxes leaveone Linux - Networking 9 05-10-2007 06:07 PM
ad-hoc connection (and internet sharing) between two linux boxes. A complex question. riccisit Linux - Wireless Networking 1 09-29-2005 09:02 AM
Broadcast in ad hoc networks rickthemick Linux - Networking 2 10-29-2004 08:49 AM


All times are GMT -5. The time now is 09:20 PM.

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