View previous topic :: View next topic |
Author |
Message |
Tonikk n00b

Joined: 01 Dec 2007 Posts: 2
|
Posted: Sat Dec 01, 2007 5:17 pm Post subject: iwconfig "key" doesn't work in /etc/conf.d/net |
|
|
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 |
|
 |
thecooptoo Veteran

Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Sat Dec 01, 2007 6:42 pm Post subject: |
|
|
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 |
|
 |
Tonikk n00b

Joined: 01 Dec 2007 Posts: 2
|
Posted: Sat Dec 01, 2007 6:59 pm Post subject: |
|
|
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 |
|
 |
mjf55 Guru


Joined: 25 Aug 2007 Posts: 372
|
Posted: Sun Dec 02, 2007 8:39 am Post subject: |
|
|
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 |
|
 |
|