SG5100 - active DHCPv6 leases not visible
-
On my SG5100 i have been running DHCPv6 for a while; after the upgrade to 21.05.1-RELEASE i started noticing that some of the leases handed out are not showing up on the DHCPv6 status dashboard, for example right now there are more than 10 devices with active IPv6 leases but only 4 are showing up. This happens even if i reboot a device/release the Ipv6 and get a new lease. I recall there was a defect/bug with DHCPv6 in the previous release that 21.05.1 was supposed to fix, anyone else experiencing this?
-
Are you certain the IPv6 devices are getting leases from DHCPv6 and not using self-assigned addresses from SLAAC?
Are the leases in
/var/dhcpd/var/db/dhcpd6.leases
?There have been issues in the past with parsing lease data from there since the ISC DHCPv6 daemon can write things out in weird ways, though I haven't seen any issues there myself in quite a long time.
-
@jimp Yes, i have verified the lease file on it there are 16 leases but the GUI is only displaying 5 leases
-
Anything different or unusual about the lease data in the file for the hosts that don't show compared to the ones that do show?
-
Over here, I see have the situation the other way around.
A dhcp6leases file with only 3 leases - 2 of them are expired, and only one is active.
I guess the active one (with the text "binding state active;") are displayed, not the expired ones.
So, only one IPv6 was assigned from the pool.But my GUI page shows other DHCP6 leases. All the others are "static MAC (= DUID) leases" - and all these devices are using the IPv6 I assigned to them.
These are not stored in the /var/dhcpd/var/db/dhcpd6.leases file. -
@jimp nothing unusual, i see "binding" on active leases and there are some other leases in the file with no IP address
*ia-na "\000\000\000\000\000\003\000\001"\331\004P\324\221" {
cltt 2 2021/10/26 19:06:10;
}ia-na "
\221q2\000\003\000\001\000\0212q\221
" {
cltt 3 2021/10/27 09:45:18;
iaaddr [redacted] {
binding state active;
preferred-life 7200;
max-life 43200;
ends 3 2021/10/27 21:45:18;
}
}* -
@jimp See outputs below....
FROM SG-5100 DHCP GUI:
FROM "/var/dhcpd/var/db/dhcpd6.leases" Lease FILE:
authoring-byte-order entry is generated, DO NOT DELETE
authoring-byte-order little-endian;server-duid "[REDACTED]";
ia-na "[REDACTED]" {
cltt 4 2021/10/28 06:46:19;
iaaddr [REDACTED] {
binding state active;
preferred-life 27000;
max-life 43200;
ends 4 2021/10/28 16:26:10;
}
}ia-na "[REDACTED]" {
cltt 4 2021/10/28 11:52:14;
iaaddr [REDACTED] {
binding state active;
preferred-life 27000;
max-life 43200;
ends 4 2021/10/28 23:52:14;
}
}ia-na "[REDACTED]" {
cltt 4 2021/10/28 12:16:19;
iaaddr [REDACTED] {
binding state active;
preferred-life 27000;
max-life 43200;
ends 5 2021/10/29 00:16:19;
}
}ia-na "[REDACTED]" {
cltt 4 2021/10/28 11:24:51;
iaaddr [REDACTED] {
binding state active;
preferred-life 20157;
max-life 43200;
ends 4 2021/10/28 23:24:51;
}
}ia-na "[REDACTED]" {
cltt 4 2021/10/28 11:56:39;
iaaddr [REDACTED] {
binding state active;
preferred-life 27000;
max-life 43200;
ends 4 2021/10/28 23:56:39;
}
}ia-na "[REDACTED]" {
cltt 4 2021/10/28 12:08:29;
iaaddr [REDACTED] {
binding state active;
preferred-life 27000;
max-life 43200;
ends 5 2021/10/29 00:08:29;
}
}ia-na "[REDACTED]" {
cltt 3 2021/10/27 22:55:03;
}ia-na "[REDACTED]" {
cltt 3 2021/10/27 17:00:43;
}ia-na "[REDACTED]" {
cltt 3 2021/10/27 21:46:16;
}ia-na "[REDACTED]" {
cltt 4 2021/10/28 11:10:44;
iaaddr [REDACTED] {
binding state active;
preferred-life 27000;
max-life 43200;
ends 4 2021/10/28 23:10:44;
}
}ia-na "[REDACTED]" {
cltt 3 2021/10/27 18:03:46;
}ia-na "[REDACTED]" {
cltt 4 2021/10/28 11:08:53;
iaaddr [REDACTED] {
binding state active;
preferred-life 7200;
max-life 43200;
ends 4 2021/10/28 23:08:53;
}
}ia-na "[REDACTED]" {
cltt 3 2021/10/27 22:53:32;
}ia-na "[REDACTED]" {
cltt 3 2021/10/27 21:45:18;
}ia-na "[REDACTED]" {
cltt 4 2021/10/28 12:22:00;
iaaddr [REDACTED] {
binding state active;
preferred-life 23597;
max-life 43200;
ends 5 2021/10/29 00:22:00;
}
}ia-na "[REDACTED]" {
cltt 4 2021/10/28 04:49:16;
iaaddr [REDACTED] {
binding state active;
preferred-life 27000;
max-life 43200;
ends 4 2021/10/28 16:49:16;
}
}ia-na "[REDACTED]" {
cltt 4 2021/10/28 08:49:05;
iaaddr [REDACTED] {
binding state active;
preferred-life 27000;
max-life 43200;
ends 4 2021/10/28 20:49:05;
}
}ia-na "[REDACTED]" {
cltt 4 2021/10/28 05:37:30;
iaaddr [REDACTED] {
binding state active;
preferred-life 27000;
max-life 43200;
ends 4 2021/10/28 17:37:30;
}
}ia-na "[REDACTED]" {
cltt 4 2021/10/28 13:10:10;
iaaddr [REDACTED] {
binding state active;
preferred-life 27000;
max-life 43200;
ends 5 2021/10/29 01:10:10;
}
}ia-na "[REDACTED]" {
cltt 4 2021/10/28 13:17:10;
iaaddr [REDACTED] {
binding state active;
preferred-life 27000;
max-life 43200;
ends 5 2021/10/29 01:17:10;
}
}ia-na "[REDACTED] {
cltt 4 2021/10/28 13:24:13;
iaaddr [REDACTED] {
binding state active;
preferred-life 27000;
max-life 43200;
ends 5 2021/10/29 01:24:13;
}
}ia-na "[REDACTED]" {
cltt 4 2021/10/28 13:44:58;
iaaddr [REDACTED] {
binding state active;
preferred-life 27000;
max-life 43200;
ends 5 2021/10/29 01:44:58;
}
}