Linux - Wireless NetworkingThis 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.
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.
I'm trying to get my D-Link DWL-510 wireless network card working in red hat 9.0. After some searching I found a topic on this site explaining how it can be done by using ndiswrapper. Unfortunaly I'm not getting past step 1: installing ndiswrapper.
Since I never installed something before ( yes I'm a noob ) in red hat I don't have any idea what I'm doing wrong.
I logged in as root, opened the terminal window and try to enter the commands as in the manual.
[root@Roel root]# cd ndiswrapper-0.9
[root@Roel ndiswrapper-0.9]# make install
make -C driver install
make[1]: Binnengaan van map '/root/ndiswrapper-0.9/driver'
cc -DDRV_VERSION=\""0.9"\" -DLINUX -D__KERNELL__ -DMODULE -I/lib/modules/2.4.20-8/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -02 -c -o wrapper.o wrapper.c
/bin/sh: line 1: cc: command not found
make[1]: ***[wrapper.o] Fout 127
make[1] weggaan uit map '/root/ndiswrapper-0.9/drivers'
make: *** [install] Fout 2
"binnengaan van map" means entering directory and "weggaan uit map" means leaving directory, "fout" means error.
I thought it didn't look like ndiswrapper was doing strange so I tried typing the "make" command without anything behind it and then I got some stuff including this line:
"You don't seem to have sources for your kernel; install them in /usr/src, link /lib/modules/2.4.20-8/build to it and try again"
that's just greek to me but I remembered the ndiswrapper quickstart guide saying "make sure there is a link to the source from the modules directory: '/lib/modules/<version>/build' should be a link to the kernel source"
I went to that map and the build directory was there so what does al this mean? Will this problem be solved when I reinstall red hat (using the default everywhere) or not and what can I do about this now?
I added the packages I needed and now I got ndiswrapper to install, thanks arno
I got an error saying he couldnt find netdlwl.sys so I got back to windows searched and copied the file and pasted it in red hat next to the netdlwl.inf file, no errors this time.
modprobe ndiswrapper
now my keyboard starts acting strange but i managed to type in the other commands
when i typed iwconfig wlan0 i got a summary but it looks like i didn't manage to connect to the acces point, it sais nothing about a channel and the AP sais 00.00.00.00 etc mode is still on auto
I disabled wep and changed essid to default on my AP, now I managed to connect to the AP (I think I did because when I typed iwconfig wlan0 it showed the correct settings and my keyboard responded normally again).
Then I entered:
ndiswrapper -m
and got a line saying :
adding "alias wlan0 ndiswrapper" to /etc/modules.conf
what am I supposed to do now? everything went well but the card isn't showing up in red hats network device controll or network configuration and when I typ:
in the map
/etc/sysconfig/network-scripts
there must be the script
ifcfg-wlan0
and this if your AP functions as a dhcp server
DEVICE=wlan0
ONBOOT=yes
BOOTPROTO=dhcp # change this to static to specify an IP addr
IPADDR=192.168.0.11
GATEWAY=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
GATEWAYDEV=wlan0 # this is for setting default route
TYPE=Ethernet
USERCTL=yes
PEERDNS=yes # this lets DHCP define the DNS setup
That worked, not a single error or warning this time. I got connected to my AP but still no internet.
I can ping to my wireless card but not to the router, there is a connection made because I can see that in the router logs but the ping just returns a "host unreachable".
When red hat starts up I get a big red "FAILED" after red hat trys to enable the wlan0 and sais something like ndiswrapper network card wlan0 isn't there.
What can possibly go wrong? Maybe I'll just have to buy one of those wireless ethernet bridges to connect to my normal-not-wireless NIC.
hi,
I use ndiswrapper with RH9 and wlan0 fails on boot too - after booting I have to do (as root):
modprobe -r ndiswrapper
modprobe ndiswrapper
I don't know if this will help, worked for me!
also you can use redhat-config-network graphical utility to edit/create wlan0, but only after ndiswrapper is setup & automated with 'ndiswrapper -m'.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.