View previous topic :: View next topic |
Author |
Message |
krazyazme n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Jul 2004 Posts: 2
|
Posted: Sun Jul 18, 2004 10:03 pm Post subject: Wireless wep key help |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
tomek32 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 30 May 2004 Posts: 139
|
Posted: Mon Jul 19, 2004 2:01 am Post subject: |
|
|
I have mine set in Code: | /etc/pcmcia/wireless.opts | , but I think it depends on what wireless drivers your using. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
chrisashton84 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/3808764844009d4690e677.gif)
Joined: 12 Aug 2003 Posts: 192 Location: Peoria, IL (home) Urbana, IL (school)
|
Posted: Mon Jul 19, 2004 4:33 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
UberLord Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/16007251014200867ea775c.gif)
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Mon Jul 19, 2004 10:28 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
krazyazme n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Jul 2004 Posts: 2
|
Posted: Tue Jul 20, 2004 2:08 am Post subject: |
|
|
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 | 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 |
|
![](templates/gentoo/images/spacer.gif) |
chrisashton84 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/3808764844009d4690e677.gif)
Joined: 12 Aug 2003 Posts: 192 Location: Peoria, IL (home) Urbana, IL (school)
|
Posted: Tue Jul 20, 2004 4:41 am Post subject: |
|
|
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 | 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 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 |
|
![](templates/gentoo/images/spacer.gif) |
UberLord Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/16007251014200867ea775c.gif)
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|