Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wireless wep key help
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
krazyazme
n00b
n00b


Joined: 18 Jul 2004
Posts: 2

PostPosted: Sun Jul 18, 2004 10:03 pm    Post subject: Wireless wep key help Reply with quote

I am trying to setup the wireless script to auto load my wep key when I boot but not matter what I set the key as I can't get it to load up. If I issue the command I need manually it will work fine. What I need it to do is
Code:
iwconfig eth0 ssid BLAH key 2222-2222-2222-2222-22 enc on
how do I put that in the wireless file under /etc/conf.d/wireless ?
Back to top
View user's profile Send private message
tomek32
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2004
Posts: 139

PostPosted: Mon Jul 19, 2004 2:01 am    Post subject: Reply with quote

I have mine set in
Code:
/etc/pcmcia/wireless.opts
, but I think it depends on what wireless drivers your using.
Back to top
View user's profile Send private message
chrisashton84
Apprentice
Apprentice


Joined: 12 Aug 2003
Posts: 192
Location: Peoria, IL (home) Urbana, IL (school)

PostPosted: Mon Jul 19, 2004 4:33 am    Post subject: Reply with quote

you should set up /etc/conf.d/wireless... it's the equivalent to /etc/conf.d/net

if you emerge the wireless tools it should be created... then it's just editing it to fit your setup, not too hard. after that you're able to add it to start up automatically if you'd like.

your /etc/conf.d/wireless would look like this:

Code:

essid_eth0="BLAH"
key_BLAH="2222-2222-2222-2222-22"
preferred_aps=( "BLAH" )


of course you can add other options to that, the settings are well documented.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Jul 19, 2004 10:28 am    Post subject: Reply with quote

chrisashton84 wrote:

your /etc/conf.d/wireless would look like this:

Code:

essid_eth0="BLAH"
key_BLAH="2222-2222-2222-2222-22"
preferred_aps=( "BLAH" )


of course you can add other options to that, the settings are well documented.


Can't be that well documented - I'm sure I stated near the top that essid_eth0="BLAH" should only be used in a last resort as the preferred_aps setting should handle everything correctly .......
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
krazyazme
n00b
n00b


Joined: 18 Jul 2004
Posts: 2

PostPosted: Tue Jul 20, 2004 2:08 am    Post subject: Reply with quote

Well i have it set but it wont take the key unless I go to the console and issue the command
Code:
 iwconfig eth0 essid BLAH key 2222-2222-2222-2222-22 enc on
:cry: Can I just erase the contents from the wireless file under /etc/conf.d/wireless and put in
essid=BLAH
key=2222-2222-2222-22 enc on
Will this make it connect?
Or do I have to tell it the AP to connect to?
Back to top
View user's profile Send private message
chrisashton84
Apprentice
Apprentice


Joined: 12 Aug 2003
Posts: 192
Location: Peoria, IL (home) Urbana, IL (school)

PostPosted: Tue Jul 20, 2004 4:41 am    Post subject: Reply with quote

krazyazme wrote:
Well i have it set but it wont take the key unless I go to the console and issue the command
Code:
 iwconfig eth0 essid BLAH key 2222-2222-2222-2222-22 enc on
:cry: Can I just erase the contents from the wireless file under /etc/conf.d/wireless and put in
essid=BLAH
key=2222-2222-2222-22 enc on
Will this make it connect?
Or do I have to tell it the AP to connect to?


After you have your wireless file setup, you just need to add your device to /etc/conf.d/net

Code:
ifconfig_eth0=( "dhcp" )


Now, when you
Code:
/etc/init.d/net.eth0 start


it should start your wireless connection, and you can add that to your bootup if you want,

Code:
rc-update add net.eth0 default


UberLord wrote:
chrisashton84 wrote:

your /etc/conf.d/wireless would look like this:

Code:

essid_eth0="BLAH"
key_BLAH="2222-2222-2222-2222-22"
preferred_aps=( "BLAH" )


of course you can add other options to that, the settings are well documented.


Can't be that well documented - I'm sure I stated near the top that essid_eth0="BLAH" should only be used in a last resort as the preferred_aps setting should handle everything correctly .......


So it does :P However, I only want to be scanning for my network right now so that's how mine's setup. I guess the preferred_aps might be redundant X_x I've got a question for you, seeing as you wrote the wireless setup you might have an answer. When I get down to school in the fall they require a VPN client for all wireless access, with a login and all. Is there a way to set this up in the wireless config? Or will I have to run the client manually every time I need to connect to their network?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Jul 20, 2004 10:21 am    Post subject: Reply with quote

There's a post on page 37 (give or take a page or two) that details how to launch custom stuff after associating with a given ESSID

For example, it's possible to run VPN off ESSID "school" and not do any VPN off ESSID "home"
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum