LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-15-2006, 09:24 AM   #1
registering
Member
 
Registered: Jun 2003
Location: Florida, USA
Distribution: Drake 10.1 Download
Posts: 182

Rep: Reputation: 30
/sbin/dhclient-script questions


Hi all,

I'm trying to learn more about how dhclient works. After I did a "service network restart" I'm getting strange messages in my /var/log/messages (see below), but I have more basic questions:

1) I have no /etc/dhclient* files, so how is dhclient being configured?
2) Why is it running at all? I cannot find any reference to it in /etc/rc.d/*? What files (not GUIs) do I change if I want to stop it entirely?

Thanks in advance.

For reference, the messages are below (eth0 is fine; eth1 IS down and should NOT be used so I'm trying to find out why it is being used; the dhcp server logs similar messages for this host)

Nov 15 09:56:34 d9 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 16
Nov 15 09:56:34 d9 dhclient: send_packet: Network is down
Nov 15 09:56:50 d9 dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 11
Nov 15 09:56:50 d9 dhclient: send_packet: Network is down
Nov 15 09:57:01 d9 dhclient: No DHCPOFFERS received.
Nov 15 09:57:01 d9 dhclient: No working leases in persistent database - sleeping.
 
Old 11-16-2006, 03:16 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by registering
1) I have no /etc/dhclient* files, so how is dhclient being configured?
Check out the dhclient man page here and the config file man page here. The default config file is /etc/hdlcient.conf, but IIRC from helping somebody with dhclient a couple weeks ago, it will run happily w/o one. If you don't tell it otherwise, either on the command line or through the config file, it will try to config every relevant interface through DHCP, which would account for the eth1 lines in your log.

Quote:
2) Why is it running at all? I cannot find any reference to it in /etc/rc.d/*? What files (not GUIs) do I change if I want to stop it entirely?
I suspect it is being called from /etc/init.d/network or something called by that script.
 
  


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
dhclient-exit-hooks not starting script ocgltd Linux - Networking 7 09-06-2006 08:26 AM
Chkroot scan - /sbin/init & /sbin/ifconfig INFECTED bicoba Linux - Security 4 06-07-2006 09:16 AM
/sbin/rc: line 271: /sbin/devfsd: No such file or directory Alexander.s Linux - General 3 04-22-2005 04:44 PM
Want2use /sbin cmds undr non-root account w/o sudo. Is it safe 2 add /sbin 2 my PATH? kornerr Linux - General 4 02-25-2005 09:29 AM
Can't find adsl-setup script in /usr/sbin caddie Linux - Newbie 1 09-11-2002 10:38 AM

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

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