You are not logged in.

#1 2011-01-25 17:55:22

Haunter
Member
Registered: 2010-08-19
Posts: 10

dhcpcd not working

Ok, so I had arch previously installed on a different laptop, I had some problems with setting up wireless but none quite like this. So I followed all of the instructions on the different wiki pages for wireless, installed the drivers etc. I setup my network in rc.conf, this is the networking part of my rc.conf:

wlan0="dhcp"
wlan_wlan0="wlan0 essid JIFL4 key 18:01:75:C5:CB"
INTERFACES=(wlan0)
gateway="default gw 192.168.1.1"
ROUTES=(default gw 192.168.1.1)

So when I run dhcpcd wlan0 I get dhcpcd:timed out. I ran it in verbose mode as-well, and nothing seemed out of place, after sending DHCP_DISCOVER three times, it times out. I've tried other "solutions" over the last couple days but I really don't remember all of them. I am not used to forums, so sorry if I am using the wrong etiquette.

EDIT: I am able to ping the router instead of it saying network unreachable, but when I ping it it says Host Destination Unreachable, I do not have any firewalls so I am really not sure what would be causing this.

Last edited by Haunter (2011-01-26 01:24:11)

Offline

#2 2011-01-26 02:59:50

andrewthomas
Member
Registered: 2010-05-08
Posts: 52

Re: dhcpcd not working

You really need to be more specific about what you have tried and what instructions you have been following. 

As far as I know, when using dhcp you usually do not want to specify the gateway and route. 

You should probably use NetworkManager if you can.

https://wiki.archlinux.org/index.php/Wi … management

Read this and post back with any questions that you have.


If this helped you, please take the time to rate the value of this post:
http://rate.affero.net/andrewthomas/

Offline

#3 2011-01-26 20:58:49

Haunter
Member
Registered: 2010-08-19
Posts: 10

Re: dhcpcd not working

I would try a network manager, but I don't have internet, so I can't get one. I guess I'll list the steps I've tried:
Installed Drivers,
https://wiki.archlinux.org/index.php/Be … nvironment
I did all of the steps up to dhcpcd wlan0, when I did it it tells me dhcpcd:timed out.
After that, I tried to figure out the problem, My rc.conf is correct according to the wiki.
The only thing I found that was troubling was when doing route -n, the gateway came up as 0.0.0.0
And when I ping my router which is at 192.168.1.1 I get destination host unreachable.

Offline

#4 2011-01-26 23:06:06

andrewthomas
Member
Registered: 2010-05-08
Posts: 52

Re: dhcpcd not working

https://wiki.archlinux.org/index.php/Beginners%27_Guide#NETWORKING_Section wrote:

Example w/ Dynamic IP (DHCP):

HOSTNAME="arch"
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(eth0)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

From the Beginners Guide wiki that you posted the link to.
So for you this would be

wlan0="dhcp"
INTERFACES=(wlan0)
gateway="default gw 192.168.1.1" #which you could omit because the next command ignores it
ROUTES=(!gateway)

Now if you could post the output of

# iwconfig

and

# ifconfig wlan0 up

If this helped you, please take the time to rate the value of this post:
http://rate.affero.net/andrewthomas/

Offline

#5 2011-01-27 03:26:42

whatshisname
Member
Registered: 2010-04-24
Posts: 163

Re: dhcpcd not working

1) What's in your DAEMONS array in rc.conf?  Is "networkmanager" there?  If so, remove it.

2) Have you tried "dhclient" instead of "dhcpcd"?

I lost my ability to connect to wireless networks a couple of months ago, had the same errors you're having now, and pulled my hair out trying to solve it.  I finally reinstalled Arch and while reconfiguring my new install I figured out networkmanager had been my problem all along.

https://bbs.archlinux.org/viewtopic.php?id=107609

Maybe it's not the most elegant solution but I scrapped networkmanager and connect the old-fashioned way by calling a "connect" script in rc.local:

For you it would be something like:


#!/bin/bash

ifconfig wlan0 up
iwconfig wlan0 essid JIFL4 key 18:01:75:C5:CB
dhclient -v wlan0


(I'm not sure about the iwconfig line in your case since my router isn't secured.  I live *WAY* out in the country and don't have to.  I'm on my desktop now which doesn't have wireless so I can't check the man page.)

Good luck.

Offline

#6 2011-01-28 00:12:51

Haunter
Member
Registered: 2010-08-19
Posts: 10

Re: dhcpcd not working

andrewthomas wrote:
https://wiki.archlinux.org/index.php/Beginners%27_Guide#NETWORKING_Section wrote:

Example w/ Dynamic IP (DHCP):

HOSTNAME="arch"
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(eth0)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

From the Beginners Guide wiki that you posted the link to.
So for you this would be

wlan0="dhcp"
INTERFACES=(wlan0)
gateway="default gw 192.168.1.1" #which you could omit because the next command ignores it
ROUTES=(!gateway)

Now if you could post the output of

# iwconfig

and

# ifconfig wlan0 up

I know this doesn't really help, but I've been going to the irc and they are assuming it's a problem with arch communicating with my router because it's wep.

Offline

#7 2011-01-30 20:28:17

andrewthomas
Member
Registered: 2010-05-08
Posts: 52

Re: dhcpcd not working

No WPA2 on your router?

Time for a new one.


If this helped you, please take the time to rate the value of this post:
http://rate.affero.net/andrewthomas/

Offline

Board footer

Powered by FluxBB