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 01-26-2005, 10:53 AM   #1
hedpe
Member
 
Registered: Jan 2005
Location: Pittsburgh
Distribution: Ubuntu
Posts: 375

Rep: Reputation: 30
can't connect to my wireless network


Hey all, I used ndiswrapper and tried following numerous setup guides, and i got the card working, but it won't connect to my network

in my rc.local file i put:
modprobe ndiswrapper
iwconfig wlan0 essid SMC
ifconfig wlan0 192.168.2.104 netmask 255.255.255.0 up
route add default gw 192.168.2.1
iwconfig wlan0 key restricted <mykey>

but when it boots, my card powers on it says:
.... "Set MODE" .....
SET failed on device wlan0: No such device.
..... "Set ESSID" ....
SET failed on device wlan0: No such device.

I am *guessing* that the device didn't enable in time to set my commands

so, whenever it boots up, i just run the script again, but no matter what I do, my essid is always "ESSID:off/any"

i can pound in iwconfig wlan0 essid SMC a million times and it still will say "ESSID:off/any"

i don't understand it, my link quality is 100/100, and if I do "iwlist scan", my network SMC comes up in there, so it definately sees it!

I am running Slackware so i have no /etc/sysconfig or networking files...any have any idea to help me out? Thanks!
George

Last edited by hedpe; 01-26-2005 at 11:11 AM.
 
Old 01-26-2005, 11:02 AM   #2
snecklifter
Member
 
Registered: Mar 2004
Location: UK/West Yorkshire/Huddersfield
Distribution: Fedora 7
Posts: 982

Rep: Reputation: 30
Hello and welcome to LQ,
I think its not associating due to the encryption. Try setting the encryption key first and then the ssid. If this doesnt work you could see if it connects w/out encryption.
Regards
Chris
 
Old 01-26-2005, 11:13 AM   #3
hedpe
Member
 
Registered: Jan 2005
Location: Pittsburgh
Distribution: Ubuntu
Posts: 375

Original Poster
Rep: Reputation: 30
OK, so i modified the rc.local file to this now:

modprobe ndiswrapper
sleep 4
route add default gw 192.168.2.1
iwconfig wlan0 key restricted <mykey>
iwconfig wlan0 essid SMC
ifconfig wlan0 192.168.2.104 netmask 255.255.255.0 up

because of the 'sleep', i no longer get the errors on bootup

but i still get ESSID:off/any

thanks!

Last edited by hedpe; 01-26-2005 at 11:14 AM.
 
Old 01-26-2005, 09:34 PM   #4
hedpe
Member
 
Registered: Jan 2005
Location: Pittsburgh
Distribution: Ubuntu
Posts: 375

Original Poster
Rep: Reputation: 30
Ok i don't know if this helps any, but when i type 'route' I get:

destination......gateway......genmask..........flags....metric.....ref.....use.....iface
localnet..............*..........255.255.255.0.........U.........0...........0.........0.......eth0
localnet..............*..........255.255.255.0.........U.........0...........0.........0.......wlan0
localnet..............*..............255.0.0.0.............U.........0...........0.........0.......l o
localnet......192.168.2.1.......0.0.0.0...............U.........0...........0.........0.......eth0
localnet.......192.168.2.1......0.0.0.0...............U.........0...........0.........0.......eth0

what i'm concerned about is there is no gateway for my wlan0, it should be 192.168.2.1

thanks!
 
Old 01-26-2005, 09:45 PM   #5
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
dhcpcd wlan0 , maybe?
or
ifconfig -G 192.168.2.1


does either work?
 
Old 01-26-2005, 10:00 PM   #6
hedpe
Member
 
Registered: Jan 2005
Location: Pittsburgh
Distribution: Ubuntu
Posts: 375

Original Poster
Rep: Reputation: 30
ifconfig -G says -G is an invalid arguement

and my DHCP server is off, i'm using static ip so i don't want to use the dhcp command
 
