Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Aug 2015 22:27:41 -0700
From:      perryh@pluto.rain.com (Perry Hutchison)
To:        nightrecon@hotmail.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: disabling dhclient
Message-ID:  <55e2944d.MRhLE3hY7fqOZUby%perryh@pluto.rain.com>
In-Reply-To: <mrtrev$t8p$1@ger.gmane.org>
References:  <55e25852.0Xpg4zY1btmbpx9Z%perryh@pluto.rain.com> <mrtrev$t8p$1@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Michael Powell <nightrecon@hotmail.com> wrote:
> Perry Hutchison wrote:
> > My FreeBsd 8 system has recently developed an annoying habit of
> > running dhclient during reboot.  There is only one Ethernet card
> > (xl0), and it is not supposed to be using DHCP -- it has a static
> > IP address assigned in rc.conf.  During the last couple of reboots
> > dhclient has assigned a second IP address, and things have gone
> > downhill from there.
> ...
> I don't remember for sure if these were showing up in 10.0 or if they 
> started after upgrading to 10.1:
>
> Aug 24 21:11:54 testbed devd: Executing '/etc/rc.d/dhclient quietstart em0'
> Aug 26 00:33:13 testbed devd: Executing '/etc/rc.d/dhclient quietstart em0'
>
> Never investigated it but was wondering at the time why devd was running it, 
> even though I have static ifconfig(s).
>
> From devd.conf:
> # Try to start dhclient on Ethernet-like interfaces when the link comes
> # up.  Only devices that are configured to support DHCP will actually
> # run it.  No link down rule exists because dhclient automatically exits
> # when the link goes down.
>
> The above entries are incorrect; it runs no matter what.
> ...
> According to the line in devd.conf it's not supposed to start on interfaces 
> that are not configured for DHCP in rc.conf, and all mine are static.

I think what the comment is trying to say is that, while devd
will run the dhclient script on any "link up" event, the dhclient
script will not actually run the dhclient daemon unless the device
is configured to use DHCP.  So, getting log entries from devd does
not, by itself, point to a problem.  However, I am getting reports
like this (seen in "dmesg -a", but not in "dmesg"):

  add net default: gateway 192.168.0.1
  Starting devd.
  DHCPREQUEST on xl0 to 255.255.255.255 port 67
  DHCPACK from 192.168.0.1
  bound to 192.168.0.3 -- renewal in 706607801 seconds.

which seems to indicate that the dhclient script is running the
daemon, even on this static-addressed interface.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55e2944d.MRhLE3hY7fqOZUby%perryh>