You are not logged in.

#1 2011-05-12 15:46:26

ithil
Member
Registered: 2011-01-06
Posts: 11

Cannot connect to router

I'm having trouble connecting to my friends router heres some info. The router is a netgear rangemax WPN824v3

This is the script i am using.  I know the password is correct (fyi its not password just didn't want to post actual password =o).

#!/bin/bash
rm /var/run/dhcpcd-wlan0.pid
ifconfig wlan0 up
iwconfig wlan0 essid NETGEAR key password
ifconfig wlan0 down
ifconfig wlan0 up
dhcpcd wlan0

Heres what happens when i try to connect.

rm: cannot remove `/var/run/dhcpcd-wlan0.pid': No such file or directory
dhcpcd[5717]: version 5.2.12 starting
dhcpcd[5717]: wlan0: waiting for carrier
dhcpcd[5717]: timed out

I log into the router via another computer and heres what the logs say.

[WLAN access rejected: incorrect security] from MAC address 00:25:56:0b:b8:52, Thursday, May 12,2011 07:26:44

I've always used this script to connect to other routers and it works 100% of the time. the encryption is WPA-PSK [TKIP] I don't if that calls for a script change or not. I spent the last two hours on google and the forums and could not find anything (unless i'm blind smile ). Any help is appriciated thank you.

Offline

#2 2011-05-12 16:44:25

twilight0
Member
From: Greece
Registered: 2011-05-01
Posts: 233
Website

Re: Cannot connect to router

network daemon does not support passphrases yet so probably if your friend's router is unsecured there is no need to type the password command.

Look iwconfig's manpage for further details (man iwconfig)


Proud Arch Linux user since 2007.

Offline

#3 2011-05-12 16:45:53

twilight0
Member
From: Greece
Registered: 2011-05-01
Posts: 233
Website

Re: Cannot connect to router

Or better use wicd-cli for convenience.


Proud Arch Linux user since 2007.

Offline

#4 2011-05-15 17:09:22

ithil
Member
Registered: 2011-01-06
Posts: 11

Re: Cannot connect to router

Thank you for the help, but wicd-cli and curses were just to bug riddled. After spending the last few days working with them i'll just live with mobile internet for the week. Once again thanks smile

Offline

#5 2011-05-16 04:06:26

sironitomas
Member
From: Cordoba, Argentina
Registered: 2009-11-28
Posts: 174
Website

Re: Cannot connect to router

Use netcfg. It is way better and easier.

Check the wiki page: https://wiki.archlinux.org/index.php/Netcfg

Offline

Board footer

Powered by FluxBB