Project

General

Profile

Actions

Bug #8717

closed

'DHCPv6 Static Mappings for this Interface' option isn't working (2.4.4-DEV)

Added by Azamat Khakimyanov over 5 years ago. Updated over 5 years ago.

Status:
Not a Bug
Priority:
Normal
Assignee:
-
Category:
DHCP (IPv6)
Target version:
-
Start date:
07/29/2018
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:

Description

00:04:53:a9:48:07:03:28:11:a0:ee:27:b7:f6:37:0d:63:26

'DHCPv6 Static Mappings for this Interface' option isn't working (2.4.4-DEV)

I'm using 2.4.4.a.20180724.1706 CE (Virtual pfSense and vPC) and I assigned LAN as IPv6 interface with static IPv6: 2001:db8:1:1::a:1/64. Then I set up DHCPv6 Server with range 2001:db8:1:1::d:0000-2001:db8:1:1::d:FFFF and my Ubuntu received IPv6-address: 2001:db8:1:1::d:2000/128 and I see this Lease into Status/DHCPv6 Leases menu.

DHCPv6 Server config: cat /var/dhcpd/var/db/dhcpd6
option domain-search-list code 119 = text;

default-lease-time 7200;
max-lease-time 86400;
log-facility local7;
one-lease-per-client true;
deny duplicates;
ping-check true;
update-conflict-detection false;
authoritative;
subnet6 2001:db8:1:1::/64 {
range6 2001:db8:1:1::d:1000 2001:db8:1:1::d:2000;
do-forward-updates false;
option dhcp6.name-servers 2001:db8:1:1::a:1;

}
ddns-update-style none;

'cat /var/dhcpd/var/db/dhcpd6.leases' showed:
  1. The format of this file is documented in the dhcpd.leases(5) manual page.
  2. This lease file was written by isc-dhcp-4.3.6-P1
  1. authoring-byte-order entry is generated, DO NOT DELETE
    authoring-byte-order little-endian;

server-duid "\000\001\000\001\"\360\243@\000\010\242\014\315\031";

ia-na "@\375lc\000\004S\251H\007\003(\021\240\356'\267\3667\015c&" {
cltt 0 2018/07/29 16:15:08;
iaaddr 2001:db8:1:1::d:2000 {
binding state active;
preferred-life 4500;
max-life 7200;
ends 0 2018/07/29 18:15:08;
}
}

Then I tried to create DHCPv6 Static Mappings so I just pressed "Add static mapping" for this dynamic lease (Status/DHCPv6 Leases menu) and set for this static lease IPv6: 2001:db8:1:1::d:24 and pressed Save. After that I saw two Leases into Status/DHCPv6 Leases menu:
- dynamic 2001:db8:1:1::d:2000 is online
- static 2001:db8:1:1::d:24 is offline
both for the same DUID. And I've never saw static lease being online.

With Static Mapping: cat /var/dhcpd/etc/dhcpdv6.conf showed
option domain-name "localdomain";
option ldap-server code 95 = text;
option domain-search-list code 119 = text;

default-lease-time 7200;
max-lease-time 86400;
log-facility local7;
one-lease-per-client true;
deny duplicates;
ping-check true;
update-conflict-detection false;
authoritative;
subnet6 2001:db8:1:1::/64 {
range6 2001:db8:1:1::d:1000 2001:db8:1:1::d:2000;
do-forward-updates false;
option dhcp6.name-servers 2001:db8:1:1::a:1;

}
host s_lan_0 {
host-identifier option dhcp6.client-id 00:04:53:a9:48:07:03:28:11:a0:ee:27:b7:f6:37:0d:63:26;
fixed-address6 2001:db8:1:1::d:24;
option host-name HAT;
}
ddns-update-style none;

To delete dynamic lease, I stopped interface on my Ubuntu and deleted manualy Dynamic Lease from '/var/dhcpd/var/db/dhcpd6.leases' and restarted DHCPd 'pfSsh.php playback restartdhcpd'. When I run interface on my PC, it again had old IPv6-address (the same as it was from Dynamic DHCP) but nothing inside '/var/dhcpd/var/db/dhcp6.lease'. Static Mapping didn't work at all.

After I deleted static mapping and reinitiated port nothing into Status/DHCPv6 Leases menu but on Ubuntu ifconfig still shows 2001:db8:1:1::d:2000 and inside 'cat /var/dhcpd/etc/dhcpdv6.conf' I still saw Static Mapping entry. So I restarted DHCPd, Static DHCP mapping entry dissappead from '/var/dhcpd/etc/dhcpdv6.conf'. I reinitiate connection from my PC but into Status/DHCPv6 Leases menu there wasn't dynamic lease for my PC and nothing inside '/var/dhcpd/var/db/dhcp6.lease'.
Ping from pfSense for my PC IPv6-address works:
PING6 2001:db8:1:1::a:1 --> 2001:db8:1:1::d:2000
16 bytes from 2001:db8:1:1::d:2000, icmp_seq=0 hlim=64 time=0.319 ms
16 bytes from 2001:db8:1:1::d:2000, icmp_seq=1 hlim=64 time=0.330 ms
16 bytes from 2001:db8:1:1::d:2000, icmp_seq=2 hlim=64 time=0.357 ms

--- 2001:db8:1:1::d:2000 ping6 statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.319/0.335/0.357/0.016 ms

Also I tried all of these steps on 2.4.4.a.20180728.1424 with the same result.

Actions #1

Updated by Jim Pingle over 5 years ago

  • Category set to DHCP (IPv6)
  • Status changed from New to Not a Bug

This is a client issue on Ubuntu. You have to force it to release the IPv6 address before it will pick up a new assignment, even if it switches to a static one.

For example:

$ sudo dhclient -6 -r ens160
$ sudo dhclient -6 ens160

Also it should be picking up a /64 not a /128, the configuration for DHCPv6 and RA is set for /64 but a fresh Mint VM still sees /128 which should be updated via RA. I have another Mint system that sees /64 with a nearly identical config so again, it appears to be a client issue.

Actions

Also available in: Atom PDF