LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-25-2003, 04:10 PM   #1
enigma Z
Member
 
Registered: Sep 2003
Location: The edge of the world, peering down into the dark abyss
Distribution: Gentoo 2004.2
Posts: 224

Rep: Reputation: 30
Linux times out waiting for a valid dhcp response


Hey, uh I have Cable internet, but I can't connect.

I have Linux configured for DHCP, and it times out waiting for a valid response. I gave it my gateway address, and told it to use dhcp, but didn't give it a host name or a DNS server. Can anyone help me?????
 
Old 09-25-2003, 04:14 PM   #2
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
I don't think it needs DNS info or hostname to find DHCP. That is a broadcast request.

How are you cabled up?

-K
 
Old 09-25-2003, 05:20 PM   #3
enigma Z
Member
 
Registered: Sep 2003
Location: The edge of the world, peering down into the dark abyss
Distribution: Gentoo 2004.2
Posts: 224

Original Poster
Rep: Reputation: 30
i'm hooked up through a network hub to the cablemodem

What's a hostname, and where do I put in the DNS info?
 
Old 09-25-2003, 05:46 PM   #4
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
All of that will be handled by the DHCP server if you ever get to it. Did you have another system plugged into this cable modem? Or the same system with a different ethernet card?

-K
 
Old 09-25-2003, 05:59 PM   #5
enigma Z
Member
 
Registered: Sep 2003
Location: The edge of the world, peering down into the dark abyss
Distribution: Gentoo 2004.2
Posts: 224

Original Poster
Rep: Reputation: 30
yes, into the same modem, however, it is windows, and as we all know, "Windoze doez it automatically." I also have windows on this system, and as you can see, I can get to the internet just fine from here
 
Old 09-25-2003, 06:34 PM   #6
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Okay... well... I have run into trouble because if the MAC address changes, my cable provider won't give me a new IP until like 12 hours later. But that doesn't seem to be bothering you.

You might have a hostname assignment, like C12345A, it would be your Windows machine name...
then try adding this line to /etc/sysconfig/network-scripts/ifcfg-eth0

DHCP_HOSTNAME=C12345A

(or maybe its HOSTNAME= try them both)

then restart your network.

-KevinJ
 
Old 09-25-2003, 08:34 PM   #7
enigma Z
Member
 
Registered: Sep 2003
Location: The edge of the world, peering down into the dark abyss
Distribution: Gentoo 2004.2
Posts: 224

Original Poster
Rep: Reputation: 30
Hey, I'm running slackware and I saw that line in /etc/rc.d/inet1 or something like that, would that work??
 
Old 09-25-2003, 09:18 PM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683
When you said you gave it your gateway address, do you mean that another computer is hooked up to the cable modem and this computer is the gateway? More information on your local network, or whether you have one would be useful.
 
Old 09-26-2003, 11:01 PM   #9
enigma Z
Member
 
Registered: Sep 2003
Location: The edge of the world, peering down into the dark abyss
Distribution: Gentoo 2004.2
Posts: 224

Original Poster
Rep: Reputation: 30
K here's the layout:

CABLE MODEM
-----NETWORK HUB
------------WINDOWS PC
------------WINDOWS LAPTOP
------------MY PC

The cable modem is connected to the input jack on the hub, while three pc's, a windows PC, a windows Laptop, and mine are hooked up to separate jacks on the hub.

While in windows we can see each other too on the network if that helps

My pc runs windows and linux, and I can get to the internet on Linux

Last edited by enigma Z; 09-26-2003 at 11:04 PM.
 
Old 09-27-2003, 04:24 PM   #10
enigma Z
Member
 
Registered: Sep 2003
Location: The edge of the world, peering down into the dark abyss
Distribution: Gentoo 2004.2
Posts: 224

Original Poster
Rep: Reputation: 30
Hey, i just switched to Mandrake 9.1, and the network configuration thru Drakconf doesnt help either
 
Old 10-29-2003, 04:39 PM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683
Your configuration is like mine. I use a linksys cable modem hub.
Does the hub have a dhcp server built in. You don't need to enter a gateway address if that is the case, the dhcp protocol takes care of that. The hub probably has a web setup interface.
The IP address probably is of the form xxx.xxx.0.1 where the first two numbers are the Network address. If you didn't change the local network address try typing http://192.168.0.1 in a web browser.

Most cable companies only issue a single dhcp cable modem ip address for residential service. The hub negotiates the address for itself, and issues different ip address for the computers hooked up to your local network. If you were using a gateway computer your configuration would look more like this:

Cable Modem --- Gateway PC --- Hub --- PC 1
. . . . . . . . . . . . . . . . . . . . . . . . .|--- PC 2

and the NAT translation would be performed by the Gateway PC.

Last edited by jschiwal; 10-29-2003 at 04:46 PM.
 
Old 10-29-2003, 04:50 PM   #12
enigma Z
Member
 
Registered: Sep 2003
Location: The edge of the world, peering down into the dark abyss
Distribution: Gentoo 2004.2
Posts: 224

Original Poster
Rep: Reputation: 30
Hey thanks. I solved the problem--my nic was dying
 
  


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
waiting too long for DHCP to get an address mrsolo Linux - Networking 1 11-20-2005 09:56 AM
Horrible apache response times OwlManAtt Linux - Software 0 01-30-2005 01:59 AM
DHCP response timeout kam_kenneth Linux - Newbie 4 11-02-2004 03:28 PM
DHCP times out with 2.6.5 but not 2.4.22 jmcnaught Slackware 2 04-14-2004 01:50 PM
No valid DHCP response - Linux or Windows mrflora Linux - Networking 1 02-19-2004 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:21 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration