# # Original File # ------------- # http://www.Linux-Wireless.org/Install-HOWTO/WL/BASIC.Install.sh.txt # # # Wireless-HOWTO - Basic Sequence of Commands # ------------------------------------------- # - change the wlan0 to your wireless drivers interface name # - change to your ip# # # # 16-May-04 amo Added Comments # 04-Jun-04 amo Moved to Linux-Wireless.org # # # QUESTION: # ========# # Do we Set the interface before defining the wireless options -- or -- # ifconfig ath0 # route ... # iwconfig xxx # iwconfig yyy # # Do we set the wireless opptions than define the interface and routes # iwconfig xxx # iwconfig yyy # ifconfig ath0 .. # route ... # # -------------------------------- # To Make Wireless Options Changes # -------------------------------- # ifconfig atho down # iwconfig .... # ifconfig atho up # route ... # # # ---------------------------------------------------------------- # # # ============================================ # Use ath0 for Netgear WG311 w/ madwifi driver # ============================================ # # ifconfig wlan0 192.168.0.1 sleep 3 # # ifconfig -v | grep ^wlan0 # # If you do NOT have the wlan0 interface defined ... # - go back and find the linux driver that supports your wireless card # # # Now Configure some basic wireless options # ----------------------------------------- # iwconfig wlan0 essid myessid iwconfig wlan0 channel 4 # # # If you are a Access Point for the wireless network # -------------------------- iwconfig wlan0 mode Master # # # If you are a wireless client # ---------------------------- # iwconfig wlan0 mode Mananged # # # # Add default routes # ----------------------------------------------------------- # route add 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1. # # Route only specific wireless clients route add -host 192.168.1.12 netmask 0.0.0.0 gw 192.168.1.1 # # # # Review what the config looks lik# # iwconfig wlan0 # # route -nv - to se your routing table # # ping yourself ping your wireless-ap # # # See ALL the various wireless access point # ========================================= # ( scanning seems to work only in managed mode, NOT as Master ) iwlist ath0 scan # show everybody # # iwlist ath0 ap # list only those with the same ESSID # # # # ==================== # # # # Turn on WEP Keys # # # ==================== # http://www.Linux-Wireless.org/Install-HOWTO/WL/WEP-Key-HOWTO.txt # # # define a 64-bit key ( 10 hex char ) # iwconfig ath0 key 0123-4567-89ab # # # define a 128-bit key ( 26 hex char ) # # iwconfig ath0 key 0123-4567-89ab-cdef-0123-4567-89 # # # see that its set # iwlist ath0 key # # # turn the key off # iwlist ath0 key off # # # # With basic firewall w/ ipchains # ------------------- # http://www.goonda.org/wireless/prism2/ # # echo "1" > /proc/sys/net/ipv4/ip_forward # # ipchains -M -S 7200 10 160 # ipchains -P forward DENY # ipchains -A forward -i eth0 -s 192.168.3.0/24 -j MASQ # # # Debugging # =============== # dmesg # find /proc -name ath0 -ls # # # End of file