IPv6 setup for allowing Prefix-Delegation to downstream routers

I have been given an /56 delegation from ISP.

This is what my interfaces look like:

That wan_6rd interface has been automatically configured by OpenWRT.

Output of ifstatus wan_6rd:

{
        "up": true,
        "pending": false,
        "available": true,
        "autostart": true,
        "dynamic": true,
        "uptime": 5206,
        "l3_device": "6rd-wan_6rd",
        "proto": "6rd",
        "updated": [
                "addresses",
                "routes",
                "prefixes",
                "data"
        ],
        "metric": 0,
        "dns_metric": 0,
        "delegation": true,
        "ipv4-address": [

        ],
        "ipv6-address": [
                {
                        "address": "2001:2003:f275:7400::1",
                        "mask": 38
                }
        ],
        "ipv6-prefix": [
                {
                        "address": "2001:2003:f275:7400::",
                        "mask": 56,
                        "class": "wan_6rd",
                        "assigned": {
                                "lan": {
                                        "address": "2001:2003:f275:7410::",
                                        "mask": 64
                                }
                        }
                }
        ],
        "ipv6-prefix-assignment": [

        ],
        "route": [
                {
                        "target": "::",
                        "mask": 0,
                        "nexthop": "::50df:fffe",
                        "metric": 4096,
                        "source": "2001:2003:f275:7400::1\/38"
                },
                {
                        "target": "::",
                        "mask": 0,
                        "nexthop": "::50df:fffe",
                        "metric": 4096,
                        "source": "2001:2003:f275:7400::\/56"
                }
        ],
        "dns-server": [

        ],
        "dns-search": [

        ],
        "inactive": {
                "ipv4-address": [

                ],
                "ipv6-address": [

                ],
                "route": [

                ],
                "dns-server": [

                ],
                "dns-search": [

                ]
        },
        "data": {
                "zone": "wan"
        }
}

Output of ifstatus lan:

{
        "up": true,
        "pending": false,
        "available": true,
        "autostart": true,
        "dynamic": false,
        "uptime": 5273,
        "l3_device": "br-lan",
        "proto": "static",
        "device": "br-lan",
        "updated": [
                "addresses",
                "routes"
        ],
        "metric": 0,
        "dns_metric": 0,
        "delegation": true,
        "ipv4-address": [
                {
                        "address": "192.168.2.1",
                        "mask": 24
                }
        ],
        "ipv6-address": [

        ],
        "ipv6-prefix": [

        ],
        "ipv6-prefix-assignment": [
                {
                        "address": "2001:2003:f275:7410::",
                        "mask": 64,
                        "local-address": {
                                "address": "2001:2003:f275:7410::1",
                                "mask": 64
                        }
                }
        ],
        "route": [

        ],
        "dns-server": [

        ],
        "dns-search": [

        ],
        "inactive": {
                "ipv4-address": [

                ],
                "ipv6-address": [

                ],
                "route": [

                ],
                "dns-server": [

                ],
                "dns-search": [

                ]
        },
        "data": {

        }
}

I'm unable to request an IPv6 prefix delegation to my Ubuntu/Docker Host. It should be possible by doing: "/sbin/dhclient -6 -P -d eno1"

Try to assign to LAN a bigger prefix, like /60. With the /64 you have currently assigned it cannot delegate anything downstream.

1 Like