[pve-devel] [PATCH v4 cluster/network/manager/qemu-server/container/docs 00/33] Add support for DHCP servers to SDN

Stefan Lendl s.lendl at proxmox.com
Tue Nov 21 12:23:18 CET 2023


"DERUMIER, Alexandre" <alexandre.derumier at groupe-cyllene.com> writes:

>>>  * dnsmasq and IPv6 (and DHCP in general) do not really play well
>>>together,
>>>    so using subnets with IPv6 configured is wonky
>
> I didn't have tested yet, but it's seem that dnsmasq only support old
> classic duid reservation and not mac ?
>

I tested the DHCPv6 setup now and unfortunately it does not work fully.

I have a VNet with both IPv4 and IPv6 subnets.
The IPAM part works correctly, registering both IPv4 and IPv6.
In the VM I can get an IPv4 from the DHCP but IPv6 does not work.

I only get a /128 address but I configured a /64 subnet.
For dual stack as well as only IPv6. Here my setup for only IPv6:

subnet.cfg:
subnet: DHCPNAT3-dead:beef::-64
	vnet dhcpnat3
	dhcp-range start-address=dead:beef::100,end-address=dead:beef::200
	gateway dead:beef::1

Upon adding a VM, I get an IP [dead:beef::100]

ethers file looks correct according to your syntax with:

BC:24:11:24:5F:AD,[dead:beef::100]

In a VM (archiso) I run `dhclient -6 ens19`, and get the following IP
assigned:

dead:beef::100/128





More information about the pve-devel mailing list