LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-01-2006, 11:12 PM   #1
stellamarie
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
multiple wep keys


I've configured my wireless nic to work on both my home and work networks, but i have to manually edit the keys-eth1 file every time. I've done an extensive search, and I can't find the right syntax to enable more than one key at a time. I know the nic supports that.

wireless tools 28
ibm t30
cisco aironet 350b
centos 4.3 (red hat variant)

my keys-eth1 looks like this:

KEY=xxxxxxxxxx
#KEY=xxxxxxxxxx

Is there a way to automatically switch between networks and wep keys without having to manually do it? I want this just to boot up, find my wireless network, obtain a dhcp address, and work. Or am i asking for things to be a little too easy?

Stella
 
Old 06-02-2006, 08:19 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,524
Blog Entries: 51

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
The "default" way would be to add all info to /etc/sysconfig/network-scripts/ifcfg-$devicename (unless using wpa_supplicant or similar helper app with own config), but if you look /etc/sysconfig/network-scripts/ifup-wireless it does use variable KEY from /etc/sysconfig/network-scripts/ifcfg-$devicename, but AFAIK only one. We know iwconfig can set multiple keys, so I guess you could source a custom script in (the "start" section of) /etc/rc.d/init.d/network?
 
Old 06-03-2006, 11:13 AM   #3
stellamarie
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Original Poster
Rep: Reputation: 0
thanks

thanks. i'll look into turning KEY into an array maybe.
although i was trying to avoid playing around with custom scripting, sigghhhh.
 
  


Reply

Tags
centos, wep, wireless


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
maping keys of multiple keyboards dupontct Linux - General 1 10-20-2005 01:41 PM
Rotating WEP keys. Jerrac Linux - Wireless Networking 2 08-16-2005 12:57 PM
can fedora handle ascii strings for wep keys? ehawk Linux - Wireless Networking 1 10-13-2004 06:34 PM
Using GPG Keys on Multiple Computers General_Tso Linux - Security 5 10-06-2004 10:37 AM
Enabling WEP keys with iwconfig on RH8? NLawrence Linux - Wireless Networking 9 02-26-2004 08:59 PM


All times are GMT -5. The time now is 05:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration