Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2003 20:32:35 +0200
From:      Hasse <webmaster@swedehost.com>
To:        questions@freebsd.org
Subject:   dhclient filling up my logfile. Help needed.
Message-ID:  <200307102032.35225.webmaster@swedehost.com>

next in thread | raw e-mail | index | archive | help
Hi everybody.
Need help.
Running FreeBSD 4.8, all files are up to date, cvsuped yesterday, and I'm 
connected to the net via ADSL. Dynamic IP, but hardly ever change.
dhclient is filling up my /var/log/messages.
Every 10th minute it makes a new request and logging it.
I've tried to request a longer lease time in my dhclient.conf without any 
luck, and I've tried to get it to log to another logfile named dhclient, 
resulting in it logging to two files. dhclient and /var/log/messages.
I've tried to talk to my ISP about this problem, without any luck.
I think most of the computers connected to this network are win-boxes,
and they don't seem to have this problem. ( Don't log this kind of info )
How can I keep the program from logging all this info ?
Not really a problem, but very annoying.
--------
<snip from /var/log/messages>
Jul 10 20:03:26 odin dhclient: DHCPREQUEST on xl0 to 10.0.113.1 port 67
Jul 10 20:03:26 odin dhclient: DHCPACK from 10.0.113.1
Jul 10 20:03:26 odin dhclient: New Network Number: 217.209.211.0
Jul 10 20:03:26 odin dhclient: New Network Number: 217.209.211.0
Jul 10 20:03:26 odin dhclient: New Broadcast Address: 217.209.211.255
Jul 10 20:03:26 odin dhclient: New Broadcast Address: 217.209.211.255
Jul 10 20:03:26 odin dhclient: bound to 217.209.211.129 -- renewal in 542 
seconds.
Jul 10 20:12:28 odin dhclient: DHCPREQUEST on xl0 to 10.0.113.1 port 67
Jul 10 20:12:28 odin dhclient: DHCPACK from 10.0.113.1
Jul 10 20:12:28 odin dhclient: New Network Number: 217.209.211.0
Jul 10 20:12:28 odin dhclient: New Network Number: 217.209.211.0
Jul 10 20:12:28 odin dhclient: New Broadcast Address: 217.209.211.255
Jul 10 20:12:28 odin dhclient: New Broadcast Address: 217.209.211.255
Jul 10 20:12:28 odin dhclient: bound to 217.209.211.129 -- renewal in 495 
seconds.
</snip>
--------
My dhclient.conf :
timeout 60;
retry 60;
reboot 10;
select-timeout 5;
initial-interval 2;
script "/sbin/dhclient-script";
media "-link0 -link1 -link2", "link0 link1";
send host-name "odin.swedehost.com";
send dhcp-client-identifier 00:01:02:f7:7d:e8;
send dhcp-lease-time 7200;
supersede domain-name "swedehost.com";
prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, host-name;
require subnet-mask, domain-name-servers;
------------
My /var/db/dhclient.leases :
lease {
  interface "xl0";
  fixed-address 217.209.211.129;
  medium "-link0 -link1 -link2";
  option subnet-mask 255.255.255.0;
  option time-offset 3600;
  option routers 217.209.211.1;
  option dhcp-lease-time 1200;
  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;
  option domain-name "swedehost.com";
  renew 4 2003/7/10 18:12:28;
  rebind 4 2003/7/10 18:20:56;
  expire 4 2003/7/10 18:23:26;
}
lease {
  interface "xl0";
  fixed-address 217.209.211.129;
  medium "-link0 -link1 -link2";
  option subnet-mask 255.255.255.0;
  option time-offset 3600;
  option routers 217.209.211.1;
  option dhcp-lease-time 1200;
  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;
  option domain-name "swedehost.com";
  renew 4 2003/7/10 18:20:43;
  rebind 4 2003/7/10 18:29:58;
  expire 4 2003/7/10 18:32:28;
}
--------
Regards
   Geir Svalland.



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