Tutorial on obtaining IPv6 addresses for PandoraBox routers, pandoraboxipv6
Get IPv6 address
First, change the network-interface settings. Select the DHCP Client for WAN, = WAN6 = use the default = DHCPv6 client =:
At this time, you can try again to see if the IPv6 address of WAN6 has appeared. If not, you can set the ipv6 option of wan to 1 as described in the official document:
uci set network.wan.ipv6='1'uci commit network
Then you can obtain the IPv6 address After reconnecting:
Install NAT6
First install necessary software:
opkg updateopkg install kmod-ipt-nat6
Then, change the IPv6 ULA prefix to start with "d:
uci set network.globals.ula_prefix="$(uci get network.globals.ula_prefix | sed 's/^./d/')"uci commit network
The official document explains this operation as the default prefix is the address of a non-global route. Large-channel clients only have IPv4 addresses without a Global IPv6 address, therefore, you need to change the prefix to an unused global address.
Next, modify the settings of the DHCP server:
uci set dhcp.lan.ra_default='1'uci commit dhcp
Modify/etc/sysctl. conf and add the following content:
net.ipv6.conf.default.forwarding=2net.ipv6.conf.all.forwarding=2net.ipv6.conf.default.accept_ra=2net.ipv6.conf.all.accept_ra=2
Add firewall rules in/etc/firewall. user:
ip6tables -t nat -I POSTROUTING -s $(uci get network.globals.ula_prefix) -j MASQUERADE
After restarting the router, connect to the computer again to see if the IPv6 address assigned by the router has been obtained: