LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-22-2011, 02:59 AM   #1
kamala
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Rep: Reputation: 0
creation & activation of ad-hoc network


Hi,

I am using D-Link wireless dongle on my fedora 11 machine.with commands i want to create and activate(up) an ad-hoc network. please help me.
Thanks in advance.
 
Old 02-22-2011, 03:35 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
If you are using network manager, you can click on the network manager icon in the system tray, and then click on "create new wireless network"

As far as using commands, you can do the following:

Code:
sudo service NetworkManager stop
sudo iwconfig wlan0 mode Ad-Hoc
sudo iwconfig wlan0 essid my_essid
sudo iwconfig wlan0 channel 6
sudo iwconfig wlan0 10.0.0.2 up
 
1 members found this post helpful.
Old 02-22-2011, 11:38 PM   #3
kamala
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you for your reply.

After stopping the network service, and setting the mode to ad-hoc giving this error,

Error for wireless request "Set Mode" (8B06) :
SET failed on device ra0 ; Network is down.
 
Old 02-22-2011, 11:59 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Code:
service NetworkManager stop
ifconfig ra0 down
ifconfig ra0 up
iwconfig ra0 mode Ad-Hoc
iwconfig ra0 essid my_essid
iwconfig ra0 channel 6
iwconfig ra0 10.0.0.2 up
I added the ifconfig down just to be sure it is fully down.
 
Old 02-24-2011, 02:18 AM   #5
kamala
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you very much for your quick reply,

its giving the below error
iwconfig: unknown command "10.0.0.2"

and its not creating any network with the essid and the network manager is not up.
 
Old 02-24-2011, 12:08 PM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
My bad, try it this way:

Code:
ifconfig ra0 down
ifconfig ra0 up
ifconfig ra0 192.168.111.1 netmask 255.255.255.0
iwconfig ra0 mode Ad-Hoc
iwconfig ra0 channel auto
iwconfig ra0 essid my_essid
 
  


Reply



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
ad hoc network torger Ubuntu 5 07-22-2006 02:51 PM
How to interconnect an ad-hoc network with an infrastructure network tonydeb Linux - Wireless Networking 3 08-08-2005 02:42 PM
problem with wireless ad-hoc network creation on Mandrake 9.2... superczar Linux - Wireless Networking 0 08-05-2005 01:30 AM
Network card activation mukiwa Fedora 3 08-22-2004 06:53 AM
network activation error matt_w_lambert Linux - Networking 10 07-18-2003 02:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:40 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration