Difference between revisions of "Wireless Networking"


From Knoppix Documentation Wiki
Jump to: navigation, search
(first framework of new article)
(Netgear WG111)
Line 19: Line 19:
 
==== Netgear WG111 ====
 
==== Netgear WG111 ====
  
This is a stup for the Netgear WG111, to be replaced with information by bobeltomate
+
<b>Configuring the WG111 to use WPA-PSK on a wireless network</b>
 +
 
 +
 
 +
*'''wpa_supplicant.conf
 +
Note: the bold lines were added in the editing steps for my Linksys WRT54G Router to accept the card.  See the Useful Links at the end for a full explanation of all options that can be put in here.
 +
'''ctrl_interface=/home/knoppix/wpa_supplicant
 +
'''eapol_version=1
 +
'''ap_scan=1
 +
network={
 +
ssid="MySSIDHere"
 +
'''scan_ssid=1
 +
#psk="MyPassphraseHere"
 +
psk=''hex representation of the passphrase
 +
'''proto=WPA
 +
'''key_mgmt=WPA-PSK
 +
'''pairwise=TKIP
 +
'''group=TKIP
 +
}
 +
 
 +
 
 +
 
 +
*'''Commands:
 +
Assuming that the drivers are on the cd in /dev/cdrom, then
 +
mount /dev/cdrom/ /mnt/cdrom/
 +
 
 +
Find '''ndiswrapper configuration''' under Knoppix->Network/Internet and select '''netwg111.inf''' from '''/mnt/cdrom'''.  After that finishes, create the configuration file that you will need shortly using the following command:
 +
wpa_passphrase MySSIDHere MyPassphraseHere > /home/knoppix/wpa_supplicant.conf
 +
Now, use your favorite text editor (if you don't have one, try Kate under the menu item '''Editors''') and edit the
 +
'''/home/knoppix/wpa_supplicant.conf''' you just created.
 +
 
 +
With that completed, run the following command. '''Warning:''' As it is, the command will monopolize your current command window with potentially useful debugging output, including your encryption key; add '''-B''' if you would rather run it in the background (useful when you know it works already), remove '''-K''' to hide your key.
 +
sudo wpa_supplicant -ddKt -i wlan0 -c /home/knoppix/wpa_supplicant.conf -Dndiswrapper
 +
 
 +
The following grabs an IP address if you use DHCP from your router.
 +
sudo pump -i wlan0
 +
 
 +
And finally, tell Knoppix where to go to find the internet.
 +
sudo route add default gw ''<Gateway/Router IP address here>''
 +
 
 +
*'''Useful Links:
 +
 
 +
[http://www.knoppix.net/forum/viewtopic.php?t=12351 Wireless card success story (where I located the ''pump'' command)]
 +
 
 +
[http://hostap.epitest.fi/cgi-bin/viewcvs.cgi/*checkout*/hostap/wpa_supplicant/wpa_supplicant.conf?rev=HEAD&content-type=text/plain Example wpa_supplicant.conf with full explanations and various configurations]
 +
 
 +
 
 +
-bobeltomate

Revision as of 22:05, 5 September 2005

Wireless Networking Overview

This is a stub for a section on wireless networking, to be added soon.

Linux Wireless Network Issues

This is a stub for this section, to be added shortly

Wireless Networking Security Issues

This is a stub for this section, to be added shortly

General Information On Wireless Card Setup Under Knoppix

This is a stub for this section, to be added shortly

The below sections are specific information on specific make and models of Wireless Networking Adapters and information we currently have on if they are supported in Knoppix or not:

Netgear WG111

Configuring the WG111 to use WPA-PSK on a wireless network


  • wpa_supplicant.conf

Note: the bold lines were added in the editing steps for my Linksys WRT54G Router to accept the card. See the Useful Links at the end for a full explanation of all options that can be put in here.

ctrl_interface=/home/knoppix/wpa_supplicant
eapol_version=1
ap_scan=1
network={
ssid="MySSIDHere"
scan_ssid=1
#psk="MyPassphraseHere"
psk=hex representation of the passphrase
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
}


  • Commands:

Assuming that the drivers are on the cd in /dev/cdrom, then

mount /dev/cdrom/ /mnt/cdrom/

Find ndiswrapper configuration under Knoppix->Network/Internet and select netwg111.inf from /mnt/cdrom. After that finishes, create the configuration file that you will need shortly using the following command:

wpa_passphrase MySSIDHere MyPassphraseHere > /home/knoppix/wpa_supplicant.conf 

Now, use your favorite text editor (if you don't have one, try Kate under the menu item Editors) and edit the /home/knoppix/wpa_supplicant.conf you just created.

With that completed, run the following command. Warning: As it is, the command will monopolize your current command window with potentially useful debugging output, including your encryption key; add -B if you would rather run it in the background (useful when you know it works already), remove -K to hide your key.

sudo wpa_supplicant -ddKt -i wlan0 -c /home/knoppix/wpa_supplicant.conf -Dndiswrapper

The following grabs an IP address if you use DHCP from your router.

sudo pump -i wlan0

And finally, tell Knoppix where to go to find the internet.

sudo route add default gw <Gateway/Router IP address here> 
  • Useful Links:

Wireless card success story (where I located the pump command)

Example wpa_supplicant.conf with full explanations and various configurations


-bobeltomate