Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-17-2003, 11:38 AM   #1
LQ Newbie
Registered: May 2003
Posts: 11

Rep: Reputation: 0
Setting up DHCP AFTER installation.

I use netconfig and select the option to automatically optain all my addressed. I then try running network restart and nothing happens so I log out and log back in. Before anything loads I get the Error: "Could not look up internet address for local host. This will prevent Gnome from operating correctly.. It is possible to correct this by adding local host to the file /etc/hosts.

I have a couple questions about this:

1) I get a bunch of different ip numbers from various differnt spots. When using windows programs show that I am viewing things from the address When i run ifconfig it shows my local host address as and subnet address as and I find a network IP of using belarc advisor on my system...WHAT ARE ALL THESE numbers?

2) Is there a small program that I can download to set up these settings? I have to put it on some sort of disk then reboot to linux to install it.

3) Is it possible that my network card is still not working correctly even if it says it is activated?

This is really starting to get to be a pain in the @$$.

Old 05-17-2003, 11:50 AM   #2
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
the error is caused by your /etc/hosts file. It needs your ip address and hostname in it.
it also needs the default entry localhost.localdomain localhost

As far as your ip address goes there are a lot of things that can be unique to your configuration.

This is what it appears to be based on the info you have given

your ip address is and you run ifconfig before the interface was up or did not give the full output of ifconfig in your post.

Or your ip address is and the gateway to the internet like a router has an ip address of and you did not give the full output of ifconfig, or the interface was not up at the time

Last edited by DavidPhillips; 05-17-2003 at 11:52 AM.
Old 05-17-2003, 11:53 AM   #3
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
give the output of these


ifconfig -a

route -n
Old 05-17-2003, 03:51 PM   #4
LQ Newbie
Registered: Apr 2003
Location: Tucson
Distribution: RedHat 7.3, 8.0
Posts: 13

Rep: Reputation: 0
Additionally, it would be helpful if you supplied the info I requested earlier ...

cat /etc/dhcpc/

That file will have all the ip data sent to you by the network dhcp
server. If it is not there then dhcp is still not working.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up dhcp abunsair Debian 1 07-11-2005 09:31 AM
Setting up DHCP Baix Linux From Scratch 1 06-19-2005 11:52 PM
Problem setting up DHCP. Usalabs Linux - Networking 6 02-09-2004 07:25 AM
Setting up DHCP server. joshnya Linux - Networking 1 10-12-2003 03:15 PM
setting up dhcp toddmvc Linux - Networking 2 08-20-2003 12:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration