Privacy and Security Notice

RedHat Linux Wireless Configuration Guide

Assumptions:

Notes:

INSTRUCTIONS:

To begin, make sure you have a WEP Key.  You can obtain that at the WEP Registration Page.  

You will need to modify the ifcfg script that controls this device.  As an example, my ifcfg file looks similar to this.  Yours may be different based on which device name and number you use.  This could be eth0 or wlan0 or jwlan0.  The name really does not matter.  It is also recommended that users use dhcp for the BOOTPROTO.  Using these two commands to get to and to display the file.  Make sure you create the new ifcfg-ethX or ifcfg-wlanX or ifcfg-jwlanX file in "/etc/sysconfig/network-scripts/"  directory

#  cd /etc/sysconfig/network-scripts/
#  more ifcfg-eth1
DEVICE=eth1
BOOTPROTO=dhcp
ONBOOT=yes
ESSID="jlab"
KEY="s:XXXXXXXXXXXXX"
USERCTL=yes
#
*Note that the all XXX...'s will be the key you obtain from the registration page.  the "s" and the "colon" are literal.  
*Note that I included USERCTL=yes so I do not have to be root or sudo the command ifup eth1 or ifdown eth1.  Being a laptop it isn't very important if users have this control.

If all is well you can insert the card into the machine if needed.  To check your settings you could use this command.

#  iwconfig
lo        no wireless extensions.

eth1    IEEE 802.11-DS  ESSID="jlab""  Nickname:"iowa"
          Mode:Managed  Frequency:2.437GHz  Access Point: 00:E0:63:81:CC:34
          Bit Rate:5.5Mb/s   Tx-Power=15 dBm   Sensitivity:1/3
          RTS thr:off   Fragment thr:off
          Encryption key:xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xx
          Power Management:off
          Link Quality:25/92  Signal level:-68 dBm  Noise level:-93 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

#  ifconfig -a
eth0   Link encap:Ethernet  HWaddr 00:08:74:4A:3D:89
         BROADCAST MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:4 errors:0 dropped:0 overruns:0 carrier:4
         collisions:0 txqueuelen:100
         RX bytes:0 (0.0 b)  TX bytes:1830 (1.7 Kb)
         Interrupt:11 Base address:0xec80

eth1   Link encap:Ethernet  HWaddr 00:01:F4:EE:AA:66
         inet addr:129.57.43.247  Bcast:129.57.43.255  Mask:255.255.252.0
         UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:378 errors:0 dropped:0 overruns:0 frame:0
         TX packets:75 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:100
         RX bytes:50468 (49.2 Kb)  TX bytes:8622 (8.4 Kb)
         Interrupt:3 Base address:0x100

lo      Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:32 errors:0 dropped:0 overruns:0 frame:0
         TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:2098 (2.0 Kb)  TX bytes:2098 (2.0 Kb)

#

*Note I have a built in wired port as well which uses eth0

The two important things that you should see are the ESSID portion filled in with jlab and the Encryption key part filled in when you did the iwconfig command.

You can now try and start the network interface. This can usually be done by issuing this command.

# ifup eth1

When you do the "ifconfig -a" part if you see an IP address (inet addr:) in your adapters config, in this case eth1 AND this is the first time you have used this card on the network with DHCP you should open a web browser and attempt to go to a web site, it should redirect you to https://netreg.jlab.org.  If it doesn't that means you have already registered your card before or you are using static DNS settings.  In any case, you should register your card quickly or your connection will be banned from using DHCP services until you contact the Computer Center Help Desk at 269-7155.

Troubleshooting Information

You were once able to use the network resources, but now you are unable.

If you were able to access network resources such as email and web pages when you first completed this tutorial but are now unable to user any network resources, check your settings to make sure you have an IP Address for your connection by using this command "/sbin/ifconfig -a"  If you do not see an address for your wireless cards interface number, but had one before, and you are SURE you are in a wireless covered area most likely you will need to get your card unblocked by the DHCP server because you failed to register your card when you first brought it online. Contact the helpdesk at 7155 to have your card removed from the ignore list. 

You followed all the steps but you are still unable to communicate wirelessly.


First you will need to make sure you are in an area covered by wireless, this includes the wings of CEBAF Center, all of the Testlab's highbay area, parts of the ARC including the 6th floor, and almost all of the Counting House including the second floor.  If you are certain you are in the wireless coverage area, you can execute the iwconfig command with the required parameters directly by issuing the following command. The X's represent the WEP key.
# iwconfig eth1 essid jlab key s:XXXXXXXXXXXXX
Now you can issue the following command and you should see the essid and the key set. You should also see a Hexadecimal address asocciated with the access point.

#  iwconfig
...
eth1    IEEE 802.11-DS  ESSID="jlab""  Nickname:"iowa"
          Mode:Managed  Frequency:2.437GHz  Access Point: 00:E0:63:81:CC:34
          Bit Rate:5.5Mb/s   Tx-Power=15 dBm   Sensitivity:1/3
          RTS thr:off   Fragment thr:off
          Encryption key:xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xx
          Power Management:off
          Link Quality:25/92  Signal level:-68 dBm  Noise level:-93 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
...
#


You may know try and start the interface by issuing the ifup command

# ifup eth1

Please be sure to REGISTER your network card at this point by opening a browser to https:// netreg.jlab.org.



This document is maintained by {helpdesk@jlab.org}

Copyright Jefferson Lab 2007