You are not logged in.

#1 2010-04-10 18:48:25

MetaBrain
Member
Registered: 2010-04-10
Posts: 2

Cannot connect to the internet using wireless, but dhcpcd passes...

Thanks for reading this in advance smile

So, I'm trying Arch Linux (going from XP/Ubuntu) on my desktop since all my friends at the university have been migrating to Arch, and even I loved the concept, and even installed it on a VirtualBox without problems.

Problem is I don't have a network card in my desktop, only a wireless one. So I NEED to get this one working. Ubuntu 9.04 delivered support for this card (SMC EZ-Connect USB 2.0 blabla, I'll save you on the details) so I tried Arch and after a LOT of googling and help from a friend, I managed to build a pkg to install the wireless firmware that was lacking to the p54usb module, and finally my wireless card was detected and appeared in ifconfig/iwconfig big_smile

However, after doing all the steps in the Arch Linux Begginer's Guide for configuring wireless, when I get to the last step (after using "dhcpcd wlan0" to acquire the IP from my wireless router, with sucess) that involves pinging just to test the connection, it fails. Unknown host. I've tryed almost everything and don't know the problem...

I'll post some of the details here from the commands I've used.


ifconfig wlan0

wlan0     Link encap:Ethernet  HWaddr 00:04:E2:DE:C4:ED  
          inet addr:192.168.0.13  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:229 errors:0 dropped:0 overruns:0 frame:0
          TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:47510 (46.3 Kb)  TX bytes:2160 (2.1 Kb)

iwconfig wlan0

wlan0     IEEE 802.11bg  ESSID:"ZON-B5D2"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:24:8C:B1:BB:5B   
          Bit Rate=1 Mb/s   Tx-Power=27 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr:off
          Encryption key:8888-8888-8888-8888-8888-8888-E5   Security mode:open
          Power Management:off
          Link Quality=45/70  Signal level=-65 dBm  Noise level=-93 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

ping -I -c 3 www.google.com (or any other derivate of this command)

blablabla unknow host www.google.com after a long while

iwlist wlan0 | grep "ESSID"

all the networks in my range according to my laptop running Vista/Ubuntu 9.10, so fine here :)

dhcpcd wlan0

connects to my router, everything is fine and I get the 192.168.0.13 atributed to my for 3600 seconds, and the program forks to the background. All fine I think?

ping 192.168.0.13 (the IP my desktop is using from dhcpcd)

PING 192.168.0.13 (192.168.0.13) 56(84) bytes of data.
64 bytes from 192.168.0.13: icmp_seq=1 ttl=64 time=0.066 ms
64 bytes from 192.168.0.13: icmp_seq=2 ttl=64 time=0.053 ms
64 bytes from 192.168.0.13: icmp_seq=3 ttl=64 time=0.024 ms
(...)

ping 192.168.0.1 (my router IP according to dhcpcd)

PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
From 192.168.0.13 icmp_seq=2 Destination Host Unreachable
From 192.168.0.13 icmp_seq=3 Destination Host Unreachable
From 192.168.0.13 icmp_seq=4 Destination Host Unreachable
From 192.168.0.13 icmp_seq=6 Destination Host Unreachable
From 192.168.0.13 icmp_seq=7 Destination Host Unreachable
From 192.168.0.13 icmp_seq=8 Destination Host Unreachable

--- 192.168.0.1 ping statistics ---
8 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6999ms
, pipe 3

Now I noticed that while starting, when Arch is at "initializing network components" or w/e, I get a short DHCP timedout thing...
I have this in /etc/rc.conf

LOCALE="en_US.utf8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="Europe/Lisbon"
KEYMAP="pt-latin9"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

HOSTNAME="metabrain"

INTERFACES=(wlan0)
wlan0="dhcp"

gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

DAEMONS=(syslog-ng network netfs crond)

I'm posting this from the same machine, running Ubuntu 9.04 and I have wireless here (and way stronger signal than in my Windows XP partition tongue)
Thanks for your time big_smile

Last edited by MetaBrain (2010-04-10 18:51:14)

Offline

#2 2010-04-12 06:12:32

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,690

Re: Cannot connect to the internet using wireless, but dhcpcd passes...

It may be redundant to your rc.conf file, but could you post the output of 'route'  ??


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2010-04-12 19:06:58

MetaBrain
Member
Registered: 2010-04-10
Posts: 2

Re: Cannot connect to the internet using wireless, but dhcpcd passes...

ewaller wrote:

It may be redundant to your rc.conf file, but could you post the output of 'route'  ??

Kernel IP routing table
Destination         Gateway            Genmask        Flags       Metric         Ref           Use         Iface
192.168.0.0        *                       255.255.255.0    U           305           0               0           wlan0
(this last line took a while to print. the kernel hang here for more than 20 secs... relevant?)
default               192.168.0.1        0.0.0.0               UG        305           0               0            wlan0

I've checked everything, dunno what I'm doing wrong sad

Offline

#4 2010-04-13 01:36:07

nitroguy
Member
Registered: 2009-10-16
Posts: 16

Re: Cannot connect to the internet using wireless, but dhcpcd passes...

Nmap your whole subnet.  The router may not be responding to ping (bug or configured).  Also your router could be returning bad values.

quick scan:
nmap -T4 -F 192.168.0.0/24

Offline

Board footer

Powered by FluxBB