LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-23-2002, 04:17 PM   #1
chappy011
LQ Newbie
 
Registered: Mar 2002
Location: Troy, NY
Distribution: Red Hat 7.2
Posts: 9

Rep: Reputation: 0
Determining IP information for eth0...FAILED


Hey there,

I am a linux newbie and am having problems connecting my linux box to the internet.

My setup is this: I get internet access through a cable modem (Road Runner, to be specific). The modem goes to a 4-port hub. One of the ports in the hub is connected straight into the ethernet card in my linux box. This setup works fine with my Windows computer. However, it is not working with linux (Redhat 7.2).

When I boot the computer up, it pauses on the line 'Bringing up interface eth0'. After a couple minutes, it finally prints out 'Determining IP information for eth0...FAILED'. Then when I finally log into linux, the Internet does not work.

I tried running the 'ifconfig' command, and this produced only a result for the interface 'lo', not for 'eth0'.

I am really new to linux, so I am not sure where to go from here. I have been searching the forums for a problem like mine, but haven't found anything quite the same. Any help you could provide, whether it be advice or just links to something you think would help, would be greatly appreciated.

Thanks!
 
Old 03-23-2002, 05:03 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
http://www.linuxdoc.org/HOWTO/Ethernet-HOWTO.html

the almighty ethernet howto should get you started.

-trickykid
 
Old 03-23-2002, 06:56 PM   #3
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
Try:

ifconfig eth0 up

If it errors and says... no device by that name found, then yeah, hit the ethernet how-to because you have to get your card working first. If it doesn't error, then you're not having your card ask the right questions on boot.

What is RR's method of connection? dhcp or pppoe?

Cheers,

Finegan
 
Old 03-23-2002, 07:25 PM   #4
chappy011
LQ Newbie
 
Registered: Mar 2002
Location: Troy, NY
Distribution: Red Hat 7.2
Posts: 9

Original Poster
Rep: Reputation: 0
I tried 'ifconfig eth0 up' and did not get any error.

Afterwards I did 'ifconfig' again and then there was en entry for eth0 (in addition to the one for lo that was there before). I tried using the internet again and it still did not work, though.

So, I guess I'm not having my card ask the right questions on boot. I am pretty sure that RR uses DHCP. When I installed Red Hat, I selected the 'Configure using DHCP' option.

Thanks for the replies!

Chappy
 
Old 03-23-2002, 07:45 PM   #5
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
Roadrunner may require that you accept their hostname or something funky like that, there are a few on the market that do. If:

dhcpcd eth0

Doesn't work then I recommend searching through the archives here by ISP in order to figure out if you have to pass some cutsie option ot dhcpcd.

Cheers,

Finegan
 
Old 03-23-2002, 09:53 PM   #6
chappy011
LQ Newbie
 
Registered: Mar 2002
Location: Troy, NY
Distribution: Red Hat 7.2
Posts: 9

Original Poster
Rep: Reputation: 0
I was looking around the forums on the Red Hat web site when I came across a posting that suggested to turn off the computer and unplug the cable modem for a few seconds. So I did this, then plugged it back in and turned the computer on and - voila! No more error.

Does anyone know why this would solve the problem? I don't really understand why it worked at all.

So now that the internet is working, I have another (minor) problem. When I turn the computer on, I am taken to the text login screen (I had been using the graphical login screen). If I use the 'startx' command to log into GNOME, I am given the error message 'Could not look up internet address for dhcp-254-130'. This will prevent GNOME from operating correctly. It may be possible to correct the problem by adding dhcp-254-130 to the file /etc/hosts.' However, if I continue to log into GNOME, I can still access the internet just fine.

So, I guess I have to edit the /etc/hosts file for GNOME to stop giving me this error message. Do I just need to add a line with the IP address and the hostname? I found the IP address using the ifconfig command - it is 24.25.134.95

Right now my /etc/hosts file just contains this line:
127.0.0.1 localhost.localdomain localhost

So I need to add a line like this?
24.25.134.95 dhcp-254-130

2 questions -
If my IP address is dynamic, then it doesn't seem right to be putting a static IP address in the hosts file. Won't it just be incorrect eventually when I get a different IP address?

The entry I already have in my hosts file has three parameters - IP Address, Hostname, and Alias. I only have the IP address and Hostname parameters for my ethernet - do I need to include an Alias? If so, how do I know what to put?

Thanks very much!
 
Old 03-23-2002, 10:37 PM   #7
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
The problem comes from the fact that X-windows is also a server, so it wants to know what address its going to be offering services on. Really, you could put an entry in /etc/hosts, but that might just confuse a number of other daemons.

