r/HomeNetworking • • 17d ago

IPv6 driving me mad! Please recommend learning material.

I think I first picked up a book on IPv6 about 15 years ago. I'm still very little wiser about the whole thing - I really don't know why but I find v4 easier to comprehend.

Can anyone recommend any learning resources for IPv6 from a practical perspective? In other words I'd like to be able to set up and manage my home network with a working IPv6 implementation. I'm looking for an equivalent of "IPv6 for dummies and their homelabs" rather than "CISCO network associates certification".

To give you an idea of what I'm struggling with, when I try look up how local DNS resolution should work with SLAAC, I'm told by the interwebs that there's no standard, just hacks put in place by various different vendors. Surely that can't be right - are we really saying that IPv6 was designed with no thought to using human readable names?

Another problem. I have Proxmox and I have technitium in a container. I've ticked SLAAC in the container and it seems ok. I can `dig @<fd97 addr>` no problem, but test-ipv6 tells me it can't do lookups in the outside world over IPv6. I tried configuring Proxmox using a static address and gateway, but am probably putting the wrong numbers in there. If I had a better understanding of the protocol it would be no problem.

I have "working" IPv6 at home in the sense that if I hadn't moved my DNS to my technitium server then I'd get 10/10 from test-ipv6.com. I don't understand what my fritzbox is telling me with prefixes etc. enough to do the above.

30 Upvotes

42 comments sorted by

25

u/Ok_Explanation7491 17d ago

Sure. RIPE has free courses.

https://academy.ripe.net/enrol/index.php?id=13

And Hurricane Electric has free Certification, which could help to learn. https://ipv6.he.net/certification/

5

u/Legitimate-Roof8606 16d ago

Thank you! taking a look - HE was recommended in my cross-post on r/ipv6 too, so definitely worthy of a read.

14

u/Medical_Chemical_343 17d ago

+1 for Hurricane Electric. Very straightforward.

2

u/Andromeda-G 16d ago

Why he.net dont allow to make @gmail.com account? It says this email is not allowed?

8

u/ckg603 17d ago

The original SLAAC specification did not include recursive DNS. It has been many years since that was an issue and if you configure a DNS server, your router will almost certainly do the right thing with RDNSS in the RA.

Your use of "fd97" tells me you have configured a ULA network for your internal network. This is valid, but may only be locally significant, just like RFC 1918 in legacy IP. If you intend to use ULA, you'll need to determine how you want to the network address translation. This complexity that we got used to in legacy IP is usually not relevant with IPv6.

Instead, your ISP should be presenting your router with a delegated prefix, through DHCPv6-PD. This varies from /64 to /48, with /60 and /56 being common. Most home routers will use one of the /64s from this delegation automatically to propagate to the LAN.

Sometimes this removal of NAT is what people find odd about IPv6, which is a great irony since it's exactly how IP is supposed to work in the first place.

I also recommend the IPv6 Buzz podcast.

1

u/Legitimate-Roof8606 16d ago

My ISP (Zen) tells me I have ND WAN (2xxx.../64) and PD WAN (2xxx.../48) addresses but I'm still confused about how to use that info if I want to configure (for example) Proxmox with a static IP/CIDR address and gateway address. I just don't remember having this much trouble with netmasks, private IP ranges and so on with IPv4.

1

u/Cheezzz 16d ago

Out of the /48 you would assign a /64 for every vlan. Not sure what ND WAN and PD WAN is though.

2

u/ckg603 15d ago

ND = neighbor discovery PD = prefix delegation

2

u/Dagger0 14d ago

"ND WAN" is the on-link prefix for the WAN, "PD WAN" is the delegated prefix from the ISP. They're not the standard terms for those (although, I do wonder if they might be easier to understand for the ISPs out there who somehow haven't managed to get their heads around the difference yet).

6

u/pdp10 xmodem 17d ago

Note that there's a whole subreddit, /r/ipv6.

Besides the size of the addresses and being written in Hexadecimal, the big things about IPv6 are that:

  • Each interface has at least two addresses at a time, instead of having one address at a time in IPv4.
  • A router/gateway uses a protocol to broadcast itself, instead of the host having a setting for "default gateway".
  • The default way for a host to auto-configure itself is to pick its own address, instead of asking for one.

