Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iwconfig "key" doesn't work in /etc/conf.d/net
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
Tonikk
n00b
n00b


Joined: 01 Dec 2007
Posts: 2

PostPosted: Sat Dec 01, 2007 5:17 pm    Post subject: iwconfig "key" doesn't work in /etc/conf.d/net Reply with quote

Trying to setup wireless I've met the following problem.
I'm using D-Link DWL-G630 PCMCIA card, and RaLink rt61 driver for it.
ra0 interface is configured and working fine.
ESSID is hidden so I need to specify it.

In /etc/conf.d/net I have the following:

Code:
config_ra0=( "192.168.1.51/24" )
routes_ra0=( "default via 192.168.1.1" )
dns_servers_ra0=( "x.x.x.x" )
essid_ra0="MyWirelessNet"
key_MyWirelessNet="1122334455"


When I'm trying to start net automatically, through /etc/init.d/net.ra0 start it almost starts, but ping to gateway doesn't work. iwconfig shows:

Code:
ra0       RT61 Wireless  ESSID:"MyWirelessNet"  Nickname:""
          Mode:Managed  Frequency:2.442 GHz  Access Point: xx:xx:xx:xx:xx:xx   
          Bit Rate=54 Mb/s   
          RTS thr:off   Fragment thr:off
          Encryption key:off


key is not set.

I can do it manually after that by command:
iwconfig ra0 key 1122334455

after that all is fine, and ping is working. But this doesn't work in rc script.

I tried also "key_ra0="1122334455", iwconfig_ra0="key 1122334455", but the result is the same.

Any ideas?
Back to top
View user's profile Send private message
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Sat Dec 01, 2007 6:42 pm    Post subject: Reply with quote

Code:
key_AAEandN="C8B5-B126-77B7-BE2B-5691-F65D-5D enc open"

is mine for WEP
_________________
join the optout - http://nhsconfidentiality.org
Back to top
View user's profile Send private message
Tonikk
n00b
n00b


Joined: 01 Dec 2007
Posts: 2

PostPosted: Sat Dec 01, 2007 6:59 pm    Post subject: Reply with quote

Just the same.
Code:
iwconfig ra0 key 1122334455 enc open
works from command line, but
Code:
key_MyWirelessNet="1122334455 enc open"
doesn't work in /etc/conf.d/net

I made it work by putting
Code:
iwconfig ra0 key 1122334455 enc open
in /etc/conf.d/local.start, but I'd like to make correct /etc/conf.d/net
Back to top
View user's profile Send private message
mjf55
Guru
Guru


Joined: 25 Aug 2007
Posts: 372

PostPosted: Sun Dec 02, 2007 8:39 am    Post subject: Reply with quote

My thoughts on this are:
You appear to be specifying a 40 bit HEX key 64 bit encryption). Is this what you intend. Most current routers use 104 bits (128 bit encryption).
Make sure you are using a HEX key in the router.
Any error messages, on console or in the logs?
Why not use wpa_supplicant?
_________________
Mark
No longer a n00b, but still a 'Kool Kid' wannabe
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