Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-21-2009, 10:08 AM   #1
LQ Newbie
Registered: Dec 2008
Posts: 16

Rep: Reputation: 0
Possible to connect to WPA2 secured WLAN w/ only ifconfig & iwconfig?

In my situation I would like to connect to a wireless lan router which is secured with wpa2-psk. The router also uses dhcp.

The tools I have are ifconfig, iwconfig and dhcp. Is it possible to connect to my router with only this three tools? If so, how?
Old 02-21-2009, 10:24 AM   #2
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198

You also need a supported wifi card, supporting libraries and wpa supplicant.
Here's a howto:
Old 07-15-2011, 01:56 PM   #3
LQ Newbie
Registered: Nov 2008
Location: Mountain View
Distribution: Linux Mint
Posts: 6

Rep: Reputation: 0

Out of curiosity, why didn't they just add WPA/WPA2 support into ifconfig and iwconfig? Those two works with open wifi networks and wep networks so why not wpa also? If nothing else, it's at least consistent and we won't have to figure out yet another tool just to handle wpa authentication.

If, hypothetically, in the future a new encryption protocol is devised due to exploitable weakness in wpa, will we have yet another different tool just to handle that protocol too instead of making everything streamline and well integrated?

IMO, this makes things harder to use rather than easier.
Old 07-15-2011, 03:35 PM   #4
Registered: Apr 2004
Distribution: slackware/FreeBSD/Vector
Posts: 291

Rep: Reputation: 52
I am by no means an expert on this matter, but I do have some knowledge. I believe that the reasons for the need for wpa-supplicant is due to the complexities involved with the WPA and WPA2 authentications schemes, as the WPA2 has both WPA2-PSK and WPA2 enterprise which requires 802.11x authentication over Radius, which is probably why we need another application. Also when WPA came out before WPA2 there were many cards that didn't support anything but WEP due to older firmwares, and that wpa supplicant was needed to augment this shortcoming. Of course this is all conjecture on my part. Also don't forget this IS linux and they have about 30 different applications to do the same thing.


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
iwconfig - ifconfig brivy Linux - Networking 2 12-19-2007 01:01 PM
No ifconfig nor Iwconfig wasabi0503 Fedora 2 03-28-2006 12:23 AM
ifconfig & iwconfig do not work Koneko Linux - Newbie 3 08-06-2005 10:04 PM
ifconfig vs iwconfig danjmw Linux - Wireless Networking 3 12-20-2004 04:41 PM
iwconfig and ifconfig not working t3kops Fedora 1 07-17-2004 01:35 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration