Re: [Madwifi-users] mandrake 9.1 and dlink gdwl-520g
Status: Beta
Brought to you by:
otaku
From: silas b. <spi...@ho...> - 2003-09-10 18:46:33
|
Hi Jim, Again are you using WEP? If you are using WEP try to get it working with WEP Disabled first. I am not familiar with these Mandrake scripts (as I use Debian), does anyone else have insite to offer? But glancing them over it looks like you need to define the variables that are used in /etc/sysconfig/network-scripts/ifup-wireless: Uncomment the line and make changes aplicable to your network where ever you see **Your_Input_Here** in the script: Cheers, Silas =0) #!/bin/bash #/etc/sysconfig/network-scripts/ifup-wireless # Network Interface Configuration System # Copyright (c) 1996-2002 Red Hat, Inc. all rights reserved. # # Based on PCMCIA wireless script by (David Hinds/Jean Tourrilhes) # # This software may be freely redistributed under the terms of the GNU # public license. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # Configure wireless network device options. See iwconfig(8) for more info. # Valid variables: # MODE: Ad-Hoc, Managed, etc. MODE="Managed" # ESSID: Name of the wireless network ESSID="home214" # NWID: Name of this machine on the network. Hostname is default NWID=`hostname` # FREQ: Frequency to operate on. See CHANNEL #FREQ="**Your_Input_Here**" # CHANNEL: Numbered frequency to operate on. See FREQ #CHANNEL="**Your_Input_Here**" # SENS: Sensitivity threshold for packet rejection. #SENS="**Your_Input_Here**" # RATE: Transfer rate. Usually one of Auto, 11, 5, 2, or 1. RATE="auto" # KEY: Encryption key for WEP. # NOTE: Try to get it to work without wep first!!! #KEY="**Your_WEP_KEY" # RTS: Explicit RTS handshake. Usually not specified (auto) # FRAG: Fragmentation threshold to split packets. Usually not specified. # SPYIPS: List of IP addresses to "spy" on for link performance stats. # IWCONFIG: Extra parameters to pass directly to IWCONFIG # IWPRIV: Extra parameters to pass directly to IWPRIV # Only meant to be called from ifup. # Mode need to be first : some settings apply only in a specific mode ! if [ -n "$MODE" ] ; then iwconfig $DEVICE mode $MODE fi # This is a bit hackish, but should do the job right... if [ -n "$ESSID" -o -n "$MODE" ] ; then NICKNAME=`/bin/hostname` iwconfig $DEVICE nick "$NICKNAME" >/dev/null 2>&1 fi # Regular stuff... if [ -n "$NWID" ] ; then iwconfig $DEVICE nwid $NWID fi if [ -n "$FREQ" -a "$MODE" != "Managed" ] ; then iwconfig $DEVICE freq $FREQ elif [ -n "$CHANNEL" -a "$MODE" != "Managed" ] ; then iwconfig $DEVICE channel $CHANNEL fi if [ -n "$SENS" ] ; then iwconfig $DEVICE sens $SENS fi if [ -n "$RATE" ] ; then iwconfig $DEVICE rate $RATE fi if [ -n "$KEY" ] ; then iwconfig $DEVICE key $KEY else iwconfig $DEVICE key off fi if [ -n "$RTS" ] ; then iwconfig $DEVICE rts $RTS fi if [ -n "$FRAG" ] ; then iwconfig $DEVICE frag $FRAG fi # More specific parameters passed directly to IWCONFIG if [ -n "$IWCONFIG" ] ; then iwconfig $DEVICE $IWCONFIG fi if [ -n "$SPYIPS" ] ; then for IP in $SPYIPS; do iwspy $DEVICE + $IP done fi if [ -n "$IWPRIV" ] ; then iwpriv $DEVICE $IWPRIV fi # ESSID need to be last : most device re-perform the scanning/discovery # when this is set, and things like encryption keys are better be # defined if we want to discover the right set of APs/nodes. if [ -n "$ESSID" ] ; then iwconfig $DEVICE essid "$ESSID" else # use any essid iwconfig $DEVICE essid any fi >From: Jim Herman <jim...@ya...> >To: silas bennett <spi...@ho...> >Subject: Re: [Madwifi-users] mandrake 9.1 and dlink gdwl-520g >Date: Tue, 9 Sep 2003 17:07:55 -0700 (PDT) > >Silas, > >Thank you for your continued suggestions. There is no >etc/network/interfaces file in Mandrake, however, following an entry in the >mandrakeclub forum, I went to etc/sysconfig/network-scripts and worked on >the ifcfg-ath0 file and the ifup-wireless file. I'm still not there but >I'm attaching those files to see if you have suggestions as to how to >properly edit them to get me going. Thank you. > > > >/etc/sysconfig/network-scripts/ifup-wireless > >#!/bin/bash > ># Network Interface Configuration System > ># Copyright (c) 1996-2002 Red Hat, Inc. all rights reserved. > ># > ># Based on PCMCIA wireless script by (David Hinds/Jean Tourrilhes) > ># > ># This software may be freely redistributed under the terms of the GNU > ># public license. > ># > ># You should have received a copy of the GNU General Public License > ># along with this program; if not, write to the Free Software > ># Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. > ># > ># Configure wireless network device options. See iwconfig(8) for more info. > ># Valid variables: > ># MODE: Ad-Hoc, Managed, etc. > ># ESSID: Name of the wireless network > ># NWID: Name of this machine on the network. Hostname is default > ># FREQ: Frequency to operate on. See CHANNEL > ># CHANNEL: Numbered frequency to operate on. See FREQ > ># SENS: Sensitivity threshold for packet rejection. > ># RATE: Transfer rate. Usually one of Auto, 11, 5, 2, or 1. > ># KEY: Encryption key for WEP. > ># RTS: Explicit RTS handshake. Usually not specified (auto) > ># FRAG: Fragmentation threshold to split packets. Usually not specified. > ># SPYIPS: List of IP addresses to "spy" on for link performance stats. > ># IWCONFIG: Extra parameters to pass directly to IWCONFIG > ># IWPRIV: Extra parameters to pass directly to IWPRIV > ># Only meant to be called from ifup. > ># Mode need to be first : some settings apply only in a specific mode ! > >if [ -n "$MODE" ] ; then > >iwconfig $DEVICE mode $MODE > >fi > ># This is a bit hackish, but should do the job right... > >if [ -n "$ESSID" -o -n "$MODE" ] ; then > >NICKNAME=`/bin/hostname` > >iwconfig $DEVICE nick "$NICKNAME" >/dev/null 2>&1 > >fi > ># Regular stuff... > >if [ -n "$NWID" ] ; then > >iwconfig $DEVICE nwid $NWID > >fi > >if [ -n "$FREQ" -a "$MODE" != "Managed" ] ; then > >iwconfig $DEVICE freq $FREQ > >elif [ -n "$CHANNEL" -a "$MODE" != "Managed" ] ; then > >iwconfig $DEVICE channel $CHANNEL > >fi > >if [ -n "$SENS" ] ; then > >iwconfig $DEVICE sens $SENS > >fi > >if [ -n "$RATE" ] ; then > >iwconfig $DEVICE rate $RATE > >fi > >if [ -n "$KEY" ] ; then > >iwconfig $DEVICE key $KEY > >else > >iwconfig $DEVICE key off > >fi > >if [ -n "$RTS" ] ; then > >iwconfig $DEVICE rts $RTS > >fi > >if [ -n "$FRAG" ] ; then > >iwconfig $DEVICE frag $FRAG > >fi > ># More specific parameters passed directly to IWCONFIG > >if [ -n "$IWCONFIG" ] ; then > >iwconfig $DEVICE $IWCONFIG > >fi > >if [ -n "$SPYIPS" ] ; then > >for IP in $SPYIPS; do > >iwspy $DEVICE + $IP > >done > >fi > >if [ -n "$IWPRIV" ] ; then > >iwpriv $DEVICE $IWPRIV > >fi > ># ESSID need to be last : most device re-perform the scanning/discovery > ># when this is set, and things like encryption keys are better be > ># defined if we want to discover the right set of APs/nodes. > >if [ -n "$ESSID" ] ; then > >iwconfig $DEVICE essid "$ESSID" > >else > ># use any essid > >iwconfig $DEVICE essid any > >fi > > > >/etc/sysconfig/network-scripts/ifcfg-ath0 > >DEVICE="ath0" > >IPADDR="" > >NETMASK="255.255.255.0" > >ONBOOT="yes" > >BOOTPROTO="dhcp" > >WIRELESS_MODE="Managed" > >WIRELESS_ESSID="home214" > >MII_NOT_SUPPORTED="yes" > >NEEDHOSTNAME="yes" > >IPXNETNUM_802_2="" > >IPXPRIMARY_802_2="no" > >IPXACTIVE_802_2="no" > >IPXNETNUM_802_3="" > >IPXPRIMARY_802_3="no" > >IPXACTIVE_802_3="no" > >IPXNETNUM_ETHERII="" > >IPXPRIMARY_ETHERII="no" > >IPXACTIVE_ETHERII="no" > >IPXNETNUM_SNAP="" > >IPXPRIMARY_SNAP="no" > >IPXACTIVE_SNAP="no" > >silas bennett <spi...@ho...> wrote: >Hi Jim, > >It looks like you are assosiating with your acess point, but your >configuration is botched up. There are several things that I noticed that >could be a problem in your configuration. First of all you are not >configuring your card with a WEP key, is your AP using WEP? If your AP has >WEP enabled and your card does not then that would cause you problems. Also >you have your card set in master mode, that mode is used if you are trying >to make your card act as an AP for other wireless clients. If you don't >want >your card as an AP use mode "managed" instead. I noticed that you were >using >"iwconfig ath0 essid" incorrectly. you need to do it like this: > >iwconfig ath0 essid "Your_Essid_Here" > >Here is how I configure my card. If your system has a >/etc/network/interfaces script (I am not that familiar with mandrake) try >doing the configuration in the /etc/network/interfaces script. Here is a >sample of my script below. > >##################### ># /etc/network/interfaces # >##################### > ># /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) > ># The loopback interface ># automatically added when upgrading > >auto lo >iface lo inet loopback > >auto eth0 >iface eth0 inet dhcp > >auto ath0 >iface ath0 inet dhcp >wireless_essid foobar # Note my fake ssid has no quotation marks (my >real one doesn't either) >wireless_channel 1 >wireless_key xxxx-xxxx-xx #put your WEP Key entered in HEX here >wireless_ap 00:02:2D:2A:63:E1 # Replace this with the Mac address of >your AP >wireless_rate 11M auto # My work only has a 802.11b AP > >############## ># End Script # >############## > >Cheers, >Silas > >=0) > > > > >--------------------------------- >Do you Yahoo!? >Yahoo! SiteBuilder - Free, easy-to-use web site design software _________________________________________________________________ Get a FREE computer virus scan online from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 |