Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Other Distributions > Arch Linux Help > can't get dhcp to work during installation

Forgot Password?
 Arch Linux Help   Help an discussion related to Arch

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 09-13-2009   #1 (permalink)
Just Joined!
 
Join Date: Jun 2008
Posts: 5
can't get dhcp to work 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'm kinda new to linux, but eager to learn what I can, so any help would be much appreciated.
gozo311 is offline  


Reply With Quote
Old 09-13-2009   #2 (permalink)
Super Moderator
 
ozar's Avatar
 
Join Date: May 2004
Posts: 12,051
If you are going to use dhcp, you need to comment out the gateway line:

Code:
#gateway=""
__________________
oz

New Members: * README *
ozar is offline   Reply With Quote
Old 09-13-2009   #3 (permalink)
Super Moderator
 
ozar's Avatar
 
Join Date: May 2004
Posts: 12,051
You can check this networking wiki page for all the details on getting your internet connection running properly:

Configuring network - ArchWiki
__________________
oz

New Members: * README *
ozar is offline   Reply With Quote
Old 09-13-2009   #4 (permalink)
Just Joined!
 
Join Date: Jun 2008
Posts: 5
Tried that. But I also read somewhere that some people claim to require gateway defined - even for dhcp. It's actually in the Arch Wiki that I saw that (Beginner's Guide wiki, Section 2.9.2.3). By the way, the limit on noobs posting URL's is a BIG pain. Oh well...

The guide you recommend is exactly what I'm working from for the last two days.
gozo311 is offline   Reply With Quote
Old 09-13-2009   #5 (permalink)
Super Moderator
 
ozar's Avatar
 
Join Date: May 2004
Posts: 12,051
/etc/hosts should be like this:

Code:
127.0.0.1	localhost.localdomain	localhost     ArchHost
__________________
oz

New Members: * README *
ozar is offline   Reply With Quote
Old 09-13-2009   #6 (permalink)
Just Joined!
 
Join Date: Jun 2008
Posts: 5
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.
gozo311 is offline   Reply With Quote
Old 09-13-2009   #7 (permalink)
Super Moderator
 
ozar's Avatar
 
Join Date: May 2004
Posts: 12,051
Quote:
Originally Posted by gozo311 View Post
But what the heck is 127.0.0.1?
that's your local host

the wiki page posted above covers it all pretty well
__________________
oz

New Members: * README *
ozar is offline   Reply With Quote
Old 09-13-2009   #8 (permalink)
Just Joined!
 
Join Date: Aug 2009
Posts: 76
One of the points of DHCP is that its supposed to do all that stuff for you automatically. When you begin setting static IPs everywhere (like your machine's IP/subnet mask/gateway ip) it kind of breaks the system since the DHCP server is supposed to handle those configurations. It's better to clean all that out, and then if necessary start doing one thing at a time and see if it works -- if not than change it back.

Additionally, it surprises me that you're on a different subnet than your gateway -- this can cause problems in some cases. Normally DHCP will put you on a similar subnet as your gateway is if not the same one.

I don't know if my post is helpful or not but hopefully it will provide some useful insight.
Zeroangel is offline   Reply With Quote
Old 09-13-2009   #9 (permalink)
Super Moderator
 
ozar's Avatar
 
Join Date: May 2004
Posts: 12,051
Not sure, but it appears to me that you might be trying to use a static IP, and dhcp. If so, follow the instructions in the wiki page posted above to use a static IP address. You'll likely have problems if you try to mix the dhcp procedure and the static ip procedure for connecting to the internet.
__________________
oz

New Members: * README *
ozar is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:11 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2