Old 01-26-2005, 10:13 PM   #7
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
iwconfig -G 192.168.2.1

If that don't work man ifconfig and man iwonfig and find the gateway parts and go from there.
 
Old 01-26-2005, 10:15 PM   #8
hedpe
Member
 
Registered: Jan 2005
Location: Pittsburgh
Distribution: Ubuntu
Posts: 375

Original Poster
Rep: Reputation: 30
something just isn't right.... i was able to set the gateway with ifconfig

but now...

i tried like iwconfig wlan0 ap 01:12:xx:Xx:Xx .... and so on, and it won't even set my mac of he access point!

if i look, it still set as 00:00:00:00 and so on...

i even tried "iwconfig wlan0 commit" to force it to make the changes, but still nothing
 
Old 01-26-2005, 10:22 PM   #9
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
Okay I think I got it. enable wlan before doing your "route command"

change:
route add default gw 192.168.2.1
iwconfig wlan0 key restricted <mykey>
iwconfig wlan0 essid SMC
ifconfig wlan0 192.168.2.104 netmask 255.255.255.0 up

To:
iwconfig wlan0 key restricted <mykey>
iwconfig wlan0 essid SMC
ifconfig wlan0 192.168.2.104 netmask 255.255.255.0 up
route add default gw 192.168.2.1

I'm going step by step with you on my laptop and I have to do the route command last.
 
Old 01-26-2005, 10:39 PM   #10
hedpe
Member
 
Registered: Jan 2005
Location: Pittsburgh
Distribution: Ubuntu
Posts: 375

Original Poster
Rep: Reputation: 30
in the ifconfig wlan0 192.168.2.104 ...........

is that supposed to be my routers address or my local address?

cause 104 is my local address

1 is my router
 
Old 01-26-2005, 10:42 PM   #11
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
Local.
 
Old 01-28-2005, 01:39 AM   #12
hedpe
Member
 
Registered: Jan 2005
Location: Pittsburgh
Distribution: Ubuntu
Posts: 375

Original Poster
Rep: Reputation: 30
ok, my WEP key seems to be the problem

when i take the WEP key off, i can connect to my network EASILY

any ideas?
 
Old 01-28-2005, 01:58 AM   #13
hedpe
Member
 
Registered: Jan 2005
Location: Pittsburgh
Distribution: Ubuntu
Posts: 375

Original Poster
Rep: Reputation: 30
wooooooooooooo problem solved

my security mode should have been "open" not "restricted"

iwconfig wlan0 key open 102938120398120398120398019283019238

thanks everyone
 
Old 01-28-2005, 02:27 PM   #14
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
Hey thanks for the WEP key! J/K
Might also look into using WPA instead of WEP. WEP can be cracked really easily. I believe that there isn't a way to crack WPA yet anyways.
 
Old 01-28-2005, 02:47 PM   #15
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
I gotta stress this because I have 4 wireless connects in my area besides mine, of the 5 total I am the only one using Encryption. By the way the networks are as followed: a Hospital, a church, a ISP, and a another home user. I only know this because of the names of the Networks. I did however go an tell the hospital about there potential security risk, but they told me that thier tech suport told them they don't need it. Crazy cause they use Windows.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect to Wireless Network RySk8er30 Linux - Wireless Networking 8 11-19-2007 01:55 AM
cannot connect to secure wireless network with Fedora 3 raindogs Linux - Wireless Networking 5 09-15-2005 10:30 AM
cannot connect to wireless network anartz Linux - Wireless Networking 13 10-27-2004 10:38 AM
Wireless cannot connect to network/Internet in SuSE 9.1 Hironaga Linux - Wireless Networking 13 09-02-2004 11:00 PM
Getting Suse 9.1 to connect to a Wireless network MDBlueIce Linux - Newbie 0 08-14-2004 11:07 PM


All times are GMT -5. The time now is 01:42 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
Open Source Consulting | Domain Registration