Tutorial on obtaining IPv6 addresses for PandoraBox routers, pandoraboxipv6

Source: Internet
Author: User

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.