LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-30-2004, 10:56 AM   #1
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551
Blog Entries: 4

Rep: Reputation: 31
NIC - dhcpcd trouble on startup


Hey folks....

I'm having a little trouble with one of my network cards. I don't think it matters, but its
in my webserver.

One the rare occasion I restart the system (when I make changes to /etc/inetd.conf)
One boot up I get some errors from dhcpcd:

At the current time only the bottom 2 lines are viewable (there is I think 5 lines to the error)

the 2 that I can see are:
dhcpcd[332]: dhcpT2value is missing in DHCP server response. Assumin 52 sec.
dhcpcd[332]: DHCP_ACK received from (IP address of my router)

and this scrolls by about every 5 - 10 seconds .

So I log in and I type:
kill pid 332
dhcpcd

and everything works fine. (doublecheck it with ifconfig, etc. everthing works - all is OK)

Now to my question:
If I can kill the pid of dhcpcd and start it again without changing settings, why doesn't it work on startup?

This is something that I can live with, but I'd rather not.
thanks in advance -tw
 
Old 07-30-2004, 11:22 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Re: NIC - dhcpcd trouble on startup

Quote:
Originally posted by tw001_tw
dhcpcd[332]: dhcpT2value is missing in DHCP server response. Assumin 52 sec.
dhcpcd[332]: DHCP_ACK received from (IP address of my router)
these (and most likely the one's above them) aren't really errors...

the dhcp client is simply telling you that the dhcp server gave it less info than it would have wanted, but that it's alright cuz it's gonna use some defaults, or it's gonna make it's own calculation if it can...

for example, another common dhcp client message could look like this:

dhcpd[332]: broadcastAddr option is missing in DHCP server response. Assuming 192.168.1.255

this dhcp client might have gotten assigned 192.168.1.2 (netmask 255.255.255.0), and since the dhcp server didn't transmit the broadcast address (192.168.1.255), it calculated it on it's own...


Last edited by win32sux; 07-30-2004 at 11:27 AM.
 
Old 07-30-2004, 11:28 AM   #3
AhYup
Member
 
Registered: Mar 2004
Distribution: Suse
Posts: 85

Rep: Reputation: 15
Hmm, I'm courious as to why it wouldn't repeat the messages after he killed it and restarted.

I was guesing that the startup script wanted the DHCP client to start with an option that the server was not configured to give. Thus when he killed and restarted without the option it worked ok.

Last edited by AhYup; 07-30-2004 at 11:33 AM.
 
Old 07-30-2004, 11:52 AM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally posted by AhYup
Hmm, I'm courious as to why it wouldn't repeat the messages after he killed it and restarted.
one tends to start it manually by simply doing a "dhcpcd eth0", for example... but the messages are printed when you start dhcpcd with the "-d" option, as slackware does by default (take a look at the way dhcpcd is run from /etc/rc.d/rc.inet1 and you'll see)...

kill your dhcpcd and start it again with the "-d" option:

killall dhcpcd

dhcpcd -d eth0


you'll see that the messages get logged into /var/log/debug

if you don't use the "-d" option they won't get logged...


Last edited by win32sux; 07-30-2004 at 11:55 AM.
 
Old 07-30-2004, 12:15 PM   #5
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551

Original Poster
Blog Entries: 4

Rep: Reputation: 31
win32sux,

Not only did it resolve the issue, but I appreciate your explination. That was just as helpful
as the resolution.

thanks again - tw
 
Old 07-30-2004, 04:44 PM   #6
SiegeX
Member
 
Registered: Jul 2004
Location: Silicon Valley, CA
Distribution: Slackware
Posts: 171

Rep: Reputation: 38
This doesnt really have to do with the problem above, but have you guys noticed that the dhcpcd package that Slackware 9.1/10 comes with uses the wrong file name for the script that will be executed everytime the IP Address changes (really nice for updating Dynamic DNS). If you notice, slackware names it /etc/dhcpc/dhcpcd-eth0.exe when in fact if you look at the man page it really should be /etc/dhcpc/dhcpcd.exe. I came upon this when I was trying to get my Dynamic DNS to auto-update and noticed that it wasnt doing it. You can fix this one of two ways, either rename/symlink dhcpcd-eth0.exe to dhcpcd.exe or edit /etc/rc.d/rc.inet1 and use the -c flag and point it to /etc/dhcpc/dhcpcd-eth0.exe. If anybody here knows how to find out who maintains the dhcpcd slack package, id like to contact them so that this issue can be resolved. Thanks
 
Old 07-30-2004, 05:22 PM   #7
eelriver
Member
 
Registered: May 2004
Location: san francisco
Distribution: Slackware 10.2 kernel 2.6.13, Gentoo amd64, Some mish-mash of programs that started with slack 9.0
Posts: 165

Rep: Reputation: 30
Quote:
If you notice, slackware names it /etc/dhcpc/dhcpcd-eth0.exe when in fact if you look at the man page it really should be /etc/dhcpc/dhcpcd.exe.
This came in handy for me. I have two NICs, a wireless and wired. Slackware named one of them /etc/dhcpcd/dhcpcd-eth0.exe and the other ~/dhcpcd-eth1.exe. That way I can use either or both without problems.
 
Old 07-30-2004, 06:01 PM   #8
SiegeX
Member
 
Registered: Jul 2004
Location: Silicon Valley, CA
Distribution: Slackware
Posts: 171

Rep: Reputation: 38
I see the benefits of making the files with NIC-specific names, but my point is what good does that do if the dhcpcd server never looks at those files?? The dhcpcd startup command that Slackware 9.1/10 uses by default in your rc.inet1 file does NOT use the -c option to tell it what executable file to use, and so dhcpcd uses its default which is 'dhcpcd.exe'.
 
  


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
dhcpcd stalling new application startup patrickclay Linux - General 8 09-09-2005 10:55 AM
k(g)dm won't start when dhcpcd happens during startup ricalicious Linux - Software 0 01-27-2005 11:02 PM
Adding dhcpcd to startup? drache777 Linux - Newbie 6 01-18-2005 08:44 PM
What startup script is dhcpcd supposed to be in? murray_linux Slackware 8 06-29-2004 05:27 PM
Dhcpcd at startup dr_van_nostrand Linux - Networking 4 04-15-2003 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:39 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