LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 05-02-2004, 05:05 PM   #1
berndmkiii
LQ Newbie
 
Registered: May 2004
Location: Buedingen Germany
Distribution: Red Hat 9.0
Posts: 4

Rep: Reputation: 0
redhat 9.0 Can't obtain IP from dhcp serve


HI,

after installing a router (vigor 2500we) I changed Red Hat 9.0 network from static IP to obtain an ip-address from the router, but it doesn't work.

When restarting the network, the message "no DHCPOFFER" appears in /var/messages.

ifconfig shows that no ip is assigned.

All windows98se clients work fine and running through the RH-doc's several times is driving me mad.

Can somebody please help me on that?

Which networkfiles are really affected?

I'm dealing with:

/etc/hosts (only the loopback device is in here)

/etc/resolv.conf (is removed)

/etc/sysconfig/network (NETWORKING=yes)

/etc/sysconfig/networking-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
 
Old 05-02-2004, 08:32 PM   #2
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
Hi.

Just for testing purposes, turn off your firewall and see if that is effecting it at all.

as root...

ifdown eth0

service iptables stop

ifup eth0 (assuming your network adapter is called eth0).

Let us know how you go. It does look like it's all alright though.

>Craig
 
Old 05-03-2004, 04:37 AM   #3
berndmkiii
LQ Newbie
 
Registered: May 2004
Location: Buedingen Germany
Distribution: Red Hat 9.0
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you. But it didn't work

/var/log/messages says:

localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval xx

localhost dhclient: no DHCPOFFERS received.

Why isn't it the gateway's IP ?

Is the cable change detected? (10base2 to cat5)

Bernd
 
Old 05-03-2004, 09:52 AM   #4
Pres
Member
 
Registered: Jun 2002
Location: Australia
Distribution: Slack 9.1
Posts: 232

Rep: Reputation: 30
Try, on the client, 1) killall dhcpcd 2) dhcpcd -B
perhaps it will work, maybe it is a timing issue. I had to put a "sleep" between bringing up my nic driver and adding an entry to routing table.
 
Old 05-03-2004, 10:21 AM   #5
berndmkiii
LQ Newbie
 
Registered: May 2004
Location: Buedingen Germany
Distribution: Red Hat 9.0
Posts: 4

Original Poster
Rep: Reputation: 0
Sorry! dhcp deamon is not running. The router is managing ip's!
 
Old 05-06-2004, 01:11 AM   #6
Pres
Member
 
Registered: Jun 2002
Location: Australia
Distribution: Slack 9.1
Posts: 232

Rep: Reputation: 30
Aha, dhcpcd ... dhcp *client* daemon ... on the client :

dhcpcd -B
 
Old 05-16-2004, 06:01 PM   #7
berndmkiii
LQ Newbie
 
Registered: May 2004
Location: Buedingen Germany
Distribution: Red Hat 9.0
Posts: 4

Original Poster
Rep: Reputation: 0
Today I was able to solve the issue. Prob was the nic's eprom cfg. The card always listened to 10 base 2 instead of 10 base t! After changing with the setup utility now the ip-address is provided by the router.

Maybe somebody can give me a hint how to change the hostname? Unfortunatly now the routers name is used!
 
  


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
cannot obtain IP through dhcp? chy1013m1 Linux - Networking 4 06-24-2005 07:24 AM
Cannot obtain DHCP lease TroelsSmit Linux - Newbie 24 06-18-2005 04:32 AM
how to serve dhcp ruwach Linux - Software 2 12-11-2004 02:59 AM
CAN'T obtain a IP from DHCP neo_aj Linux - Networking 0 02-17-2004 05:05 PM
Obtain IP when DHCP is down joadoor Linux - Networking 10 04-16-2002 04:25 AM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration