I am trying to get an IPv6 IP that allows me to access my Pi Zero from other devices, specifically for Pi-Hole DNS. I would like to use this IP in the settings of my router to replace the default IPv6 DNS. Currently when running "ifconfig" Pi returns the following IPv4 and IPv6 addresses:
inet 192.168.2.2 netmask 255.255.255.0 broadcast 192.168.2.255 inet6 fe80::be5:fb6e:5196:1f51 prefixlen 64 scopeid 0x20<link>
I am certain that the router supports IPv6 as all the connected smartphones and PCs show their own global IPv6 address inside the control panel of the router and pinging google.com via IPv6 from these devices works. Pinging google.com from Pi returns the following:
pi@raspberrypi:~ $ ping6 google.com connect: Network is unreachable
The Pi is connected to the router via a Micro-USB to Ethernet adapter. I have tried enabling local IPv6 address (ULA) in the router, but it did not change the content of "ifconfig". It did however give the other devices a ULA address. What would I have to do to so that the Pi has a static and functioning IPv6 address that would allow me to specify it inside the DNS settings of the router/devices in the same network.