You are not logged in.

#1 2009-12-12 01:59:57

Deuterium
Member
Registered: 2009-09-26
Posts: 50

[SOLVED] connecting to wireless AP, but ping doesnt work..?

hey guys,

I've had a quick look through the forum and on the web but i cant quite find what im after.  I've been following this wiki (http://wiki.archlinux.org/index.php/Wireless_Setup) for my Intel network card requiring the ipw2200 firmware.  i have progressed quite far, and i have brought up my wireless eth1 interface, and the command

iwlist eth1 scan

returns my WEP encrypted wireless network smile

I then tried to connect with

iwconfig eth1 essid "my wireless network" key s:1234567890

and it returns without failing.  I then test to see if the command

iwconfig

works, and i see that eth1 is associated to "my wireless network" so all looked pretty good.  The problem occurs when i try to ping using eth1 (I'm working at the CLI by the way).

ping -I eth1 www.google.com

that ping command fails, and no packets are returned, so im posting here to see if anyone knows whats wrong?
I think im soo close, and its probably something very easy that i'm missing.  So if someone could share their advice that would be very helpful thanks!

Last edited by Deuterium (2009-12-12 09:22:08)

Offline

#2 2009-12-12 02:33:31

Deuterium
Member
Registered: 2009-09-26
Posts: 50

Re: [SOLVED] connecting to wireless AP, but ping doesnt work..?

Update:

I looked at the beginners guide Wiki, and i saw that i should possibly be requesting an IP.

dhcpcd eth1

when i do this, the daemon starts, and it says "eth1: broadcasting for a lease" and then it times out.  Hopefully that might help indicate where the error lies.

Offline

#3 2009-12-12 02:42:07

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: [SOLVED] connecting to wireless AP, but ping doesnt work..?

Deuterium wrote:

Update:

I looked at the beginners guide Wiki, and i saw that i should possibly be requesting an IP.

dhcpcd eth1

when i do this, the daemon starts, and it says "eth1: broadcasting for a lease" and then it times out.  Hopefully that might help indicate where the error lies.

I've never seen eth1 represent a wireless adapter.
Try sudo dhcpcd eth1
Also, sudo dhclient eth1

Offline

#4 2009-12-12 02:52:17

Deuterium
Member
Registered: 2009-09-26
Posts: 50

Re: [SOLVED] connecting to wireless AP, but ping doesnt work..?

sorry, forgot to mention i am running all those commands as root.  also, i think the reason it is eth1 is because i followed the wiki article telling me to do this:

rmmod ipw2200
modprobe ipw2200 rtap_iface=1

and im pretty sure the modprobe line made the eth1 interface.  If you know how to change it to wlan0 or similar, then please tell me smile by the way i have an ethernet cable plugged into the laptop, so eth0 is working (wired connection though).

Edit:
i dont have the dhclient command (should i get it? if so, what package is it in?).  but #dhcpcd eth1 fails with time out.

Last edited by Deuterium (2009-12-12 02:54:10)

Offline

#5 2009-12-12 03:27:07

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: [SOLVED] connecting to wireless AP, but ping doesnt work..?

try
rmmod ipw2200
modprobe ipw2200

I have a feeling you don't need the radio tap interface (sounds like monitor mode to me).

Offline

#6 2009-12-12 03:42:24

hexanol
Member
From: Canaduh
Registered: 2009-08-04
Posts: 95

Re: [SOLVED] connecting to wireless AP, but ping doesnt work..?

You don't need to install dhclient, dhcpcd is also a DHCP client and is part of the base package group.

Also, WEP offers no real security as of 2009 (it stopped being secure several years ago in fact, starting around 2001). If you don't want other people to access your wireless network, you will want to take a look at WPA2, if your AP supports it.

If you still have problem with your DHCP client, post the output of iwconfig eth1 (or whatever the name of your wireless interface) and ifconfig eth1.

Offline

#7 2009-12-12 04:07:16

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: [SOLVED] connecting to wireless AP, but ping doesnt work..?

hexanol wrote:

You don't need to install dhclient, dhcpcd is also a DHCP client and is part of the base package group.

Also, WEP offers no real security as of 2009 (it stopped being secure several years ago in fact, starting around 2001). If you don't want other people to access your wireless network, you will want to take a look at WPA2, if your AP supports it.

If you still have problem with your DHCP client, post the output of iwconfig eth1 (or whatever the name of your wireless interface) and ifconfig eth1.

dhcpcd has some issues where dhclient doesn't

I agree that wep is too weak nowadays, although having something is better then nothing.

Offline

#8 2009-12-12 04:11:01

Deuterium
Member
Registered: 2009-09-26
Posts: 50

Re: [SOLVED] connecting to wireless AP, but ping doesnt work..?

tomd123 wrote:

try
rmmod ipw2200
modprobe ipw2200

I have a feeling you don't need the radio tap interface (sounds like monitor mode to me).

well i did those commands right before doing

rmmod ipw2200
modprobe ipw2200 rtap_iface=1

but i did it anyway, and it made it worse off!  it now has no eth1 interface (only loopback and eth0) and the modprobe ipw2200 command fails with the 'modules.dep' file not found error... so im not sure how to get back to where i was sad

also, yes i know WEP is terrible encryption, but if im correct it can only be hacked/cracked from people in the WLAN range, not from outside, so there's hardly anyone going to drive up my street going to break into my  network.  (and my neighbours wouldnt know how)

Offline

#9 2009-12-12 06:21:07

Deuterium
Member
Registered: 2009-09-26
Posts: 50

Re: [SOLVED] connecting to wireless AP, but ping doesnt work..?

okay, basicly i got it back to how it was before.  just having associated, dhcpcd timing out, and ping returning 'host unreachable' when using eth1 wireless interface.

Also, when i type iwconfig, the 'Security mode' is set to 'open' for my network, however i have WEP encryption, is this okay? i would have thought it should say WEP/WPA/WPA2 etc?

Offline

#10 2009-12-12 08:36:40

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

Re: [SOLVED] connecting to wireless AP, but ping doesnt work..?

Try setting a static IP, instead of using dhcp.

Offline

#11 2009-12-12 09:21:42

Deuterium
Member
Registered: 2009-09-26
Posts: 50

Re: [SOLVED] connecting to wireless AP, but ping doesnt work..?

oh oh oh! i got it big_smile i am such an idiot... i wrote iwconfig eth1 essid "my network" key s:1234567890 instead of iwconfig eth1 essid "my network" key 1234567890 .... so silly! sorry for the hassle!

Offline

Board footer

Powered by FluxBB