-   Linux - Wireless Networking (
-   -   multiple wep keys (

stellamarie 06-01-2006 11:12 PM

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:


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?


unSpawn 06-02-2006 08:19 PM

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?

stellamarie 06-03-2006 11:13 AM

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

All times are GMT -5. The time now is 01:22 AM.