BJReplay wrote: ↑Mon Sep 28, 2020 4:09 am
Lantis wrote: ↑Mon Sep 28, 2020 2:22 am
Can you type "currentWanIp6" and "currentWanMask6"
 
Code: Select all
currentWanIp6
(2) ["2404:e80:xxxx:xxxx:xxxx:xxxx:xxxx:3abd", "fe80::f00b:f3ff:fe28:3abd"]
 
Hope this helps
 
Yep so as i said, it will only show an IP there if you have a /128 on the WAN.
I think this is ok, but it maybe isn't very clear to people how this should behave.
You can check this with 
ifstatus wan6
Code: Select all
{
        "up": true,
        "pending": false,
        "available": true,
        "autostart": true,
        "dynamic": false,
        "uptime": 1299794,
        "l3_device": "eth0.2",
        "proto": "dhcpv6",
        "device": "eth0.2",
        "updated": [
                "prefixes"
        ],
        "metric": 0,
        "dns_metric": 0,
        "delegation": true,
        "ipv4-address": [
        ],
        "ipv6-address": [
                {
                        "address": "2001:8003:xxxx:xxxx:xxxx:xxxx:xxxx:bdd2",
                        "mask": 128,
                        "preferred": 85209,
                        "valid": 85209
                }
        ],
        "ipv6-prefix": [
                {
                        "address": "2001:8003:xxxx:xxxx::",
                        "mask": 56,
                        "preferred": 85209,
                        "valid": 85209,
                        "class": "wan6",
                        "assigned": {
                                "lan": {
                                        "address": "2001:8003:xxxx:xxxx::",
                                        "mask": 60
                                }
                        }
                }
        ],
        "ipv6-prefix-assignment": [
        ],
        "route": [
                {
                        "target": "::",
                        "mask": 0,
                        "nexthop": "fe80::ab2:58ff:feeb:9fdf",
                        "metric": 4096,
                        "valid": 85209,
                        "source": "2001:8003:xxxx:xxxx::/56"
                },
                {
                        "target": "::",
                        "mask": 0,
                        "nexthop": "fe80::ab2:58ff:feeb:9fdf",
                        "metric": 4096,
                        "valid": 85209,
                        "source": "2001:8003:xxxx:xxxx:xxxx:xxxx:xxxx:bdd2/128"
                }
        ],
        "dns-server": [
                "2606:4700:4700::1111",
                "2606:4700:4700::1001"
        ],
        "dns-search": [
        ],
        "neighbors": [
        ],
        "inactive": {
                "ipv4-address": [
                ],
                "ipv6-address": [
                ],
                "route": [
                ],
                "dns-server": [
                        "2001:8002:xxxx:xxxx::xxxx",
                        "2001:8002:xxxx:xxxx::xxxx"
                ],
                "dns-search": [
                ],
                "neighbors": [
                ]
        },
        "data": {
                "passthru": "xxxxx"
        }
}