Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

"iwconfig essid" disables WEP key

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
alevmi
n00b
n00b
Posts: 8
Joined: Sat Nov 03, 2007 10:07 am

"iwconfig essid" disables WEP key

  • Quote

Post by alevmi » Sat Nov 03, 2007 10:24 am

Hi, fiolks,
I'm really stuck setting up wireless.
Look...

Code: Select all

iwconfig wlan0 essid HOMEWIFI key <my key goes here>
works just fine!
Then I set up /etc/conf.d/net

Code: Select all

essid_wlan0=( "HOMEWIFI" )
key_HOMEWIFI=( "<my key goes here>" )
Wireless fails to start. The problem is in the way network startup scripts work.
I've found out that they call

Code: Select all

iwconfig wlan0 key <my key goes here>
first and then

Code: Select all

iwconfig wlan0 essid HOMEWIFI
Setting up ESSID turns WEP key off and hence no connection to access point.
Please help in setting up /etc/conf.d/net correctly
Regards,
Alexander
Top
thecooptoo
Veteran
Veteran
Posts: 1353
Joined: Sun Apr 27, 2003 1:04 pm
Location: UK

  • Quote

Post by thecooptoo » Sat Nov 03, 2007 8:39 pm

I dont understand the options for setting keys ,but mine looks like this in /etc/conf.d/net
key_wlanhome="1AF1-C013-592B-AD53-EF82-9B7C-BA enc open"
join the optout - http://nhsconfidentiality.org
Top
alevmi
n00b
n00b
Posts: 8
Joined: Sat Nov 03, 2007 10:07 am

  • Quote

Post by alevmi » Sat Nov 03, 2007 8:51 pm

The problem is not in incorrect key setting, but in the way Gentoo network init scripts work together with iwconfig.
Scipts set WEP key first and then call iwconfig wlan0 essid HOMEWIFI, which turns WEP key off in the interface.
As a result, WEP key is not enabled when interface goes up and wi-fi doesn't work.
I can't understand which is the best way to handle this, except for not using baselayout network scipts at all.
Top
alevmi
n00b
n00b
Posts: 8
Joined: Sat Nov 03, 2007 10:07 am

  • Quote

Post by alevmi » Sat Nov 03, 2007 9:53 pm

My further investigations show that wlan0 starts to work only after I run

Code: Select all

iwconfig wlan0 key on
regardless of what wireless program I use for net.wlan0 start - iwconfig or wpa_supplicant.
Can it be an ndiswrapper problem?
Top
Post Reply

4 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic