Fwd: iaprefix entries aren't pruned in dhclient6.leases

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fwd: iaprefix entries aren't pruned in dhclient6.leases

Chris Dumont


Begin forwarded message:

From: Chris Dumont <[hidden email]>
Subject: iaprefix entries aren't pruned in dhclient6.leases
Date: October 13, 2017 at 11:30:53 PDT

Hi,

I’m using Debian package isc-dhcp-client 4.3.5-3. The dhcp server is my ISP and so I have no control over that end. See below for what happens when starting dhclient and the latest lease6 declaration from the dhclient6.leases file. When a new lease6 is appended to the file expired iaprefix entries aren’t being trimmed. During a RENEW6 all of the expired iaprefix(es) are rewritten into the lease6 declaration. 

Additionally, the transcript below of an INIT-REBOOT doesn’t show the whole story. The run-parts dhclient-{enter,exit}-hooks.d goes through “X” (number of iaprefix entries) BOUND6 invocations followed by "X-1" DEPREF6 and "X-1" EXPIRE6 invocations.

Is this a bug or is there something I need to configure? I suppose I could edit and re-edit dhclient6.leases from time to time. For the time being I’ve written some kludgy scripts to work around this.

Thanks,
Chris

The following is somewhat anonymized:

root@firewall:~$ dhclient -6 -P -v eth0.4
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on Socket/eth0.4
Sending on   Socket/eth0.4
PRC: Confirming active lease (INIT-REBOOT).
XMT: Forming Rebind, 0 ms elapsed.
XMT:  X-- IA_PD 4e:02:74:7e
XMT:  | X-- Requested renew  +3600
XMT:  | X-- Requested rebind +5400
XMT:  | | X-- IAPREFIX 2001:db8:7997:1b00::/56
XMT:  | | | X-- Preferred lifetime +7200
XMT:  | | | X-- Max lifetime +7500
XMT:  | | X-- IAPREFIX 2001:db8:7993:200::/56
XMT:  | | | X-- Preferred lifetime +7200
XMT:  | | | X-- Max lifetime +7500
XMT:  | | X-- IAPREFIX 2001:db8:7993:1100::/56
XMT:  | | | X-- Preferred lifetime +7200
XMT:  | | | X-- Max lifetime +7500
XMT:  | | X-- IAPREFIX 2001:db8:7993:5d00::/56
XMT:  | | | X-- Preferred lifetime +7200
XMT:  | | | X-- Max lifetime +7500
XMT:  | | X-- IAPREFIX 2001:db8:7993:f600::/56
XMT:  | | | X-- Preferred lifetime +7200
XMT:  | | | X-- Max lifetime +7500
XMT:  | | X-- IAPREFIX 2001:db8:7996:2d00::/56
XMT:  | | | X-- Preferred lifetime +7200
XMT:  | | | X-- Max lifetime +7500
XMT:  | | X-- IAPREFIX 2001:db8:7996:9600::/56
XMT:  | | | X-- Preferred lifetime +7200
XMT:  | | | X-- Max lifetime +7500
XMT:  | | X-- IAPREFIX 2001:db8:7997:300::/56
XMT:  | | | X-- Preferred lifetime +7200
XMT:  | | | X-- Max lifetime +7500
XMT:  | | X-- IAPREFIX 2001:db8:7997:1400::/56
XMT:  | | | X-- Preferred lifetime +7200
XMT:  | | | X-- Max lifetime +7500
XMT:  | | X-- IAPREFIX 2001:db8:7997:1a00::/56
XMT:  | | | X-- Preferred lifetime +7200
XMT:  | | | X-- Max lifetime +7500
XMT:  | | X-- IAPREFIX 2001:db8:7997:1c00::/56RCV: Reply message on eth0.4 from fe80::8626:2bff:fedb:5f8b.
RCV:  X-- IA_PD 4e:02:74:7e
RCV:  | X-- starts 1507917549
RCV:  | X-- t1 - renew  +7200
RCV:  | X-- t2 - rebind +10800
RCV:  | X-- [Options]
RCV:  | | X-- IAPREFIX 2001:db8:7997:1b00::/56
RCV:  | | | X-- Preferred lifetime 0.
RCV:  | | | X-- Max lifetime 0.
RCV:  | | X-- IAPREFIX 2001:db8:7993:200::/56
RCV:  | | | X-- Preferred lifetime 0.
RCV:  | | | X-- Max lifetime 0.
RCV:  | | X-- IAPREFIX 2001:db8:7993:1100::/56
RCV:  | | | X-- Preferred lifetime 0.
RCV:  | | | X-- Max lifetime 0.
RCV:  | | X-- IAPREFIX 2001:db8:7993:5d00::/56
RCV:  | | | X-- Preferred lifetime 0.
RCV:  | | | X-- Max lifetime 0.
RCV:  | | X-- IAPREFIX 2001:db8:7993:f600::/56
RCV:  | | | X-- Preferred lifetime 0.
RCV:  | | | X-- Max lifetime 0.
RCV:  | | X-- IAPREFIX 2001:db8:7996:2d00::/56
RCV:  | | | X-- Preferred lifetime 0.
RCV:  | | | X-- Max lifetime 0.
RCV:  | | X-- IAPREFIX 2001:db8:7996:9600::/56
RCV:  | | | X-- Preferred lifetime 0.
RCV:  | | | X-- Max lifetime 0.
RCV:  | | X-- IAPREFIX 2001:db8:7997:300::/56
RCV:  | | | X-- Preferred lifetime 0.
RCV:  | | | X-- Max lifetime 0.
RCV:  | | X-- IAPREFIX 2001:db8:7997:1400::/56
RCV:  | | | X-- Preferred lifetime 0.
RCV:  | | | X-- Max lifetime 0.
RCV:  | | X-- IAPREFIX 2001:db8:7997:1a00::/56
RCV:  | | | X-- Preferred lifetime 0.
RCV:  | | | X-- Max lifetime 0.
RCV:  | | X-- IAPREFIX 2001:db8:7997:1c00::/56
RCV:  | | | X-- Preferred lifetime 0.
RCV:  | | | X-- Max lifetime 0.
RCV:  | | X-- IAPREFIX 2001:db8:7994:d500::/56
RCV:  | | | X-- Preferred lifetime 14400.
RCV:  | | | X-- Max lifetime 14700.
RCV:  X-- Server ID: 00:03:00:01:84:26:2b:db:5f:8b
PRC: Bound to lease 00:03:00:01:84:26:2b:db:5f:8b.
XMT:  | | | X-- Preferred lifetime +7200
XMT:  | | | X-- Max lifetime +7500
XMT:  | | X-- IAPREFIX 2001:db8:7994:d500::/56
XMT:  | | | X-- Preferred lifetime +7200
XMT:  | | | X-- Max lifetime +7500
XMT:  V IA_PD appended.
XMT: Rebind on eth0.4, interval 1000ms.

from /var/lib/dhcp/dhclient6.leases (again somewhat anonymized):

lease6 {
  interface "eth0.4";
  ia-pd 4e:02:74:7e {
    starts 1507917549;
    renew 7200;
    rebind 10800;
    iaprefix 2001:db8:7997:1b00::/56 {
      starts 1507917549;
      preferred-life 0;
      max-life 0;
    }
    iaprefix 2001:db8:7993:200::/56 {
      starts 1507917549;
      preferred-life 0;
      max-life 0;
    }
    iaprefix 2001:db8:7993:1100::/56 {
      starts 1507917549;
      preferred-life 0;
      max-life 0;
    }
    iaprefix 2001:db8:7993:5d00::/56 {
      starts 1507917549;
      preferred-life 0;
      max-life 0;
    }
    iaprefix 2001:db8:7993:f600::/56 {
      starts 1507917549;
      preferred-life 0;
      max-life 0;
    }
    iaprefix 2001:db8:7996:2d00::/56 {
      starts 1507917549;
      preferred-life 0;
      max-life 0;
    }
    iaprefix 2001:db8:7996:9600::/56 {
      starts 1507917549;
      preferred-life 0;
      max-life 0;
    }
    iaprefix 2001:db8:7997:300::/56 {
      starts 1507917549;
      preferred-life 0;
      max-life 0;
    }
    iaprefix 2001:db8:7997:1400::/56 {
      starts 1507917549;
      preferred-life 0;
      max-life 0;
    }
    iaprefix 2001:db8:7997:1a00::/56 {
      starts 1507917549;
      preferred-life 0;
      max-life 0;
    }
    }
    iaprefix 2001:db8:7997:1c00::/56 {
      starts 1507917549;
      preferred-life 0;
      max-life 0;
    }
    iaprefix 2001:db8:7994:d500::/56 {
      starts 1507917549;
      preferred-life 14400;
      max-life 14700;
    }
  }
  option dhcp6.client-id 0:3:0:1:f0:ad:4e:2:74:7e;
  option dhcp6.server-id 0:3:0:1:84:26:2b:db:5f:8b;
  option dhcp6.name-servers 2001:db8:ff09:10a::55,2001:db8:ff09:10a::114;
}




_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users