dhcpcd-discuss

IPv6 DHCP{C,}D

Goran Mekić

Thu Dec 10 00:10:02 2020

Hello,

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)

Regards,
meka

Attachment: signature.asc
Description: PGP signature


Follow-Ups:
Re: IPv6 DHCP{C,}DRoy Marples
Archive administrator: postmaster@marples.name