Networking Forums

Networking Forums > Computer Networking > Linux Networking > Accessing a WIFI hotspot by hand: howto?

Reply
Thread Tools Display Modes

Accessing a WIFI hotspot by hand: howto?

 
 
Guest
Posts: n/a

 
      04-29-2009, 04:06 PM

Hello.

I'm looking for command-line commands to connect to an open, non-encrypted
WIFI access-point.

I already use my WIFI connection to connect to the internet at home. I'd
like to be able to connect out of home, when there are free access points
around.

I don't use KDE or Gnome, so I don't have any autosearching and autofinding
tools; I'd like to know how to do it « by hand ».

My card is setup, I can use iwlist wlan0 scan to scan the nearby
access-points, and see some of them that have no encryption.

How do I go on after that?

--
Fabrice DELENTE
 
Reply With Quote
 
 
 
 
lutz golke
Guest
Posts: n/a

 
      04-29-2009, 04:15 PM
(E-Mail Removed) schrieb:
> Hello.
>
> I'm looking for command-line commands to connect to an open, non-encrypted
> WIFI access-point.



# ifconfig wlan0 up
# iwconfig wlan0 mode managed
# iwconfig wlan0 essid any
# iwconfig wlan0 enc off
# dhclient/pump/dhclient3 wlan0 (dhcp-client of your choice)

should do the job, if the desired ap has no MAC-filtering etc active


hth,
lutz
 
Reply With Quote
 
Rui Maciel
Guest
Posts: n/a

 
      04-29-2009, 07:34 PM
lutz golke wrote:

> # ifconfig wlan0 up
> # iwconfig wlan0 mode managed
> # iwconfig wlan0 essid any
> # iwconfig wlan0 enc off
> # dhclient/pump/dhclient3 wlan0 (dhcp-client of your choice)
>
> should do the job, if the desired ap has no MAC-filtering etc active


If you want to connect to a specific access point then you need to get a list of all available access points.
That list is obtained via:


iwlist wlan0 scan


....or some other wireless interface (ath0 ?)

Rui Maciel

 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      04-30-2009, 02:04 PM
<(E-Mail Removed)> writes:
>I'm looking for command-line commands to connect to an open, non-encrypted
>WIFI access-point.


You do not say which distro you have. What you want I think is not "by
hand" but "by command line". On at least some distros, there is a command,
ifup which sets up wired or wireless networks, which is a bash script or
set of scripts. On Mandriva it uses data in
/etc/sysconfig/network-scripts/ifcfg-eth? ( or wlan? or whaterever your
card is called-- the ? is a number)
You set up that file and then run ifup (eg
ifup eth1
if eth1 is your wireelss card)

>I already use my WIFI connection to connect to the internet at home. I'd
>like to be able to connect out of home, when there are free access points
>around.


>I don't use KDE or Gnome, so I don't have any autosearching and autofinding
>tools; I'd like to know how to do it « by hand ».


>My card is setup, I can use iwlist wlan0 scan to scan the nearby
>access-points, and see some of them that have no encryption.


>How do I go on after that?


>--
>Fabrice DELENTE

 
Reply With Quote
 
Fabrice Delente
Guest
Posts: n/a

 
      04-30-2009, 03:59 PM
> # ifconfig wlan0 up
> # iwconfig wlan0 mode managed
> # iwconfig wlan0 essid any
> # iwconfig wlan0 enc off
> # dhclient/pump/dhclient3 wlan0 (dhcp-client of your choice)


That seems to cover it, thanks. I didn't know about "essid any".

--
Fabrice DELENTE
 
Reply With Quote
 
lutz golke
Guest
Posts: n/a

 
      04-30-2009, 06:27 PM
Fabrice Delente schrieb:
>> # iwconfig wlan0 essid any


> That seems to cover it, thanks. I didn't know about "essid any".


You may specify a special "essid" given by "iwlist s" or "any" for
the first reachable AP. More options to be read in iwconfig-manpage.

Cheers,
Lutz
 
Reply With Quote
 
ray
Guest
Posts: n/a

 
      04-30-2009, 07:43 PM
On Thu, 30 Apr 2009 20:27:46 +0200, lutz golke wrote:

> Fabrice Delente schrieb:
>>> # iwconfig wlan0 essid any

>
>> That seems to cover it, thanks. I didn't know about "essid any".

>
> You may specify a special "essid" given by "iwlist s" or "any" for the
> first reachable AP. More options to be read in iwconfig-manpage.
>
> Cheers,
> Lutz


Interesting. I wonder what would happen if an available network had the
essid of 'any'.
 
Reply With Quote
 
John Thompson
Guest
Posts: n/a

 
      05-01-2009, 01:12 AM
On 2009-04-29, lutz golke <(E-Mail Removed)> wrote:

> # ifconfig wlan0 up
> # iwconfig wlan0 mode managed
> # iwconfig wlan0 essid any
> # iwconfig wlan0 enc off
> # dhclient/pump/dhclient3 wlan0 (dhcp-client of your choice)
>
> should do the job, if the desired ap has no MAC-filtering etc active


I've found "iwconfig eth0 essid any enc off" works pretty well.

--

John ((E-Mail Removed))
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
UK WiFi hotspot directory? Mr. Benn Broadband 11 05-29-2010 07:52 AM
WIFI Ad-Hoc network with encryption: howto? Fabrice Delente Linux Networking 2 09-12-2008 07:06 PM
Wifi Hotspot Server Ray Taylor Wireless Internet 0 12-17-2006 01:52 AM
Wifi Hotspot Server Ray Taylor Network Routers 0 12-17-2006 01:52 AM
wifi hotspot design Danny Wireless Internet 12 07-19-2003 01:14 AM



1 2 3 4 5 6 7 8 9 10 11