You are not logged in.

#1 2008-11-21 23:44:01

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

can't connect to my wireless router

I'm trying to get my wireless connected in base system so I can do the system updates and such. I have a 4965 card, and I've installed iwlwifi-4965-ucode version 4.44.1.20-1

Following the beginner's guide:

#iwconfig
#ifconfig wlan0 up
#iwlist wlan0 scan | less
#iwconfig wlan0 essid MyEssid key **********
#dhcpcp wlan0

But dhcpcd just tells me that dhcpcd is already running on pid 2938.

my iwconfig gives the details of wlan0 like the essid and the frequency correctly, but says "Access Point: Not-Associated", and Link Quality, Signal Level, etc are all 0.

Here's the important parts of my rc.conf

#eth0="eth0 192.168.0.2 ..... blah blah blah"
#eth0="dhcp"
wlan0="dhcp"
#INTERFACES=(eth0)
INTERFACES=(wlan0)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

Everytime it boots up and loads Network, it takes a long time, then says "wlan0 time out", so something is wrong there. I also need it to connect to a wired connection when I plug in one. Though currently the computer is wireless only.

So, what seems to be the problem?

Last edited by zephyrus17 (2008-11-21 23:45:35)

Offline

#2 2008-11-22 00:08:59

Sjoden
Member
From: WA
Registered: 2007-08-16
Posts: 380
Website

Re: can't connect to my wireless router

I suggest using netcfg. Iphitus has put a lot of work into it, and it is great for managing both wired and wireless interfaces.

pacman -S netcfg

Put the 'profile' or config in /etc/network.d/

For instance, my wired profile, /etc/network.d/wired-dhcp

CONNECTION="ethernet"
DESCRIPTION="Ethernet 0, using dhcp"
INTERFACE=eth0
IP="dhcp"
DHCP_TIMEOUT=10

My wireless home network with WPA, /etc/network.d/pongo

CONNECTION="wireless"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wpa"
ESSID="mynetwork"
KEY="SomePasskey"
IP="dhcp"
TIMEOUT=20

To start one, just type

netcfg profilename

To disconect from a profile

netcfg -d profile

Then just connect to a new one like above.

You can set it up to connect on boot like a dhcp connection, or even give you a menu to choose from different profiles to connects.

Last edited by Sjoden (2008-11-22 00:11:07)

Offline

#3 2008-11-22 00:15:13

Sjoden
Member
From: WA
Registered: 2007-08-16
Posts: 380
Website

Re: can't connect to my wireless router

Ok, so I guess I didn't read your post enough.:rolleyes:

It looks like you are trying to set it up with WEP. I couldn't get WEP to connect reliably, then after an update, I don't remember which, WEP just stopped working. You can try using wpa_supplicant, which I think is on the base isntall, at least 2008.06. I would suggest getting netcfg on there, either by wired internet( just eth0="dhcp" in rc.conf), or burning to a disk or thumb drive. Hope that helps.


Zack

Last edited by Sjoden (2008-11-22 00:16:01)

Offline

#4 2008-11-22 04:44:08

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: can't connect to my wireless router

How do I get netcfg from the installation CD?

And how do you use wpa_supplicant?

Offline

#5 2008-11-22 04:56:56

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: can't connect to my wireless router

If dhcpcd is already running (perhaps from a previous connection attempt) then you can force it to quit using "dhcpcd -x" as root.

What message do you get when you run dhcpcd after all the ifconfig/iwconfig commands?  Can you post it here?

Offline

#6 2008-11-22 11:07:33

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: can't connect to my wireless router

dhcpcd is not the problem, and it's also irrelevant until you can achieve wireless association. You don't say above if you get a response to iwlist scan - if you do, try associating again, and check your logs for messages. If it still fails, disable WEP temporarily and try again.

Offline

#7 2008-11-22 15:10:11

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: can't connect to my wireless router

Yeap. I've disabled my WEP and put on a MAC filter instead, which I think is much more effective.

