Linux – How to assign multiple IPv6 addresses with DHCPv6 to a single interface

dhcpipv6linuxpcap

This seems to be possible based on the spec rfc 3315 page 23:

Excerpt:

The configuration information in an IA consists of one or more IPv6
addresses along with the times T1 and T2 for the IA. See section
22.4 for the representation of an IA in a DHCP message.

Yet, I haven't been able to configure my DHCPv6 client to request these multiple IP addresses on an interface.

Does anyone know how to do this for a Linux DHCPv6 client (preferably running RedHat 6+, CentOS 6+, or Fedora), or on Windows?

My end goal is to do some testing with PCAP files. I would prefer to be able to generate these files myself, but if I can't get my client configured, I would like to find some PCAP files on the internet that I could use. So far, I haven't found anything.

Thanks!

Best Answer

I haven't tried this, but here's what I think would work:

Use brctl addbr to create a virtual switch. Create two virtual interfaces (with commands like ip tuntap add mode tap). Then add both tap interfaces and your physical interface to the bridge (e.g. brctl addif tap0). Now you have two interfaces on which to run dhcp clients.