LinuxQuestions.org
Register a domain and help support LQ
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 06-20-2004, 03:41 PM   #1
SilverGator
LQ Newbie
 
Registered: Jan 2004
Location: DC area
Distribution: varies
Posts: 9

Rep: Reputation: 0
Wireless - can't connect to access point


Hi all, so I'm out of my normal area for the summer and my only internet access is wireless through an old laptop. I have a wireless network card but I'm having trouble connecting to a router / access point in Linux (Slackware 9.1). The drivers are installed fine (thanks to linuxant). The problem is finding the router.

At home, I was able to connect through Linux by adding the following lines to the top of my /etc/pcmcia/wireless.opts (just under the 'case "$ADDRESS" in' line):

*,*,*,<my router's MAC address>)
INFO="My Netgear Router"
ESSID="any"
MODE="Managed"
RATE="auto"
KEY="<my router's encryption key>"
CHANNEL="<my router's channel>"
;;

The odd thing was, I could not force my card to connect to *my* router. The best result I could get was connecting to a router belonging to someone else in my building (even though the information I entered was for my router). Yet, if I removed that chunk of code, I could no longer connect at all.

Now in my new location (as I said, I'm not at home for the summer), I can't connect at all. I'm now using a friend's router/access point instead of mine. I am able to use the wireless card to connect to the access point using Windows - this tells me (1) my wireless NIC is still working, and (2) all the information I need to know about the access point.

I've tried changing the information listed above (router's MAC address, channel, etc.) to match the new router / access point, but it doesn't work. One thing maybe of note is the new access point I need to connect to does not use encryption (but then, neither did the one I was able to connect to at my old location).

Does anyone know of a way I can modify this (or do something else) to get on the internet through Linux? Right now I'm stuck on Windows because I need internet access. That's annoying enough, but I'm also taking a summer course where the homework has to be done in Linux - which means I'm rebooting between Windows and Linux constantly.

Thanks in advance.
 
Old 06-20-2004, 03:43 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Moved: This thread is more suitable in Wireless Networking and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 06-20-2004, 04:49 PM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,785
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
I guess the main question is do the setting you have in your wireless.opts file get used by the card? Does the output of iwconfig match your settings? If they don't, maybe try setting up the card with iwconfig commands.
 
Old 06-20-2004, 06:16 PM   #4
SilverGator
LQ Newbie
 
Registered: Jan 2004
Location: DC area
Distribution: varies
Posts: 9

Original Poster
Rep: Reputation: 0
Ok I'm trying to get it working using iwconfig. How can I tell iwconfig and/or ifconfig to use DHCP to get my IP address instead of statically assigning it?
 
Old 06-20-2004, 07:07 PM   #5
SilverGator
LQ Newbie
 
Registered: Jan 2004
Location: DC area
Distribution: varies
Posts: 9

Original Poster
Rep: Reputation: 0
By the way, I did some tests and the answer is no, the wireless.opts file does not affect the iwconfig settings. I was able to set iwconfig through iwconfig itself, but no success connecting so far. Perhaps because I chose my IP address statically when I should be getting it dynamically.

Here is what I tried:
ifconfig eth0 <IP address> # last IP address I was assigned dynamically
iwconfig eth0 mode managed rate 11M channel 6
iwconfig essid <essid name>
route add default gw <gateway IP address> eth0

I'm not too sure about the "rate 11M" option but I tried without that and it didn't help. Also, the mode on my Windows connection manager shows up as "infra" but there's no option for that in iwconfig. I know that the other settings are correct.
 
Old 06-21-2004, 07:48 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,785
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
You should be able to set your IP address manually, but it could be that your gateway is not set. Anyway, here is what I do (I actually run these commands from a startup script):

iwconfig wlan0 essid MyEssid
iwconfig wlan0 key MyWEPKey
dhcpcd wlan0
ifconfig wlan0 up

Note that I don't set my channel, or rate and I don't seem to need to set my mode. Try issuing these commands from a console and run iwconfig to make sure they are set.

Quote:
Also, the mode on my Windows connection manager shows up as "infra" but there's no option for that in iwconfig
That's just windows-speak for managed mode I think. Basically all wireless connections are either managed mode or ad-hoc and the vast majority of people don't want ad-hoc.
 
  


Reply


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
Wireless router to wireless access point J3N7iL Linux - Wireless Networking 2 09-29-2005 08:55 PM
cannot connect to access point janASCII Linux - Wireless Networking 4 07-01-2005 01:30 PM
Can no longer connect to wireless access point ebaker Linux - Wireless Networking 2 03-23-2005 09:23 PM
Wireless Router vs Wireless Access Point IBall Linux - Wireless Networking 2 02-01-2005 12:29 PM
Which is the best Wireless Access Point and Wireless Card? hamish Linux - Wireless Networking 13 05-04-2004 10:26 AM


All times are GMT -5. The time now is 09:22 PM.

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