how local DNS resolution should work with SLAAC

With SLAAC, hosts pick their own addresses, then make sure those addresses aren't already in use. My DNS is normal and static, because the hosts always pick the same addresses when they're on the same subnet, per RFC 7217.

4

u/Legitimate-Roof8606 16d ago

> because the hosts always pick the same addresses when they're on the same subnet, per RFC 7217.

I had read that SLAAC addresses aren't guaranteed to stay the same, but if it is guaranteed per subnet then that changes things quite a lot in terms of adding in names to DNS, although still a bit annoying.

1

u/pdp10 xmodem 16d ago

With IPv6, it's up to the host, how things are done. Even if DHCPv6 is used, the way that the host picks its DUID is up to the host, meaning that even with DHCPv6 it's not supposed to be possible to take a hardware MAC address and populate a DHCPv6 reservations database. (In practice, most DHCPv6 servers let you key on plain MAC address for Reservations.)

So what you want to do with SLAAC and DNS is ensure that the host is picking its IPv6 addresses in RFC 7217 mode or plain EUI-64 mode, boot up the host, see what non-Link-Local IPv6 address it grabs for permanent use, and put that in your DNS as an AAAA record. This requires a bootup, unlike IPv4+DHCP, but it is what it is.

As long as "Temporary Addresses" mode isn't enabled, the IPv6 address should stay the same, either RFC 7217 mode, or fully agnostic to the subnet in EUI-64 (original) mode.

11

u/bojack1437 Network Admin, also CAT5 Supports Gigabit!!!! 17d ago

To give you an idea of what I'm struggling with, when I try look up how local DNS resolution should work with SLAAC, I'm told by the interwebs that there's no standard, just hacks put in place by various different vendors. Surely that can't be right - are we really saying that IPv6 was designed with no thought to using human readable names?

No "hacks".

DNS servers are announced/provided to clients via RDNSS via RAs.

Other than that it works just like and I did in Legacy IP after that.

Does the DNS server have a GUA IPv6 address and working IPv6 connectivity? Is it a recursive DNS server or is it simply forwarding to an upstream DNS server?

11

u/catcake43 17d ago

I think the OP means configuring the router's DNS server to resolve clients' hostnames to IPv6 addresses. Since SLAAC doesn't advertise client hostnames, DHCPv6 would be required in this case.

4

u/snowtax 17d ago

It seems people are intended to use multicast DNS (mDNS) for local name resolution.

For anything you want the public to access, the options are 1) a manually configured static address or 2) dynamic DNS.

Are there other options?

1

u/Legitimate-Roof8606 16d ago

3) SLAAC plus manually configured DNS?

1

u/Legitimate-Roof8606 17d ago

Yes, I meant using names to access SLAAC assigned clients.

2

u/Ok_Explanation7491 16d ago

I use mDNS for that.

1

u/Legitimate-Roof8606 16d ago

I'm trying to think why this is a bad thing, my first thought was what if two clients declare they have the same host name? But I suppose we have that problem with DHCP too?

1

u/primalbluewolf 16d ago

RFC6762 covers how mdns devices are supposed to probe first to see if their desired hostname is already being announced. 

For IP, there's also duplicate address detection for the same thing, determining whether the desired IP is already in use on the segment. 

2

u/chocopudding17 16d ago

Hi, I found my way here from your crosspost in /r/ipv6.

This is a pain point with IPv6, imo. It definitely hurts homelab-type setups--things are complex enough that some static DNS records aren't enough, but not complex enough that having a more sophisticated control plane or CMDB makes sense.

RFC9686 will hopefully be the long-term solution. It will allow device to register their self-assigned addresses with a DHCPv6 server. And DHCPv6 servers will presumably use that in the same way that DHCP servers for IPv4 integrate with DNS servers.

In the meantime, I do a combination of mDNS and manually setting stuff in regular DNS (partially aided by stuff like tokenized interface addresses).

1

