LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-01-2004, 05:55 AM   #1
zehas
LQ Newbie
 
Registered: Sep 2004
Location: oregon
Distribution: slackware 10
Posts: 2

Rep: Reputation: 0
dwl 650 config problem


I'm using a dlink dwl-650 for my network access.
in rc.local i added these lines

modprobe ndiswrapper
sleep 10
iwconfig wlan0 mode Managed
iwconfig wlan0 essid "linksys"
iwconfig wlan0 channel 6
ifconfig wlan0 up
ifconfig wlan0 192.168.0.109 netmask 255.255.255.0
route add default gw 192.168.0.1 wlan0
dhcpcd wlan0

the system hangs real bad, to the point where there will be 15 second delays before charecters appear that i typed.
if i enter all the commands by hand as sooon as the essid line is entered everything goes back to normal. Fairly new to all this but hope somebody has an idea. thanks guys

Last edited by zehas; 09-01-2004 at 01:09 PM.
 
Old 09-01-2004, 11:37 AM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
maybe better open a new thread , and put the Q. something like :

" dlink dwl650 network install "

this is not a ' rc.local prob. '

egag
 
Old 09-01-2004, 12:12 PM   #3
tank728
Member
 
Registered: Sep 2003
Posts: 142

Rep: Reputation: 17
Why do you have sleep 10, what does that do, I have never used it? Also you are been very redundant with trying to assign an ip address twice to wlan0. Choose how you have to assign you ip staticlly or dynamically (dhcpcd). I would recommend dhcp, but if you want it to be static for a server, then you need to add the broadcast option to you command, it should look like this:
Code:
ifconfig wlan0 192.168.1.109 netmast 255.255.255.0 broadcast 192.168.1.255
Also you do not have to set the mode, or channel. I am not on my laptop right now, so I can not double check this, but I believe you need to do ifconfig wlan0 up right after you load your ndiswrapper module. I know that you get an error when you type iwlist wlan0 scanning, when wlan0 is down. Try something like this:
Code:
/sbin/modprobe ndiswrapper
/sbin/ifconfig wlan0 up
/sbin/iwconfig wlan0 essid "linksys"
#/sbin/iwconfig wlan0 key <wep key goes here>
/sbin/dhcpcd wlan0
If you have wep enable, then you need to put in your wep key in the line I designated for you. Obviously /sbin/iwconfig wlan0 key <wep> is optional. Also check that you ssid on your router is linksys and not Linksys, remember Linux is case sensitive. Good Luck.

-tank
 
Old 09-01-2004, 02:05 PM   #4
zehas
LQ Newbie
 
Registered: Sep 2004
Location: oregon
Distribution: slackware 10
Posts: 2

Original Poster
Rep: Reputation: 0
tried those changes, worked once and on reboot went back to the hanging. only thing we can come up with is modprobe is crapping out with the dwl-650 xp driver.
 
Old 09-01-2004, 02:40 PM   #5
tank728
Member
 
Registered: Sep 2003
Posts: 142

Rep: Reputation: 17
I would try out a different driver for that card. I am assuming that you are using slack 10. In the extras directory there is a package for the linux-wlan-ng drivers for both 2.4.26 and 2.6.7 kernels. Maybe try the hostap drivers. Use the search feature and check the Wireless forum, for your card, and see if anyone else has had any success with that card, I am sure some has.

Also what does "sleep 10" do?

-tank
 
Old 09-01-2004, 02:49 PM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
sleep 10 waits 10 seconds, i assume it's just in case the driver takes some time to load
 
Old 09-01-2004, 04:16 PM   #7
tank728
Member
 
Registered: Sep 2003
Posts: 142

Rep: Reputation: 17
Thanks for the info, but I have another question. When /sbin/modprobe ndiswrapper gets executed shouldn't it finish loading, and then the next line get executed, therefore make sleep 10 uncalled for?

-tank
 
  


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
boot problems...rc.local uh-oh! ryan62580 Mandriva 5 03-11-2005 08:04 AM
Problems with apt-get and local repository.... Eux Debian 3 12-12-2004 04:04 PM
problems with /etc/rc.d/rc.local and ifconfig designguy79 Slackware 6 10-24-2004 01:37 PM
rc.local problems Johnsernickle Linux - General 4 07-14-2004 05:19 PM
rc.local problems WORST Fedora 3 05-14-2004 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:54 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration