From owner-freebsd-questions@FreeBSD.ORG Fri Jun 20 12:55:57 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1BC4837B401 for ; Fri, 20 Jun 2003 12:55:57 -0700 (PDT) Received: from sccrmhc12.attbi.com (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 300F043F85 for ; Fri, 20 Jun 2003 12:55:56 -0700 (PDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (be-well.no-ip.com[24.147.188.198]) by attbi.com (sccrmhc12) with ESMTP id <2003062019555501200s0rf7e>; Fri, 20 Jun 2003 19:55:55 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.9/8.12.7) with ESMTP id h5KJtt1V015470 for ; Fri, 20 Jun 2003 15:55:55 -0400 (EDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.9/8.12.6/Submit) id h5KJts6t015467; Fri, 20 Jun 2003 15:55:54 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f Sender: lowell@be-well.no-ip.com To: freebsd-questions@freebsd.org References: <200306191747.19538.webmaster@swedehost.com> <200306201439.58121.webmaster@swedehost.com> From: Lowell Gilbert Date: 20 Jun 2003 15:55:54 -0400 In-Reply-To: <200306201439.58121.webmaster@swedehost.com> Message-ID: <44u1akh6b9.fsf@be-well.ilk.org> Lines: 80 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: dhclient filling up my logfiles X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jun 2003 19:55:57 -0000 Hasse writes: > On Thursday 19 June 2003 17.47, Hasse wrote: > > 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. > > > > > > 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 > > > > > > 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. No, that's not what the man page says the option does. That option keeps anything but errors being sent to standard error; it has no relationship to the system log. > > > > 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. > > Read that again to see what I mean. > > Check the lease file you're receiving, if it has a rediculously short > > lease time complain to your provider. This was obviously the situation. > This excessive logging behavior started for about 4 days ago. > At least, thats when I got aware of it. > Everything is working just fine, except for this. > My IP-address hardly ever change. I've had the same one for nearly a year now. > There got to be a way to tell it to only log errors, not every connection, > but I don't know how. > I was looking for a way in the syslog.conf, but I have very little > understanding for that tool. ( not a clue ). > Any more hints or clues would be preciated. Pick the dhclient messages up in a different log file. Something like (untested): !dhclient *.* /var/log/dhcpd > This is a snip from my lease file : > lease { > interface "xl0"; > fixed-address 217.209.211.129; > option subnet-mask 255.255.255.0; > option time-offset 3600; > option routers 217.209.211.1; > option dhcp-lease-time 1200; Yep, your lease time is 10 minutes long. > option dhcp-message-type 5; > option domain-name-servers 127.0.0.1,10.0.0.1,10.0.0.2; > option dhcp-server-identifier 10.0.113.1; > option broadcast-address 217.209.211.255; > renew 5 2003/6/20 12:18:03; > rebind 5 2003/6/20 12:26:08; > expire 5 2003/6/20 12:28:38; > } Try setting your dhclient.conf to ask for a longer lease. If that fails, pull the dhclient messages into another file...