I've been using ISC's DHCP client for a long time and I've always been annoyed by its log filling ability.
In fact, I use it together with a D-Link DSL-300G+ modem which sets a very short lease time to be able to quickly update the IP of the computer when the ADSL link is brought online. This means that my logs were constantly filled with lines like:
Sep 16 10:40:49 Chrome dhclient: DHCPACK from xxxx Sep 16 10:40:49 Chrome dhclient: bound to xxxx -- renewal in 28 seconds. Sep 16 10:41:17 Chrome dhclient: DHCPREQUEST on eth1 to xxxx port 67 Sep 16 10:41:17 Chrome dhclient: DHCPACK from xxxx Sep 16 10:41:17 Chrome dhclient: bound to xxxx -- renewal in 27 seconds. Sep 16 10:41:44 Chrome dhclient: DHCPREQUEST on eth1 to xxxx port 67 Sep 16 10:41:44 Chrome dhclient: DHCPACK from xxxx Sep 16 10:41:44 Chrome dhclient: bound to xxxx -- renewal in 30 seconds.
Googling for "dhclient filling logs" only led me to other users trying to solve this little problem, but no solution was available.
Thus eventually I had to fight my
lazyness lack of time and I wrote a trivial patch to cure dhclient.
The patch follows in the second page of this post. Once applied, you can add the -Q switch to dhclient's command line to prevent it from logging DHCPREQUEST/DHCPACK/bound messages.
Pages: 1 2
No Comments/Trackbacks/Pingbacks for this post yet...
|<< <||> >>|
This blog has 92 posts and 98 comments spanning a range from 14.03.05 to 17.05.09. The total number of words in all posts is 13,772, and the total number of views for individual posts is 297,959.