I went through some trouble to get this set up, so I'm sharing for future use.
I'm using Gentoo Linux with net-dialup/ppp, net-misc/radvd, net-misc/dhcpcd, and with ipv6 enabled in the kernel and in USE flags. I was adding v6 to an existing v4 setup.
- Configure dhcpcd.conf to request a WAN link (NA) v6 address, and your LAN address space (PD)
allowinterfaces ppp0
noipv6rs
nogateway
persistent
interface ppp0
ipv6rs
ia_na
# Replace eth2.* with your LAN interfaces/VLANs for auto assignment of subnets
ia_pd 1 eth2.10 eth2.12 eth2.20 eth2.31 eth2.32
2. Configure your nftables to allow ICMPv6 types, as well as UDP ports for router advertisement, restrict to link local communication
chain input {
iifname "ppp0" icmpv6 type { nd-router-advert, mld-listener-report, nd-neighbor-solicit, nd-neighbor-advert, nd-router-solicit, echo-request, echo-reply } ip6 saddr fe80::/10 ip6 hoplimit 64 counter accept
iifname "ppp0" udp dport 546 ip6 saddr fe80::/10 ip6 hoplimit 64 counter accept
3. Configure radvd.conf to take the assigned prefixes and advertise them to local hosts on the VLAN, include your DNS settings as well
#Example, repeat for every LAN interface/VLAN, ::/64 allows radvd to be dynamic as address space changes
interface eth2.10 {
AdvSendAdvert on;
MaxRtrAdvInterval 30;
MinRtrAdvInterval 10;
prefix ::/64 {
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr off;
AdvValidLifetime 259200;
AdvPreferredLifetime 86400;
};
RDNSS 2607:xxxx:xxxx:e90a::1 {
AdvRDNSSLifetime 3600;
};
};
4. Set dhcpcd, and radvd to start with the system, optionally make dhcpcd dependent on net.ppp0
5. Confirm address assignments (non- fe80::/10)
ip -6 -br address
6. Confirm default route (default via)
ip -6 route