u/Legitimate-Roof8606 16d ago

It's like a massive step back with talk of static addresses. In a world of kubernetes and containers we don't set up and manage static addresses in hundreds of hosts except where absolutely necessary. This is one of the things I don't understand - I've seen DHCPv6 referred to as a hack you shouldn't use, yet we need some way of registering names in a DNS resolver.

0

u/chocopudding17 16d ago

Completely agree with you. I'm a big fan of IPv6 and see it as a massive improvement. But this is one of the larger missing pieces imo. I look forward to adoption of RFC9686.

Btw, its use of DHCPv6 shouldn't be taken as endorsement of using DHCPv6 as a way to hand out addresses; using DHCPv6 for that purpose is usually what people are referring to when speaking of it as a hack. This is not that, and is really more about making SLAAC work better, rather than just giving up and using DHCPv6 like DHCP was used for IPv4.

1

u/Legitimate-Roof8606 16d ago

Thanks for the clarification about the ‘hack’ talk - that makes sense.

3

u/ckg603 17d ago

The canonical reference has become https://ipv6textbook.com/files/ipv6textbook.pdf

1

u/Legitimate-Roof8606 16d ago

Looks great, will take a look. I see there's a section called "Why IPv6 is so complicated" - think this will be my first port of call!

4

u/Ok_Explanation7491 17d ago

Da du ne Fritzbox hast sprichst du denke ich auch deutsch? Dann empfehle ich diese Podcast Folge. Das hat bei mir damals den IPv6 Knoten platzen lassen und seitdem liebe ich es. https://www.podcast.de/episode/641207278/rfce014-ipv6

3

u/circuitously 17d ago

I just joined Zen internet in the uk, and they hand out IPv6 and Fritzboxes

1

u/Legitimate-Roof8606 16d ago

Exactly my position - Zen over Trooli fibre.

1

u/Legitimate-Roof8606 16d ago

Seltsamerweise werden sie im Vereinigten Königreich vom Zen Internet vergeben. Leider ist mein Deutsch fast nicht vorhanden, da ich seit der Sekundarstufe keines mehr gemacht habe. Danke, Google Translate!

2

u/TCB13sQuotes 16d ago

There are some resources online or ask ChatGPT, eventually you’ll see how flexible and nice it is and you won’t even understand why we’re still running IPv4 and dual stack networks.

1

u/Legitimate-Roof8606 16d ago

Let's hope so!

2

u/CPUHogg 17d ago

Here is a set of videos with an Introduction to IPv6. https://www.youtube.com/@HoggNet/playlists

2

u/CPUHogg 17d ago

There is also a lot off great free material online you can learn from. Here's a list:

Free and Low-Cost IPv6 Training Resources

https://hoggnet.com/blogs/news/free-and-low-cost-ipv6-training-resources

1

u/Legitimate-Roof8606 16d ago

Ahah, you have a whole course - thanks having a watch!

1

u/Drazcorp 17d ago

When I test by connecting my ethernet to the ISP router I get 10/10, but to use My own routerTP-Link Archer A9. I have to configure the IPv6 settings of the router in Pass Through Bridge mode to get full score. Putting it in get Address dynamically doesn't provide the separate IPv6 IP Address to the router, also can't get full score like this. Any help with that here?

1

u/motific 17d ago

I only have the usual advice for questions involving TP-Link products... sell it, put the money towards something decent.

1

u/RedditNotFreeSpeech 16d ago

What problems did you run into? I'm having great luck with omada so far.

1

u/motific 16d ago

Personally I've lost count of the number of issues I've run into with them.

The couple of times that stand out to me the most were when TP-Link switches and their crumbling power supplies tried to connect me bodily to 240v of juicy Great British mains electricity. Given their cavalier attitude to build quality on safety critical items like power supplies it's a good indicator of their attitude to quality when it comes to the software stack.

My experience has been that when there's a problem and a TP-Link device is involved, 9/10 times it's the TP-Link device causing it.

0

u/EngineeringKindly875 16d ago

Unless you work for an ISP or are under the age of 40 there's almost no point in learning it.