disabling dhclient

Perry Hutchison perryh at pluto.rain.com
Sun Aug 30 05:37:01 UTC 2015

Michael Powell <nightrecon at 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
  Starting devd.
  DHCPREQUEST on xl0 to port 67
  DHCPACK from
  bound to -- renewal in 706607801 seconds.

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

More information about the freebsd-questions mailing list