WEP configuration for DWL520 in Linux
Hi
I am using a DWL520 wireless card on my RedHat Linux machine to connect to the wlan provided by my apt. They have given me an SSID and a WEP key. I downloaded the prism2_pci driver from linux-wlan.org and built/installed it. I don't know how to configure the /etc/wlan/wlancfg-SSID file to pick up the WEP key. please help. Further, the help file says that I should use >ifconfig wlan0 <ip addr> netmask <> broadcast <> How do I set this to use DHCP and automatically pick up the IP.. thanks, krishna |
just edit the /etc/wlan/wlancfg-SSID file like the following if you have 128bit WEP, then do a /etc/init.d/network restart
#=======WEP=========================================== # [Dis/En]able WEP. Settings only matter if PrivacyInvoked is true lnxreq_hostWEPEncrypt=true # true|false lnxreq_hostWEPDecrypt=true # true|false dot11PrivacyInvoked=true # true|false dot11WEPDefaultKeyID=0 # 0|1|2|3 dot11ExcludeUnencrypted=true # true|false, in AP this means WEP is required. # If PRIV_GENSTR is not empty, use PRIV_GENTSTR to generate # keys (just a convenience) PRIV_GENERATOR=/sbin/nwepgen # nwepgen, Neesus compatible PRIV_KEY128=true # keylength to generate PRIV_GENSTR="" # or set them explicitly. Set genstr or keys, not both. dot11WEPDefaultKey0=****** YOUR WEP KEY HERE ********* # format: xx:xx:xx:xx:xx or dot11WEPDefaultKey1= # xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx dot11WEPDefaultKey2= # e.g. 01:20:03:40:05 or dot11WEPDefaultKey3= # 01:02:03:04:05:06:07:08:09:0a:0b:0c:0d #=======SELECT STATION MODE=================== IS_ADHOC=n # y|n, y - adhoc, n - infrastructure #======= INFRASTRUCTURE STATION =================== # What kind of authentication? AuthType="sharedkey" # opensystem | sharedkey (requires WEP) #======= ADHOC STATION ============================ BCNINT=100 # Beacon interval (in Kus) CHANNEL=6 # DS channel for BSS (1-14, depends # on regulatory domain) BASICRATES="2 4" # Rates for mgmt&ctl frames (in 500Kb/s) OPRATES="2 4 11 22" # Supported rates in BSS (in 500Kb/s) |
Thanks a lot Ray..
I found out that my wireless LAN has a 64-bit encryption and they have give me a 10 character hex key for it.. should i change PRIV_KEY128=true to PRIV_KEY64=true and enter the key dot11WEPDefaultKey1= AA:BB:CC:DD:EE i will try the above mentioned steps and see. thanks again for the help.. krishna |
All times are GMT -5. The time now is 03:32 AM. |