LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 02-07-2008, 06:45 PM   #1
xploit
LQ Newbie
 
Registered: Feb 2008
Distribution: Fedora 8
Posts: 9

Rep: Reputation: 0
WG311 v2 not connecting to router with iwconfig


Hey guys, so Im on FC8 and I managed to get my wireless card installed.

Its a NETGEAR WG311 v2 and its isntalled with the XP drivers on ndiswrapper. ndiswrapper -l says its present and drivers are installed. Great!

Then I start ndiswrapper with modprobe ndiswrapper and check for the interface in iwconfig. wlan0 shows up, not connected to any network or AP. Now for my question, how can I connect it to my home network?

The router broadcasts SSID (I know its setup to broadcast and I can see it in iwlist wlan0 scanning) and it uses WEP encryption until I can get internet setup so I can yum wpa-supplicant. Anyhow, this is the initial command I used:
Code:
iwconfig wlan0 BSSID network ENC a0b1c2d3e4
This didnt work so well (it crashed my system) so I rebooted and did:
Code:
iwconfig wlan0 BSSID network KEY a0b1c2d3e4
This, again didn't work (at least it didnt freeze up tty) so I tried:
Code:
iwconfig wlan0 BSSID network KEY a0b1c2d3e4 MODE managed RATE 11m
Still no go!


Now what? Help appreciated

btw. all these commands were run as root from tty1
 
Old 02-07-2008, 09:45 PM   #2
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
I would try turning off encryption on your router and try to connect in the clear. You will need to configure the interface settings or use your DHCP client software to get an IP address, etc. I don't use Fedora, so maybe someone else can provide more help.
 
Old 02-07-2008, 09:51 PM   #3
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,506

Rep: Reputation: 116Reputation: 116
You should be using the argument essid, not bssid. The bssid would be the MAC address of the router. I'm not sure if iwconfig is case sensitive, but I know it works for me using lower case arguments. Try:
Code:
iwconfig wlan0 essid network enc a0b1c2d3e4
 
Old 02-07-2008, 09:56 PM   #4
xploit
LQ Newbie
 
Registered: Feb 2008
Distribution: Fedora 8
Posts: 9

Original Poster
Rep: Reputation: 0
Well I use the lowercase parameters, I just made them uppercase to improve readability


I thought something was fishy about using BSSID, Ill give essid a try (shame I just shut down my system, Ill do it tomorrow).

And pentode, I cant connect to my neighbor's wifi either, and his is unsecured, so I doubt its the WEP thats acting up.

Thanks, will post an update tomorrow.
 
Old 02-09-2008, 11:48 AM   #5
xploit
LQ Newbie
 
Registered: Feb 2008
Distribution: Fedora 8
Posts: 9

Original Poster
Rep: Reputation: 0
Ok I tried using ESSID and still no go. Now I've encountered a new problem.

Ok, Ive been looking over the ndiswrapper wiki and found this:



Quote:
Originally Posted by ndiswrapper wiki @ sourceforge
...set the operating mode of the interface according to your setup. In most cases, it is Managed iwconfig wlan0 mode Managed If you use encryption WEP, set the key: iwconfig wlan0 key restricted <XXXXXXXX>...
and

Quote:
Originally Posted by ndiswrapper wiki @ sourceforge
...Set the network name iwconfig wlan0 essid <name>...
and

Quote:
Originally Posted by ndiswrapper wiki @ sourceforge
Now, setup the network parameters for the interface wlan0. This varies from distribution to distribution. Refer to your distribution’s documents on how to do this. Once this is done, you can use network tools to bring up the network e.g., ifconfig wlan0 up or dhclient wlan0 or dhcpcd wlan0 etc.


See the problem is, I do
Code:
$ modprobe ndiswrapper
$ iwconfig wlan0 mode managed
$ iwconfig wlan0 key restricted a0b1c2d3e4
and then everything freezes up.

Ive even tried
Code:
$ iwconfig wlan0 essid network mode managed freq 2.412 channel 1 ap 00:01:02:03:04:05 key restricted a0b1c2d3e4
Whats going on? :?

Last edited by xploit; 02-09-2008 at 11:52 AM.
 
Old 02-09-2008, 01:49 PM   #6
xploit
LQ Newbie
 
Registered: Feb 2008
Distribution: Fedora 8
Posts: 9

Original Poster
Rep: Reputation: 0
I managed to associate my card with my neighbor's AP using
Code:
iwconfig wlan0 essid linksys mode managed freq 2.437 channel 6
Its all good and working except for one little thing, my desktop stopped responding. I dont know how to explain it better. I cant click/right click on my desktop or any of my icons or the K menu/toolbar shortcuts. But, I had 3 terminals open when this happened and they are still fully functional and parsing input.


Why is this happening?
 
  


Reply

Tags
fedora, iwconfig, ndiswrapper, v2, wg311, wireless


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's after connecting to an essid using iwconfig? rlee923 Linux - Wireless Networking 2 01-16-2007 07:31 AM
Connecting Wirelessly with Netgear WG311 Redhat iambia Linux - Wireless Networking 2 01-25-2006 11:17 PM
Connecting to Router SirJinX Linux - Networking 5 01-03-2006 08:54 PM
Connecting PC to router through another PC freek sanders Linux - Wireless Networking 5 06-16-2005 03:23 PM
Connecting through the router but,.... Jase Linux - Networking 10 01-27-2002 09:38 PM


All times are GMT -5. The time now is 12:16 AM.

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