LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-19-2005, 09:11 AM   #1
[LAG] Prude
Member
 
Registered: Feb 2005
Location: In front of my computer
Distribution: Slackware 10.1
Posts: 31

Rep: Reputation: 15
Detecting wlans


is there a way to view detected wlans in a certain area?
 
Old 03-19-2005, 10:28 AM   #2
vimico
Member
 
Registered: Jan 2004
Distribution: Debian, Ubuntu
Posts: 118

Rep: Reputation: 15
If the wireless device is ath0, the following command should display the wlans:
Code:
iwlist ath0 scan
Note: Some devices need to be up before you can start the scan:
Code:
ifconfig ath0 up
There may be other wlans available that do not broadcast a beacon, which this tool will not detect.
 
Old 03-19-2005, 10:46 AM   #3
[LAG] Prude
Member
 
Registered: Feb 2005
Location: In front of my computer
Distribution: Slackware 10.1
Posts: 31

Original Poster
Rep: Reputation: 15
sweet, thanks. would you also maybe know how to connect to thems wireless connections by chance?
 
Old 03-21-2005, 05:49 PM   #4
vimico
Member
 
Registered: Jan 2004
Distribution: Debian, Ubuntu
Posts: 118

Rep: Reputation: 15
I let you know when I had the chance to try it :-)

At the moment I'm only connected to my own access point and I have no experience with other open networks.

AFAIK, you need to take the following steps:
  • set the parameters via iwconfig
  • bringing up the device with ifconfig
  • request an IP number, subnet, default route with an dhcpclient

Parameters needed for iwconfig will most likely be:
  • mode: Managed - meaning you want to talk to an access point
  • essid: name of the net - the name you see in the scan list
  • frequency - the frequency given in the scan list
  • encryption: most likely off - without a key you can only connect to open networks

These parameters have to be set like in this example
Code:
iwconfig device mode Managed
Then the device has to be brought up
Code:
ifconfig device up
At this point the connection between access point of the open net and laptop should have been established, but the computer does not have an IP number, default route etc. for this network. The access point will most likely run a DHCP server which you can contact using

Code:
dhclient device
This should do it. As I said, I had no chance yet, to try it.

Anyone with more experience please speak up NOW :-)
 
  


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
connecting to multiple wlans question........ dimgr Linux - Wireless Networking 1 03-19-2005 07:27 AM
detecting my IP jonaskoelker Linux - Networking 5 01-16-2005 06:45 AM
Detecting modems anirudh.dp Linux - Hardware 1 09-12-2004 03:53 PM
not detecting internet teeli Linux - Newbie 5 05-18-2004 11:09 PM
detecting '\t' haobaba1 Programming 5 02-22-2004 11:01 AM

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

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