Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 May 2002 07:29:09 -0700
From:      Cy Schubert - CITS Open Systems Group <Cy.Schubert@uumail.gov.bc.ca>
To:        Ted Sikora <tsikora@ntplx.net>
Cc:        "freebsd-stable@FreeBSD.ORG" <freebsd-stable@FreeBSD.ORG>
Subject:   Re: dhclient messages 
Message-ID:  <200205041429.g44ET9AF001990@cwsys.cwsent.com>
In-Reply-To: Message from Ted Sikora <tsikora@ntplx.net>  of "Sat, 04 May 2002 09:40:02 EDT." <3CD3E4B2.D210D642@ntplx.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <3CD3E4B2.D210D642@ntplx.net>, Ted Sikora writes:
> Anyway of turning these annoying messages off?
> Started after a cvsup/buildworld this week.
> It's filling up the messages file and using a term is almost impossible.
> 
> May  4 09:00:34 dhcp-209-xx-xx-xx dhclient: New Network Number:
> 209.xx.xx.xx.xx
> May  4 09:00:34 dhcp-209-xx-xx-xx dhclient: New Broadcast Address:
> 209.xx.xx.255

You can use the patch at the end of this email to disable the messages 
or you can replace the script entirely as I have done on my firewall 
here at home in my dhclient.conf:  script "/usr/local/etc/dhclient-scrip
t";

The stock dhclient-script is normally installed from 
src/contrib/isc-dhcp/client/scripts/freebsd, however you can copy 
sbin/dhclient/dhclient-script.sh to another location and use it 
instead.  This is basically what I did on my firewall system at home, 
with modifications to update my jailed-caching-only DNS, re-establish 
my VPN to work, restart ntpd, and resync IP Filter (ipf -y) if the IP 
address changes.  Generally, what I'm trying to say is that there are 
other options and you can even modify those options.  (Many of the 
questions that are posted on -stable, -security, and the IP Filter 
mailing lists can be easily resolved by simple modifications to the 
dhclient-script of your choice.)

--- dhclient-script.orig	Sat Apr 27 19:40:24 2002
+++ dhclient-script	Sat May  4 06:43:51 2002
@@ -38,12 +38,7 @@
   fi
 fi
 
-if [ x$new_network_number != x ]; then
-   $LOGGER New Network Number: $new_network_number
-fi
-
 if [ x$new_broadcast_address != x ]; then
- $LOGGER New Broadcast Address: $new_broadcast_address
   new_broadcast_arg="broadcast $new_broadcast_address"
 fi
 if [ x$old_broadcast_address != x ]; then


Cheers,                          Phone:  250-387-8437
Cy Schubert                        Fax:  250-387-5766
Team Leader, Sun/Alpha Team      Email:  Cy.Schubert@osg.gov.bc.ca
Open Systems Group, CITS
Ministry of Management Services
Province of BC            
                    FreeBSD UNIX:  cy@FreeBSD.org




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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