Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jun 2003 17:47:19 +0200
From:      Hasse <webmaster@swedehost.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   dhclient filling up my logfiles
Message-ID:  <200306191747.19538.webmaster@swedehost.com>

next in thread | raw e-mail | index | archive | help
Hi everybody.
Running FreeBSD 4.8-Stable.
I'm connected to the internet by ADSL and dynamic IP.
Dhcp-client keeps filling up my /var/log/messages.
Makes a log-entry every 10th minute.

<snip>
Jun 19 17:35:56 odin dhclient: New Network Number: 217.209.211.0
Jun 19 17:35:56 odin dhclient: New Broadcast Address: 217.209.211.255
Jun 19 17:44:48 odin dhclient: New Network Number: 217.209.211.0
Jun 19 17:44:48 odin dhclient: New Broadcast Address: 217.209.211.255
</snip>

I'm running it with a practically empty dhclient.conf file.
Only added one line to preserve my resolv.conf file.
prepend domain-name-servers 127.0.0.1;

According to the man-page dhclient(8), it's possible to
add a "-q" switch to only log errors.

<snip>
 The client normally prints a startup message and displays the  protocol
       sequence  to  the  standard  error  descriptor until it has acquired an
       address, and then only logs messages using  the  syslog  (3)  facility.
       The  -q flag prevents any messages other than errors from being printed
       to the standard error descriptor.
</snip>

I've tried to put it in rc.conf like this :
ifconfig_xl0="DHCP"
dhcp_program="/sbin/dhclient"
dhcp_flags="-q"

But it still logs every connection.


-- 
Regards
   Hasse
      Webmaster @ Swedehost.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306191747.19538.webmaster>