LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-14-2005, 11:35 AM   #1
carpchowder
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Rep: Reputation: 0
Thumbs down dhcpcd can't get IP on reboot


Hey, I'm running Slackware 10 and I can get an IP address sometimes.
However, when I reboot I have no eth0. I run rc.inet1 and it just times out and never brings up the interface with an address. If I bring it up with ifconfig I never get an address.

If I halt the system, and wait long enough (I'm not sure how long is actually enough) sometimes it comes up and DHCP gets me an address which I then keep until I reboot.

What information would you need?
THanks

Last edited by carpchowder; 04-14-2005 at 11:10 PM.
 
Old 04-14-2005, 07:35 PM   #2
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
Where are you getting an IP address from (a router, another linux box, your ISP)?
 
Old 04-14-2005, 11:10 PM   #3
carpchowder
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Its a dhcp server, I think its NT? Its on a company network, I'm trying to wean in some linux, maybe get some fans? I have never had any dhcp client problems before, and its only on reboot... the configuration works and comes up automatically if I power the box down. Like when I get in tomorrow? It will magically work like nothing happened, but if I rebooted it I'll be hosed. Any idea's what is going on? The client is dhcpcd
Thanks again
 
Old 04-14-2005, 11:37 PM   #4
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
Wanna show us what this looks like?
Code:
cat -n /etc/rc.d/rc.inet1.conf | grep [0]
(Please post your result wrapped in (code)(/code) to preserve the tabs and make it readable, in case you weren't going to already )

Last edited by michaelsanford; 04-14-2005 at 11:41 PM.
 
Old 04-15-2005, 08:34 AM   #5
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Look through your log files in /var/log to see if that reveals anthing. Do you have access to the DHCP server? Maybe it has some logs that can be looked through.

Maybe you could be allowed to use a static IP....
 
Old 04-15-2005, 09:12 AM   #6
carpchowder
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Original Poster
Rep: Reputation: 0
(code)
7 # Config information for eth0:
8 IPADDR[0]=""
9 NETMASK[0]=""
10 USE_DHCP[0]="yes"
11 DHCP_HOSTNAME[0]="Wilson"
20 IPADDR[2]=""
30
(/code)

The log reveals repeated timeouts waiting for a DHCP_ACK, I dont have access to the server, but if I did.... what would you suggest trying?

Last edited by carpchowder; 04-15-2005 at 09:13 AM.
 
Old 04-15-2005, 09:38 AM   #7
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
On line 11 try making that say DHCP_HOSTNAME[0]=""
 
Old 04-15-2005, 02:48 PM   #8
carpchowder
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Original Poster
Rep: Reputation: 0
No dice on the DHCP_HOSTNAME=""

eth0 is not listed for ifconfig, I can bring it up but have no IP. Rerunning rc.inet1 times out, ps doesnt list dhcpcd as running and then ifconfig doesnt list eth0 anymore. It seems as if the DHCP server is not responding at all to anything from dhcpcd? Any more idea's?

Thanks fella's
 
Old 04-15-2005, 02:58 PM   #9
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
Yeah, I would suggest trying to call the sysadmin and asking for a static IP, then you can just put that info into that file above and (hopefully) be done with it.

If your DHCP acknowledge request is timing out it sounds like there is a problem with the DHCP server renewing your lease. Can you post one or two lines of the result of this?
Code:
cat /var/log/messages | grep DHCPACK
Also, do you have any custom firewall rules on your box?
 
Old 04-15-2005, 03:02 PM   #10
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
By the way, the fact that dhcpd is not running is right since dhcpd is itself a DHCP server and hands out IPs to other people.

Also, it's very curious that rc.inet1 would time out. It sounds more and more to me like a problem with the dhcp server on your network.
 
Old 04-15-2005, 04:07 PM   #11
carpchowder
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Oh, sorry. I thought dhcpcd was a dhcpcd was a DHCP client that configured my interface? In the rc.inet1 script the command the script says something like... (this is a vague and probably really poor/incorrect interpretation) if the interface isnt up or configured, configure it with dhcp. And one of the commands after that comment is /sbin/dhcpcd -d -t 10

so i figured that dhcpcd must be what I need to communicate to my companies DHCP server. Now the logs seem to indicate the DHCP server isnt acknowledging my DHCP_DISCOVER requests.

What program is doing the requesting? (I thought it was dhcpcd) I am hoping maybe there is a client setting I can try?

Thanks!
 
Old 04-15-2005, 04:15 PM   #12
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
Sorry! My fault, it is dhcpcd (dhcpd is a different program) I misread your last post.

Wanna post some of your /var/log/message results?
 
Old 04-16-2005, 10:16 AM   #13
carpchowder
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Here is my /var/log/debug, I'm no longer at work so it might be a second before I can get back to it. I've also convinced the net admin to show me the server error logs, that wont be until monday as well. As you'll see by the end of the log, I shut down the system totally and when I restarted it? It just worked fine. I realize I could just leave it alone and not worry about it, but I want to know why reboot wont get me an address through DHCP. I updated to slack 10.1, but the problem remains...


Code:
Apr 15 18:48:54 Wilson kernel: CPU:     After generic, caps: 0383f9ff
00000000 00000000 00000000
Apr 15 18:48:54 Wilson kernel: CPU:             Common caps: 0383f9ff
00000000 00000000 00000000
Apr 15 18:48:57 Wilson dhcpcd[216]: broadcasting DHCP_DISCOVER
Apr 15 18:49:54 Wilson dhcpcd[1225]: broadcasting DHCP_DISCOVER
Apr 15 18:50:09 Wilson dhcpcd[1257]: broadcasting DHCP_DISCOVER
Apr 15 20:19:51 Wilson dhcpcd[1372]: broadcasting DHCP_DISCOVER
Apr 15 20:47:30 Wilson dhcpcd[1417]: broadcasting DHCP_DISCOVER
Apr 15 20:47:45 Wilson dhcpcd[1419]: broadcasting DHCP_DISCOVER
Apr 15 20:52:00 Wilson dhcpcd[1433]: broadcasting DHCP_DISCOVER
Apr 15 20:52:27 Wilson dhcpcd[1454]: broadcasting DHCP_DISCOVER
Apr 15 20:53:30 Wilson dhcpcd[1475]: broadcasting DHCP_DISCOVER
Apr 15 20:56:15 Wilson dhcpcd[1518]: broadcasting DHCP_DISCOVER
Apr 15 20:59:18 Wilson dhcpcd[1561]: broadcasting DHCP_DISCOVER
Apr 15 21:02:24 Wilson kernel: CPU:     After generic, caps: 0383f9ff
00000000 00000000 00000000
Apr 15 21:02:24 Wilson kernel: CPU:             Common caps: 0383f9ff
00000000 00000000 00000000
Apr 15 21:02:26 Wilson dhcpcd[217]: broadcasting DHCP_DISCOVER
Apr 15 21:02:27 Wilson dhcpcd[217]: broadcastAddr option is missing in
DHCP server response. Assuming 192.168$
Apr 15 21:02:27 Wilson dhcpcd[217]: dhcpIPaddrLeaseTime=259200 in DHCP
server response.
Apr 15 21:02:27 Wilson dhcpcd[217]: DHCP_OFFER received from  (192.168.1.2)
Apr 15 21:02:27 Wilson dhcpcd[217]: broadcasting DHCP_REQUEST for 192.168.1.248
Apr 15 21:02:27 Wilson dhcpcd[217]: dhcpIPaddrLeaseTime=259200 in DHCP
server response.
Apr 15 21:02:27 Wilson dhcpcd[217]: DHCP_ACK received from  (192.168.1.2)
 
  


Reply



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
No keyboard/mouse after reboot. Requires second reboot to work. rottie Linux - Hardware 6 01-16-2006 05:04 AM
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 10:32 AM
dhcpd --help ekoome Slackware 2 02-27-2004 03:40 AM
DHCPD startup failure, mdk 9.2, dhcpd v3.0.1rc11 fuzzyworm Linux - Networking 1 02-14-2004 03:58 AM
dhcpd.master or dhcpd.conf rickg Linux - Networking 0 04-11-2002 03:34 PM

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

All times are GMT -5. The time now is 04:44 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
Open Source Consulting | Domain Registration