dhclient filling up my logfiles
Hasse
webmaster at swedehost.com
Thu Jun 19 08:47:18 PDT 2003
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
More information about the freebsd-questions
mailing list