A quiet dhclient

A quiet dhclient

2005-10-03 | by Wiz [mail] | Categories: International, Computer & Informatica

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

Trackback address for this post:

http://www.drakeworld.net/blogs/htsrv/trackback.php/232

Comments, Trackbacks, Pingbacks:

No Comments/Trackbacks/Pingbacks for this post yet...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))

You can just use your OpenID to provide your name, e-mail and url.

Wiz

Maggio 2013
Lun Mar Mer Gio Ven Sab Dom
 << <   > >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Statistiche

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.

Most Comments

  1. On the future of MP3 Cat (17)
  2. Buona Pasqua! (9)
  3. Leopard ruggirà il 26 ottobre (6)
  4. Se cercate un albergo... (5)
  5. Post di prova... (4)

Most views

  1. Heroic New Orleans hosting outfit battles on (32,327)
  2. A quiet dhclient (32,121)
  3. On the future of MP3 Cat (28,103)
  4. LogMiner (24,172)
  5. La cronistoria della Guida Galattica per autostoppisti (14,461)
More…

Most Words

  1. La cronistoria della Guida Galattica per autostoppisti (951)
  2. Accoglienza e convivenza (519)
  3. A quiet dhclient (509)
  4. VisualStudio .NET 2003 - Ovvero come complicare la vita al povero programmatore (491)
  5. On the future of MP3 Cat (393)
More…

Feeds XML

Cos'é un RSS?

Flickr

www.flickr.com
Questo è un badge Flickr che mostra le foto pubbliche e/o i video di Wiz78. Crea il tuo badge qui.

powered by b2evolution free blog software