Re: DHCPv6 IA_PD - how-to
- Reply: Chris Ross : "Re:_Â DHCPv6_IA_PD_-_how-to"
- Reply: Roy Marples : "Re:_Â DHCPv6_IA_PD_-_how-to"
- In reply to: Chris Ross : "Re:_Â DHCPv6_IA_PD_-_how-to"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 27 Jul 2024 03:21:08 UTC
Hi Chris, all I am struggling the same problem too, and here is my working configuration for dhcp6c in my test environment. Hope this can be help. vtnet0 is uplink, where I expect to receive RA from ISP. If upstream router send RA with PD with 2001:db8:beef::/56, dhcp6c will add sla-len (8 in this configuration) to the prefix length (/56) to get the final prefix length of /64. Also, dhcp6c will add sla-id (11 and 12, decimal) to prefix, so that I will use 2001:db8:beef:b/64 and 2001:db8:beef:c/64 for assigning my internal network interfaces (vtnet1 and vtnet2). Well, I am wondering how I can tell "authentication isp_auth" entry to use the "isp_key", especially when I have multiple "keyinfo" entries. ===== /usr/local/etc/dhcp6c.conf ===== keyinfo isp_key { realm "example.org"; keyid 1; secret "JTY0XXXXXXXXXXXXXXX=="; # masked. }; authentication isp_auth { protocol delayed; }; interface vtnet0 { script "/usr/local/etc/dhcp6c-script.sh"; send ia-pd 3; send authentication isp_auth; request domain-name-servers; request domain-name; request ntp-servers; #send rapid-commit; }; id-assoc pd 3 { prefix-interface vtnet1 { sla-id 11; sla-len 8; }; prefix-interface vtnet2 { sla-id 12; sla-len 8; }; }; ===== Thanks and Best Regards, -- moto kawasaki <moto@kawasaki3.org> +81-90-2464-8454 on Wed, 24 Jul 2024 00:04:12 -0400, Chris Ross <cross+freebsd@distal.com> wrote: > > > > On Jul 23, 2024, at 13:23, Roy Marples <roy@marples.name> wrote: > > ---- On Tue, 23 Jul 2024 18:11:18 +0100 cross+freebsd@distal.com wrote ---- > > > > > >> tl;dr; anyone have a good IPv6 network setup based on an IA_PD from > >> their provider? Any details or advice to share? > > > > > > I'm upstream for dhcpcd. > > All options related to PD are configurable in the dhcpcd.conf(5) configuration file. There are also some examples. > > My apologies, I think I may$B!G(Bve misremembered which attempt produced which > result. More careful investigation suggests it was actually dhclient I > was unable to configure in a config file. So, I$B!G(Bm not sure I ever even > got the PD recognized by dhcpcd. Perhaps I was not finding the right > examples. > > > What are you struggling with specifically? > > First, I$B!G(Bd like to request of my ISP the PD and understand the answer. > If dhcpcd can also set up internal networks within the PD, that would > be ideal. Again, I found with earlier work that some clients are able > to do more with $B!H(Busing$B!I(B the network than others. I have half a dozen > ish internal networks that I assign /64$B!G(Bs to, and distribute via RA. > > Perhaps an answer to Karl$B!G(Bs question might provide me with what I need > as well. Otherwise, an example or three of receiving and utilizing an > IA_PD response is what I am looking for. > > - Chris