![]() |
| | #1 | |||
| Registered User Join Date: Jan 2009
Posts: 156
| Connect to a wireless network via Linux command line Here is what I did Code: ifconfig wlan0 up iwlist wlan0 scan iwconfig wlan0 essid NETWORK_ID key WIRELESS_KEY Quote:
Code: iwconfig wlan0 essid NETWORK_ID key s:WIRELESS_KEY Quote:
4. When I connect to the open wireless network, "iwconfig wlan0" gives "Access Point: Not-Associated". Quote:
Thanks and regards! | |||
| lehe is offline | |
| | #2 |
| Registered User Join Date: Apr 2008
Posts: 299
| I am running linux and have just successfully connected my card by doing the following: This will give u the essid and Access Point and channel. Code: iwlist scan Code: iwconfig wlan0 key 'mykey' mode managed essid 'mychannel' channel integer ap 00:00:00:00:00:00 Also be sure to take your device down before you start and start the device back up when you are done: Code: ifconfig wlan0 up/down Edit: Just read your post in more detail and saw this line: Code: Access Point: Not-Associated Last edited by carrotcake1029; 08-09-2009 at 11:07 AM. |
| carrotcake1029 is offline | |
| | #3 |
| Registered User Join Date: Jul 2008
Posts: 76
| First of all, if you are connecting to WPA, you cannot use iwconfig wlan0 essid NETWORK_ID key WIRELESS_KEY command. You will have to use wireless-tools or wpa_supplicant. I am using wpa_supplicant and it is kinda straight forward. Got to do some settings in wpa_supplicant.conf file, and nothing else. If you are using WEP, then try this. modprobe -r <your wireless module here> modprobe <your wireless module> iwconfig wlan0 up iwconfig wlan0 essid <network name> key <password> |
| valthyx is offline | |
| | #4 | |
| Registered User Join Date: Apr 2008
Posts: 299
| Quote:
But yes, you are right, you do need to be running wpa_supplicant | |
| carrotcake1029 is offline | |
| | #5 | |
| Registered User Join Date: Jul 2008
Posts: 76
| Quote:
Anyway, how is your problem now, lehe? | |
| valthyx is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| WinXP Network Connections pop-up | DavidP | Tech Board | 1 | 10-02-2002 05:36 PM |
| Linux Network Programing | Unregistered | Linux Programming | 2 | 07-27-2002 06:08 AM |
| Linux Under Windows | Strut | Linux Programming | 3 | 05-27-2002 08:09 PM |
| linux vs linux? | Dreamerv3 | Linux Programming | 5 | 01-22-2002 09:39 AM |
| Linux cannot connect to internet | taps | Linux Programming | 3 | 11-09-2001 09:11 AM |