You are not logged in.

#1 2009-09-13 01:29:00

gozo311
Member
Registered: 2009-09-12
Posts: 11

Can't get dhcp working during installation

While trying to select packages during installation, I get the following error:

error: failed retrieving file 'core.db.tar.gz' from ftp.archlinux.org: transient resolver failure.

Furthermore, the following pinging does nothing:

# ping -c 3 www.google.com
>>> unknown host www.google.com

I've tried editing the rc.conf file to include the lines:

HOSTNAME="ArchHost"
eth0="dhcp"
INTERFACES=(eth0)
gateway="default gw 67.189.0.1"
ROUTES=(!gateway)

and I added this to /etc/hosts:
67.189.1.162             localhost.localdomain                localhost               ArchHost

Then I restart the network daemon via:

# /etc/rc.d/network restart

Then do:

# dhcpcd -k eth0
# dhcpcd -nd eth0

And I'm still not getting an inet address when I '# ipconfig eth0'. I've also tailored the pacman.conf file to only include the ftp.archlinux.org servers:

Server = ftp://ftp.archlinux.org/(core, extra, and community)/os/i686

I KNOW this site is capped - I'm just trying to narrow down the problem. But I think the problem is more to do with getting dhcp working and NOT the setup of pacman.conf and the mirrorlist files. Could be wrong though.  I have a dell inspiron b130 laptop.  The Broadcom ethernet is supposedly automatically detected by Arch and most linux distributions.  It works in ubuntu...  It also does show up in '# lspci | grep Ethernet' in Arch live. 

I'm kinda new to linux, but eager to learn what I can, so any help would be much appreciated.   cool

Offline

#2 2009-09-13 01:44:12

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: Can't get dhcp working during installation

The gateway line should be commented out:

#gateway=""

Check the wiki page for more details:

http://wiki.archlinux.org/index.php/Configuring_network


oz

Offline

#3 2009-09-13 01:46:21

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: Can't get dhcp working during installation

/etc/hosts should be like this:

127.0.0.1    localhost.localdomain    localhost  ArchHost


oz

Offline

#4 2009-09-13 01:48:42

gozo311
Member
Registered: 2009-09-12
Posts: 11

Re: Can't get dhcp working during installation

Ok, cool.  But what the heck is 127.0.0.1?  It sure isn't my IP address is it?  When I 'dhcpcd eth0' the 67.189. ... IPs come up.

Offline

#5 2009-09-13 01:52:25

Mardoct
Member
Registered: 2009-08-17
Posts: 208

Re: Can't get dhcp working during installation

127.0.0.1 is the loop back interface. It lets you send something to yourself more or less. It is just a numerical representation of localhost.


The human being created civilization not because of willingness but of a need to be assimilated into higher orders of structure and meaning.

Offline

#6 2009-09-13 01:54:16

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: Can't get dhcp working during installation

If you want to use a static IP, you can comment out the dhcp entry.


oz

Offline

#7 2009-09-13 02:03:12

Mardoct
Member
Registered: 2009-08-17
Posts: 208

Re: Can't get dhcp working during installation

ozar wrote:

If you want to use a static IP, you can comment out the dhcp entry.

Or use a static IP setting on your router to always give that computer's MAC address a consistent IP.


The human being created civilization not because of willingness but of a need to be assimilated into higher orders of structure and meaning.

Offline

#8 2009-09-13 02:05:47

gozo311
Member
Registered: 2009-09-12
Posts: 11

Re: Can't get dhcp working during installation

I changed hosts to include 127.0.0.1
Also commented out the gateway line in rc.conf

Still nothing when I ping...

Offline

#9 2009-09-13 03:06:27

Mardoct
Member
Registered: 2009-08-17
Posts: 208

Re: Can't get dhcp working during installation

Are you sure you are hooked up to a router running a DHCP server?
Are you sure your router has the correct DNS entries?

Also - I'm not sure if this would cause a failure or not - ArchHost should be one space away from localhost, not tabbed as you copy/paste seems to show. Also, unless you know what you are doing, 127.0.0.1 should be the only line in the hosts file.

Last edited by Mardoct (2009-09-13 03:07:33)


The human being created civilization not because of willingness but of a need to be assimilated into higher orders of structure and meaning.

Offline

#10 2009-09-13 03:12:09

gozo311
Member
Registered: 2009-09-12
Posts: 11

Re: Can't get dhcp working during installation

Oh, I was wondering if spacing mattered in the hosts file.  I assumed it didn't.  I was just about to try a static IP, since that seems to be less of a hassle.

I actually don't have a router.  I'm trying to triple boot with XP, ubuntu, and Arch.  DHCP works fine in XP and ubuntu.  I don't know much about DNS, but in XP they seem to be well defined when I 'ipconfig /all'. 

Thanks for your help.

Offline

#11 2009-09-13 03:58:55

gozo311
Member
Registered: 2009-09-12
Posts: 11

Re: Can't get dhcp working during installation

The static IP worked... for about 10 seconds.  It's the strangest thing.  When I restart the network daemon, I get the static IP, and pinging google sometimes works.  But not all the time.  The IP doesn't hold up long enough for me to download any packages.  Keep in mind this is all from a live CD.  Does that have anything to do with it?

This just doesn't make any sense.  I'm about ready to give up and stick with ubuntu.  This is too much time and energy spent.

Offline

#12 2009-09-13 04:09:58

Mardoct
Member
Registered: 2009-08-17
Posts: 208

Re: Can't get dhcp working during installation

Have you tried to reboot back into the liveCD and try autodetect again without touching anything?


The human being created civilization not because of willingness but of a need to be assimilated into higher orders of structure and meaning.

Offline

#13 2009-09-13 04:12:22

gozo311
Member
Registered: 2009-09-12
Posts: 11

Re: Can't get dhcp working during installation

When I type "# reboot'  I'm brought back into Grub.  I select run live CD, and then have to start over.  None of the changes are saved, and I just do it all over again, referring to my notes.  I guess it's not Grub - the loading screen from the boot-CD.

Last edited by gozo311 (2009-09-13 04:16:41)

Offline

#14 2009-09-13 05:30:11

gozo311
Member
Registered: 2009-09-12
Posts: 11

Re: Can't get dhcp working during installation

I was doing something extremely dumb.  On autopilot I kept selecting DHCP in the installation process after setting up a static IP.  That messed things up enough to produce that strange behavior I just mentioned.

Everything seems to be working well now though.  Thanks!

Offline

Board footer

Powered by FluxBB