LinuxAnswers - the LQ Linux tutorial section.
Go Back > Linux Answers > Networking
User Name


By coindood at 2004-04-07 21:01
Ok, guys, since my webspace provider is taking its sweet time getting back up, I'll just post my scripts. I'll get the HOWTO up when my site's back up.

These instructions were done on multiple Debian distrobutions, but should work with little modification on RedHat/Fedora installations. Also, these instructions were done with the SuSE drivers. They are hard to find, so download them from They have worked for me and most of the other successful users in this thread. The zip file also contains all of the files needed to get it running (ifcfg-wlan0, resolv.conf, wlanup/down, Makefile, etc.) so all you need to do is change the ip addresses and copy them to their respective locations. Just don't forget to read all of this beforehand!

First make sure your kernel is 2.4.21 or below. No special revisions needed.

#Load module
/sbin/insmod -f rtl8180_24x.o

iwpriv wlan0 wlan_para networktype=infra
iwpriv wlan0 wlan_para ssid2scan=default

iwpriv wlan0 wlan_para wepmode=off

iwpriv wlan0 msglevel 1

#Enable wireless lan driver
/sbin/iwpriv wlan0 enable

#Configure wlan0 IP address within router bounds
#since my router's address is, it is 
#any between - ...168
/sbin/ifconfig wlan0
echo "$(/sbin/ifconfig wlan0)"

#change this ip address to the router address
route add default gw
If you use route, you need a /etc/resolv.conf file:
#the Xs stand for the gateway your router goes through
#you can find it in the router stats when you log into it

nameserver XXX.XXX.XXX.XXX
Last you need an /etc/sysconfig/network-scripts/ifcfg-wlan0 file:
#change the gateway ip to the address of the router
Copy these files to their respective locations, modify the Makefiles to
match your kernel, then type make, and if all is well, type "sh wlanup".
you should see:
Warning: loading rtl8180_24x.o will taint the kernel: forced load
See for information about tainted modules
Module rtl8180_24x loaded, with warnings
wlan0     Link encap:Ethernet  HWaddr 00:40:F4:93:4A:38
          inet addr:  Bcast:  Mask:
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:10 Base address:0xd800
Don't worry about the warning (it's because the priv_part.o file is compiled against another kernel). Type in dmesg, and if all is well again, then the last lines should look like this:
RTL8180: Select a BSS and Join it at channel 6.
RTL8180: ----------------------------------------------------------
RTL8180: wlan0 Link status:
RTL8180:    Channel number = 6
RTL8180:    beacon period = 100
RTL8180:    BSSID = 0x00:0x0d:0x88:0x9f:0xd1:0xd3
RTL8180:    SSID = default
RTL8180:    Capability = 0x21
RTL8180:    AID = 0x01
RTL8180:    Operational rate = 0x0F <bit 0~3 = 1~11 Mbps>
RTL8180: ----------------------------------------------------------
If you see that, you are connected!

Email me at if you get anywhere!

by uveraser on Fri, 2004-07-16 04:54
What if my kernel is newer than 2.4.21?
I have 2.4.22 and will probably be upgrading to a 2.6 soon. (I am running Slackware)

by robertwatts_new on Tue, 2005-03-01 12:09
how do you compile a program

i am a complete newbie and do not know what to do.




All times are GMT -5. The time now is 11:09 AM.

Main Menu

Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration