A few guides exist on the topic but almost all assume an EdgeRouter without the switch0 interface (eg the EdgeRouter 4). The EdgeRouter-X is a little bit different in that eth1 is by default part of the parent switch0 interface so we’ll need a few tweaks to the config. You could remove eth1 from switch0 but that’s a story for another day.
IMPORTANT – These configs assume you have the default IPv6 firewall in place from the Basic Setup Wizard.
This first part sets up dhcpv6-pd on eth0 and applies a few settings to the switch0 interface. It assigns switch0 an IP of ::1 in the /48 range ABB assigns you also allows eth0 to grab an IPv6 address via SLAAC.
set interfaces ethernet eth0 dhcpv6-pd pd 0 interface switch0 host-address '::1'
set interfaces ethernet eth0 dhcpv6-pd pd 0 interface switch0 prefix-id ':1'
set interfaces ethernet eth0 dhcpv6-pd pd 0 interface switch0 service slaac
set interfaces ethernet eth0 dhcpv6-pd pd 0 prefix-length /48
set interfaces ethernet eth0 dhcpv6-pd rapid-commit disable
set interfaces ethernet eth0 ipv6 address autoconf
set interfaces ethernet eth0 ipv6 dup-addr-detect-transmits 1
The next part allows IPv6 icmp in through the firewall.
set firewall ipv6-name WANv6_IN rule 30 action accept
set firewall ipv6-name WANv6_IN rule 30 description 'Allow IPv6 icmp'
set firewall ipv6-name WANv6_IN rule 30 protocol ipv6-icmp
Commit and save your changes.
commit; save
Thats it. Commit your changes and you should start seeing IPv6 addresses show up on your WAN (eth0) and switch0 interfaces. Your downstream LAN devices should also start showing IPv6 addresses.