| Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-26-2005, 10:53 AM
|
#1
|
|
Member
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380
Rep:
|
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.
|
|
|
|
01-26-2005, 11:02 AM
|
#2
|
|
Member
Registered: Mar 2004
Location: UK/West Yorkshire/Huddersfield
Distribution: Fedora 7
Posts: 982
Rep:
|
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
|
|
|
|
01-26-2005, 11:13 AM
|
#3
|
|
Member
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380
Original Poster
Rep:
|
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.
|
|
|
|
01-26-2005, 09:34 PM
|
#4
|
|
Member
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380
Original Poster
Rep:
|
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!
|
|
|
|
01-26-2005, 09:45 PM
|
#5
|
|
Member
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383
Rep:
|
dhcpcd wlan0 , maybe?
or
ifconfig -G 192.168.2.1
does either work?
|
|
|
|
01-26-2005, 10:00 PM
|
#6
|
|
Member
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380
Original Poster
Rep:
|
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
|
|
|
|
01-26-2005, 10:13 PM
|
#7
|
|
Member
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383
Rep:
|
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.
|
|
|
|
01-26-2005, 10:15 PM
|
#8
|
|
Member
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380
Original Poster
Rep:
|
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
|
|
|
|
01-26-2005, 10:22 PM
|
#9
|
|
Member
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383
Rep:
|
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.
|
|
|
|
01-26-2005, 10:39 PM
|
#10
|
|
Member
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380
Original Poster
Rep:
|
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
|
|
|
|
01-26-2005, 10:42 PM
|
#11
|
|
Member
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383
Rep:
|
Local.
|
|
|
|
01-28-2005, 01:39 AM
|
#12
|
|
Member
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380
Original Poster
Rep:
|
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?
|
|
|
|
01-28-2005, 01:58 AM
|
#13
|
|
Member
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380
Original Poster
Rep:
|
wooooooooooooo problem solved
my security mode should have been "open" not "restricted"
iwconfig wlan0 key open 102938120398120398120398019283019238
thanks everyone
|
|
|
|
01-28-2005, 02:27 PM
|
#14
|
|
Member
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383
Rep:
|
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.
|
|
|
|
01-28-2005, 02:47 PM
|
#15
|
|
Member
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383
Rep:
|
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.
|
|
|
|
All times are GMT -5. The time now is 06:31 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|