Find router's IPv6 address

I may have broken DHCPv4 and no longer getting any IPv4 address. IPv6 is working, and I'm able to access the forum this way.

But how can I figure out the IPv6 address of my router? route -6 doesn't help.

Never mind. Secondary IPv6 nameserver turned out to be router's address, and I was able to successfully connect and disable TFTP server.

Was trying to find it from terminal and panicked a bit... how do I see nameservers on Linux terminal though?

If you lose access to the router, you can ping from a client ff02::2 (ping ff02::2%${interface }) and all routers on the local link will respond. In the normal home setup only one device should respond and it's your router...
But be aware, because of some shitty design choices you can not access web pages with that address. But with ssh it works. In case you have more then one active interface, on Linux you have to add the interface id: ssh root@${linklocaladdr}%${interface}.

If you are at the router, use ip -br address show for a brief listing of all addresses. And cat /etc/resolv.conf gives you the current nameserver.

2 Likes

This is good to know, thanks. And if IPv6 is working, you can guess at the router's v6 address using nameservers on nmcli device show or networkctl status if you're using a Linux desktop in systemd env. No idea how to do it otherwise, I couldn't figure out anything with the ip tool.

I'm still lost why dnsmasq's TFTP will break DHCP though. How frustrating.

ip neigh show
1 Like

Reply must be 10 chars long: :person_facepalming:

You can also limit the output on addr, neighbor, and route with ip -4 and ip -6...

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.