# # Original File # ------------- # http://www.Linux-Sec.net/Wireless/Install-HOWTO/Drivers/NDISwrapper/ndiswrapper.txt # # http://www.Linux-Sec.net/Wireless/Install-HOWTO/wl.install.sh - install script # http://www.Linux-Sec.net/Wireless/Install-HOWTO/wl.config.LinkSys.WMP54G - config file # # # Use NDISwrapper to use the windoze drivers for the LinkSys WMP54G pci card # # # 13-May-04 amo Get the Lastest NDISwrapper-0.7 # 14-Aug-05 amo Get ndiswrapper-1.2.tar.gz # # # Get the ndiswrapper Latest Drivers # ---------------------------------- # http://ndiswrapper.sourceforge.net/ # http://sourceforge.net/projects/ndiswrapper/ # # # # ndiswrapper install # http://ndiswrapper.sourceforge.net/wiki/index.php?Installation # # # supported cards # http://ndiswrapper.sourceforge.net/wiki/index.php/List # # # http://sourceforge.net/projects/ndiswrapper/ # ndwrapper-0.7.tar.gz ( 24-Apr-2004 ) # # http://easynews.dl.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-1.2.tar.gz # # cd /usr/local/src/ # # # cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/ndiswrapper co ndiswrapper # mv ndiswrapper ndiswrapper-year.mmdd # tar zxpvf ndiswrapper-0.7.tar.gz # cd ndiswrapper-0.7 # make # make install # mv /sbin/loadndisdriver /sbin/loadndisdriver-0.7 # mv /usr/sbin/ndiswrapper /usr/sbin/ndiswrapper-0.7 # # # ==================================================================== # == From the older Wireless/Drivers/BroadCom/bcom_linux_install1.txt # ==================================================================== # # # # # from ndiswrapper-0.4 from old broadcom package # # # # See if we can see the broadcom chipset # # --------------------------------------- # # lspci # # 00:08.0 Network controller: Broadcom Corporation: Unknown device 4320 (rev 03) # # # # -- or -- # # # # lspci -n | grep 'Class 0280:' | awk '{print $4}' # # This should produce output such as '14e4:4320'. ( VendorID:DeviceID ) # # # # ndiswrapper /usr/sbin/loadndisdriver 14e4 4320 \ # # /lib/windrivers/bcmwl5.sys /lib/windrivers/bcmwl5.inf # # # # modprobe ndiswrapper # # Calling putdriver ioctl # # Parsing the inf file. # # Calling startdriver ioctl # # # # # Remove Old drivers and Modules # ============================== ndiswrapper-0.7 -e bcmwl5 rmmod ndiswrapper rm -rf /etc/ndiswrapper # # # Status of Drivers # ----------------- ndiswrapper-0.7 -l ; lsmod # # # Install the Drivers # ==================== # # driver from broadcom package # # ndiswrapper-0.7 -i /lib/windrivers/bcmwl5.inf # Installing bcmwl5 # # # Load the Windows Drivers from the LinkSys CDROM # ----------------------------------------------- # ndiswrapper-0.7 -i /usr/local/src/LinkSys.WMP54G/bcmwl5.inf # Installing bcmwl5 # # it creates /etc/ndiswrapper # ---------------------------- # # # Check that the Driver is Loaded # =============================== # ndiswrapper-0.7 -l # Installed ndis drivers: # bcmwl5 present <<--- present is IMPORTANT # # # Install the Modules # --------------------- # insmod ndiswrapper-0.7/driver/ndiswrapper.o # # # modprobe ndiswrapper # This will configure wlan0 interface # wlan0: ndiswrapper ethernet device xx:xx:xx:xx:xx:xx # # lsmod # # check for ndiswrapper to be listed # ndiswrapper 53068 0 # # # If no errors, Check for log messages # -------------------------------------- dmesg # # ndiswrapper version 0.4 loaded --> broadcom version # PCI: Found IRQ 10 for device 00:08.0 # PCI: Sharing IRQ 10 with 00:10.1 # wlan0: ndiswrapper ethernet device 00:0c:41:5f:f9:cf # # # ndiswrapper version 0.7 loaded --> latest sourceforge version # ndiswrapper version 0.7 loaded # ndiswrapper adding bcmwl5.sys # PCI: Found IRQ 5 for device 00:09.0 # PCI: Sharing IRQ 5 with 00:10.2 # PCI: Sharing IRQ 5 with 00:11.5 # wlan0: ndiswrapper ethernet device 00:0c:41:5f:f9:cf using driver bcmwl5.sys # # # Assign a Wireless IP# and Gateway # ================================= # ifconfig wlan0 192.168.1.11 broadcast 192.168.1.255 netmask 255.255.255.0 up # # # # See that the wireless interface is created # ------------------------------------------- # ifconfig -v # # wlan0 Link encap:Ethernet HWaddr 00:0C:41:5F:F9:CF # inet addr:192.168.1.11 Bcast:192.168.1.255 Mask:255.255.255.0 # UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 # RX packets:0 errors:0 dropped:0 overruns:0 frame:0 # TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 # collisions:0 txqueuelen:1000 # RX bytes:0 (0.0 b) TX bytes:252 (252.0 b) # Interrupt:5 Memory:ee000000-ee001fff # # # Check the Wireless Default Options # ---------------------------------- iwconfig # wlan0 IEEE 802.11g ESSID:"" # Mode:Managed Frequency:2.412GHz Access Point: FF:FF:FF:FF:FF:FF # Bit Rate=54Mb/s Tx-Power:25 dBm # RTS thr=2347 B Fragment thr=2346 B # Encryption key:off # Power Management:off # Link Quality:100/100 Signal level:-10 dBm Noise level:-256 dBm # Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 # Tx excessive retries:0 Invalid misc:48995 Missed beacon:0 # # # # To get out thru your Access point # ---------------------------------- # iwconfig wlan0 mode Managed # # if this wireless card IS the access point iwconfig wlan0 mode Master # # # If you want to use the "INSECURE and CRACKED" WEP keys # ------------------------------------------------------- iwconfig wlan0 key restricted XXXXXXXX # # 6 hex digits for 40-bit encryption # 10 hex digits for 128-bit encryption # # - you might need "open" instead of "restricted" # # # Set the "insecure" ESSID # ------------------------- iwconfig wlan0 essid ESSID # essid is letters and numbers ( no spaces ) # # # # Remove the Wireless Default network 192.168.1.0 # ------------------------------------------------- route del -net 192.168.1.0 gw 0.0.0.0 netmask 255.255.255.0 # # # Assign the Gateway to get out to the outside world # -------------------------------------------------- route add -host 192.168.1.11 netmask 0.0.0.0 gw 192.168.1.11 route add -host 192.168.1.12 netmask 0.0.0.0 gw 192.168.1.11 # # # # Check the routing table # ----------------------- # route -nv # Kernel IP routing table # Destination Gateway Genmask Flags Metric Ref Use Iface # 192.168.1.11 192.168.1.11 255.255.255.255 UGH 0 0 0 wlan0 # 192.168.1.12 192.168.1.11 255.255.255.255 UGH 0 0 0 wlan0 # 1.2.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 # 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo # 0.0.0.0 1.2.3.13 0.0.0.0 UG 1 0 0 eth0 # # - see that 192.168.1.11 has gw=192.168.1.11 on wlan0 # - see that 192.168.1.12 has gw=192.168.1.11 on wlan0 # - no other wireless ip# is allowed # - use a firewall to enforce wireless traffic # # # More Fun Tests # -------------- # Try to ping yourself # Try to ping your access point # Try to ping your wired gateway to the internet # Try to ping the machines on the internet # Try your browser # Try your emails # # # Automated Script to Install the drivers for LinkSys WMP54G # ---------------------------------------------------------- # wl.install # wl.config.LinkSys.WMP54G # # # End of file