LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-19-2004, 12:14 PM   #1
Uncle Bob
LQ Newbie
 
Registered: Sep 2002
Distribution: Suse 9.0
Posts: 3

Rep: Reputation: 0
setting a wlan in ad-hoc mode


Hi everybody!!

I'm trying to set up a wireless lan in ad hoc mode. I have 2 PCs and 1 Ipaq(pocket PC) which run Linux(version>2.4 on all)(Suse, redhat&Familiar).

The problem(all in adhoc mode): The PC with redhat(R) can ping the ipaq(and vice versa), but the PC with suse(S) and R can't ping each other.

On S:
When I insert the Wifi card(lucent orinoco 11Mb/s), iwconfig prints:
wlan0 IEEE 802.11-DS ESSID:"MRSWRL01" Nickname:"HERMES I"
Mode:Managed Frequency:2.442GHz Access Point: 00:02:2D:08:86:BE
Bit Rate:11Mb/s Tx-Power=15 dBm Sensitivity:1/3
Retry limit:4 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:15/92 Signal level:-87 dBm Noise level:-104 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0


then, when I type ifconfig, I have:
wlan0 Lien encap:Ethernet HWaddr 00:02:2D:05:3E:E1
inet adr:172.25.70.12 Bcast:172.25.70.255 Masque:255.255.255.0
adr inet6: fe80::202:2dff:fe05:3ee1/64 Scope:Lien
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:1 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:100
RX bytes:390 (390.0 b) TX bytes:1262 (1.2 Kb)
Interruption:9 Adresse de base:0x100



Then, I execute these two lines to assign an IPv6 address to myPC:
ifconfig wlan0 inet6 add fec0:106:2700::11/128
iwconfig wlan0 essid okwlan mode ad-hoc channel 3


I type the same commands as before: iwconfig:
wlan0 IEEE 802.11-DS ESSID:"okwlan" Nickname:"HERMES I"
Mode:Ad-Hoc Frequency:2.422GHz Cell: 02:02:2D:32:78:31
Bit Rate:2Mb/s Tx-Power=15 dBm Sensitivity:1/3
Retry limit:4 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:3 Invalid misc:0 Missed beacon:0


ifconfig:
wlan0 Lien encap:Ethernet HWaddr 00:02:2D:05:3E:E1
inet adr:172.25.70.12 Bcast:172.25.70.255 Masque:255.255.255.0
adr inet6: fec0:106:2700::11/128 Scope:Site
adr inet6: fe80::202:2dff:fe05:3ee1/64 Scope:Lien
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:2 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:100
RX bytes:780 (780.0 b) TX bytes:2038 (1.9 Kb)
Interruption:9 Adresse de base:0x100


I tried to execute these two commands step by step, and I found that iwconfig wlan0 essid okwlan modifies the bit rate and the frequency. iwconfig wlan0 mode ad-hoc changes this:
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:5 Invalid misc:0 Missed beacon:0


And of course, I tried consciously the same commands on the other PC, but I must have missed something. Just a precision: the ping on R and IPaq sometimes doesn't work, and I don't really know why.

Any idea or docs(I searched a lot)?
Thanks a lot
Bob
 
Old 08-19-2004, 01:31 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Moved: This thread is more suitable in Wireless Networking and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 04-04-2005, 02:55 AM   #3
David_Moses
LQ Newbie
 
Registered: Jul 2004
Location: uk
Distribution: Ubuntu
Posts: 27

Rep: Reputation: 15
a few thoughts

Hi there,

I'm really a noob but i have had a few thoughts about your post, have had loads of problems sorting out my wireless links.

Firstly it seems that your 2 boxes are on dirrerent ESSID's, one seems to be on 'MRSWRL01' and the other 'oklwan' , not sure about ad-hoc mode but this will certainly make a difference in managed.

Also your 2 cards seem to be on different freq's

MRSWRL01=2.442GHz
oklwan=2.422GHz

I'm pretty sure they should be the same freq or channel. try setting iwconfig (devicename) freq 2.442 on both cards.

also MRSWRLO1 seems to be assigned to a AP with a mac address of 00:02:2D:08:86:BE, not sure why, which would indicate that it not in ad-hoc mode.

also make sure both cards have static ip's and they are both on the same subnet.

not sure how helpful i have been.

Good luck

DM
 
  


Reply


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
Setting up Ad Hoc to Infrastructure mode gateway tasdevil Linux - Wireless Networking 3 10-06-2005 08:44 AM
which driver supports ad-hoc mode wlan? jasdeep_js Linux - Wireless Networking 1 09-09-2005 07:31 AM
How To Get IP Range in AD-HOC mode v1tn1k Linux - Wireless Networking 0 08-20-2005 12:06 PM
Can`t configure G530 card in Ad-hoc mode fahad26 Linux - Wireless Networking 1 02-11-2005 10:50 AM
Belkin F5D6001 and ad-hoc mode rmdnet Linux - Wireless Networking 1 12-28-2004 12:03 PM


All times are GMT -5. The time now is 10:17 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