In OpenWRT’s gui “LuCI“ the delegated IPv6 Prefix provided by the ISP is diplayed in the status page in overview. Normally it will be shown under “IPv6 WAN Status“ in the “Network“ section like
IPv6 WAN Status Type: dhcpv6-pd
Prefix Delegated: 2001:db8:1234:5678::/56
Address: 2001:db8::abcd/128
[…]
However I would like to figure out the delegated prefix on the command line. I am aware I can get the addresses assigned via ip a
or the gateway and other routes via ip r
but never manged to retrieve the prefix delegated by the router.
How can I show the delegated ipv6 prefix in the command line interface? Is there a command I am missing or some file it is written into that I am not aware of?