My laptop, which could have about 1 of 15 ip addresses depending on which network I'm dealing with, has an entry for my home LAN 192.168.0.9 I think, and the error goes away, but really if your not going to use X as a server, just ignore the error.

Cheers,

Finegan
 
Old 03-24-2002, 12:40 AM   #8
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
roadrunner modems keep a cache memory of the last mac address it was connected to. most likely you had to reset the modem so it loses memory of the last mac address it was connected to. in your case did you bypass the hub and do a direct connection ?? if your going thru the hub and only purchasing one IP from RR, then that would have been the problem in your case.. and resetting the modem and doing a direct connection is what allowed your linux box to attain the IP from the dhcp server..

-trickykid
 
Old 03-24-2002, 08:32 AM   #9
chappy011
LQ Newbie
 
Registered: Mar 2002
Location: Troy, NY
Distribution: Red Hat 7.2
Posts: 9

Original Poster
Rep: Reputation: 0
Actually, I did not make a direct connection at all between the cable modem and the linux box. It has always been connected through the hub. All I did was unplug the cable modem for a minute.

I am not sure how many IP addresses Road Runner gives me. I just get the standard RR package. So if Road Runner only gives me one IP address, and I split the connection 4 ways with a hub - do all 4 computers have the same IP address?
 
Old 03-24-2002, 10:57 AM   #10
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
No, standard RR only give you one IP which in turn only one computer will then attain the IP. Then most likely in your case, when you unplugged the modem, the computer that was connected lost the IP and when you turned on your linux box, it grabbed the IP after the reset. The only way you can share one IP is to use a router and have a internal LAN setup, you shouldn't be getting 4 IP's from roadrunner...

-trickykid
 
Old 03-24-2002, 05:59 PM   #11
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
I currently have Road Runner in the Orlando area and they changed their policy here and allow up to 3 IPs assigned through dhcp but they are bascially static IPs (ie mine hasn't change in over 3 months). You would have to check with your local RR CSR to find out how they setup your area. Otherwise you have to either build a router (using linux) or buy a DSL/Cable Router from a store to get more than one computer online at a time.
 
Old 03-24-2002, 06:06 PM   #12
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Quote:
Originally posted by bbenz3
I currently have Road Runner in the Orlando area and they changed their policy here and allow up to 3 IPs assigned through dhcp but they are bascially static IPs (ie mine hasn't change in over 3 months). You would have to check with your local RR CSR to find out how they setup your area. Otherwise you have to either build a router (using linux) or buy a DSL/Cable Router from a store to get more than one computer online at a time.
you probably don't have static IP's, just that they do rarely change ever.. I work for RR down in Austin. I have had the same IP assigned as DHCP for the past 6 months.. I have seen it take up to a year for some to ever change on them.
but that is cool they give each person 3 IP's, most areas only one.. got to love that Cable/DSL router to solve that for more connections.

-trickykid
 
Old 03-24-2002, 06:17 PM   #13
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
Well I still had to build myself a router for my connections. We (myself and two roomates) have 4 computers running with a possiblity of about 6-7. Therefore 3 IPs doesn't make it. But for online gaming purposes you absolutely can't beat it. The fact that we can play in the same game at the same time and have no lag rules.
As for the IPs being static that is basically what I meant, However it does seem odd that even if we turn the cable modem off for at least a day that we still get the same 3 IPs back. I don't know how to explain it but it is fairly nice.
 
Old 03-24-2002, 06:31 PM   #14
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
Check through dhcpd a bit. The typical default is to reserve an IP for something like 24 hours before recycling it. Most dhcpd servers are built around the same principles, so even if RR isn't using the same dhcp software as linux (likely), then its probably still keeps a database of leases and a period of time before it will remove your mac address from the lease history.

Cheers,

Finegan
 
Old 03-24-2002, 11:17 PM   #15
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
Quote:
so even if RR isn't using the same dhcp software as linux (likely), then its probably still keeps a database of leases and a period of time before it will remove your mac address from the lease history.
RR uses a cable modem that has a built in cache that stores the mac addresses locally and so it will actually keep them indefinitely until you cycle power on the modem itself.
 
  


Reply


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
determining ip information for eth0...failed flamah Linux - Newbie 38 02-11-2008 10:30 PM
Determining IP information for eth0....failed linuxnew Linux - Networking 12 05-11-2004 06:05 AM
determining ip information for eth0...failed flamah Linux - Networking 5 02-27-2004 12:18 PM
Bringing up interface eth0: determining ip information for eth0... failed ralphethomas Linux - Networking 0 01-24-2004 05:33 PM
Determining IP information for eth0: failed... rajeshdorai Linux - Networking 5 10-09-2003 09:50 PM


All times are GMT -5. The time now is 02:23 AM.

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