Re: IPv6 DHCP{C,}D

Roy Marples

Thu Dec 10 09:15:36 2020

Hi meka

On 10/12/2020 00:09, Goran Mekić wrote:
I really don't know if it's intended use, but could dhcpcd be used with
isc dhcpd for stateful IPs? My use case is FreeBSD/jail/VNET based tool
for developing projects and running tests, and it's just easier to use
jail names in configuration files than IPv6 addresses. My server config:

default-lease-time 2592000;
preferred-lifetime 604800;
option dhcp-renewal-time 3600;
option dhcp-rebinding-time 7200;
allow leasequery;

# Global definitions for name server address(es) and domain search list
#option dhcp6.name-servers 3ffe:501:ffff:100:200:ff:fe00:3f3e;
#option dhcp6.domain-search "test.example.com","example.com";

# Set preference to 255 (maximum) in order to avoid waiting for
# additional servers when there is only one
##option dhcp6.preference 255;

option dhcp6.info-refresh-time 21600;
dhcpv6-lease-file-name "/var/db/dhcpd6/dhcpd6.leases";

subnet6 2001:db8:0:1::/64 {
	range6 2001:db8:0:1::100 2001:db8:0:1::9999;

Running dhcpcd in another jail:
# dhcpcd -6 eth0
dhcpcd-9.3.2 starting
DUID 00:01:00:01:27:2e:24:71:00:a0:98:d9:ab:c9
eth0: IAID 98:d9:ab:c9
eth0: soliciting an IPv6 router
eth0: no IPv6 Routers available

Just to mention, between those two jails IPv4 leasing works just fine,
so I know that lower level like VNET and bridge and devd/devfs is fine.

If you feel I lack knowledge, please do point me to something to read,
as I'm IPv6 noob. :o)

The problem is that there is no IPv6 RA server to automate the client to initate DHCP6.

You can either setup rtadvd(8) that comes with FreeBSD and set the M flag in ra options to indicate a DHCP client should pick a Managed address OR force dhcpcd just to pick a managed address like so:

dhcpcd -6 --ia_na eth0

Good luck!


Re: IPv6 DHCP{C,}DGoran Mekić
IPv6 DHCP{C,}DGoran Mekić
Archive administrator: postmaster@marples.name