Now, Network boots up without a timeout now. But the wireless light still won't light up. I have to do a "#ifconfig wlan0 up" just to get it to light up, but it still doesn't connect. How do I get it to light up automatically on boot?

"iwconfig wlan0 scan | less" gives me all the routers in the area, I can confirm that with my XP partition's wireless. and when I run "iwconfig" it gives the information of the one I want to connect to. But "ping -c 2 www.google.com" still gives an unknown host.

And now running "dhcpcp wlan0" gives command not found.. sad

Last edited by zephyrus17 (2008-11-22 15:15:01)

Offline

#8 2008-11-22 15:22:31

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: can't connect to my wireless router

You know, I'm still not clear whether you are associating correctly or not. Does iwconfig show the BSSID of your access point, and the link quality, signal level, and noise level as something other than 0? Can you see "wlan0: associated" in your logs?

If you have all the above, then you have a dns issue - ping 209.85.171.99 to confirm this, and then sort out your /etc/resolv.conf.

Offline

#9 2008-11-23 01:10:34

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: can't connect to my wireless router

I've got it to work. It was rather random, to be honest. Anyway, how do I get it to be automated in the base system? Like the "ipconfig wlan0 up" followed by the "iwconfig wlan0 essid MyEssid" followed by "dhcpcd wlan0"?

Offline

#10 2008-11-23 03:08:21

arew264
Member
From: Friendswood, Texas, US
Registered: 2006-07-01
Posts: 394
Website

Re: can't connect to my wireless router

This is where netcfg is quite handy, it does just that.
If you don't want netcfg, you can put the raw commands in /etc/rc.sysinit
Or you can just use something like NetworkManager (which I use because I'm constantly switching between networks).

Offline

#11 2008-11-23 04:58:44

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: can't connect to my wireless router

What about wicd? Is there a KDE native wireless application?

Offline

#12 2008-11-23 11:47:27

robmaloy
Member
From: Germany
Registered: 2008-05-14
Posts: 263

Re: can't connect to my wireless router

zephyrus17 wrote:

Yeap. I've disabled my WEP and put on a MAC filter instead, which I think is much more effective.

they are both not.

WEP takes some minutes
MAC filter 5 seconds (receive a packet from an allowed MAC and changing your NICs mac adress, tada!)


☃ Snowman ☃

Offline

#13 2008-11-23 12:07:38

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: can't connect to my wireless router

arew264 wrote:

If you don't want netcfg, you can put the raw commands in /etc/rc.sysinit.

If you need to run commands at boot-time, use /etc/rc.local - /etc/rc.sysinit is a system file that will be overwritten with the next package upgrade.

Offline

#14 2008-11-23 13:50:43

FreakGuard
Member
Registered: 2008-04-27
Posts: 103

Re: can't connect to my wireless router

robmaloy wrote:
zephyrus17 wrote:

Yeap. I've disabled my WEP and put on a MAC filter instead, which I think is much more effective.

they are both not.

WEP takes some minutes
MAC filter 5 seconds (receive a packet from an allowed MAC and changing your NICs mac adress, tada!)

Use WPA2, as WPA takes 15-30min wink

Offline

#15 2008-11-23 17:24:54

arew264
Member
From: Friendswood, Texas, US
Registered: 2006-07-01
Posts: 394
Website

Re: can't connect to my wireless router

tomk wrote:
arew264 wrote:

If you don't want netcfg, you can put the raw commands in /etc/rc.sysinit.

If you need to run commands at boot-time, use /etc/rc.local - /etc/rc.sysinit is a system file that will be overwritten with the next package upgrade.

Sorry, I should have said rc.local.

FreakGuard wrote:

Use WPA2, as WPA takes 15-30min wink

Only if you use a key that can be found in a dictionary attack. If you use a non-dictionary key with WPA, you're pretty much invincible.

Last edited by arew264 (2008-11-23 17:25:42)

Offline

Board footer

Powered by FluxBB