News for hackers. Stuff that matters.
Re:DHCPv6-PD – First Steps by ninkendo on Wednesday June 05, 2024 @11:32PM (#40593143)
This article hints at what I consider to be the biggest technical drawback to IPv6 for residential use, which is that dynamic prefixes mean your internal LAN IPs are never stable.

The answer to this is usually something like “duh, use DNS”, but how are you going to configure that DNS server if your whole network’s IP address range could change at any time? Yes, multicast DNS is a thing, but it’s not supported in all software (I’m looking at you, OpenBSD, which has no out of the box support for it and I’ve not figured out how to configure it.)

So the real answer is to create a ULA prefix on the side that you generate randomly (or make an easy to remember one because this is residential use, who cares about collisions, it’s a private space) and use that for any use case that involves hardcoded IPs, like DNS server configuration.

But it still feels like a compromise to me. I wish more software was “prefixless”, including DNS server indication and even DNS zone files, such that a lack of prefix means “prepend the prefix you are already communicating on”… Firewall configuration would be simpler, DNS zone files could survive re-prefixing, all sorts of configuration could be made to work this way, but instead you’re left with either a ton of automation to reconfigure things when the prefix changes, a bunch of manual work, or just bite the bullet and use ULA.

Oh, and did I mention that in my particular setup, all my devices would keep trying to communicate on their old addresses even after a new prefix gets assigned and the new RA’s are sent? Meaning they essentially lose all connectivity if you’re using an IPv6-mostly setup like I have? Oh sure, they grab addresses on the new prefix, but they don’t drop the old one until the lifetime expires, which defaults to 4 hours in the environment I’m in (I think the rad daemon in OpenBSD inherits the lifetimes from its upstream router’s lifetimes, which makes the duration Comcast’s fault, but the proper thing to do is rescind the old RA’s when the interface changes addresses, and rad does not do this out of the box for me, or if it does it doesn’t work right.)

Ok rant over. I want to like IPv6 but dynamic prefixes are really the Achilles heel for me.

Re:DHCPv6-PD – First Steps by zamadatix on Thursday June 06, 2024 @12:12AM (#40593399)
For those with flatter home network needs but still need a few things internal to be reachable by IP I'll throw in you can also use static link locals on fe80:: instead of a random ULA prefix.
Re:DHCPv6-PD – First Steps by hairyplanter on Thursday June 06, 2024 @01:01AM (#40593685)
As browsers don't like link local addresses in the address bar, ULA is still better.
Re:DHCPv6-PD – First Steps by pantalaimon on Thursday June 06, 2024 @03:30AM (#40594553)
You always have to specify the interface that goes with them since they are only guaranteed to be unique on the link.
Re:DHCPv6-PD – First Steps by zamadatix on Thursday June 06, 2024 @10:35AM (#40597910)
Link local addresses work the same as IPv6 addresses in the url bar, just make sure you're entering the full link local and not the first portion only. Static IPv6 is horrible to enter in browsers in general because you have to remember to [address] as well. Of course, if you're doing it for statically configured local DNS entries as in above then all of this is moot as you'd just use the name.
Re:DHCPv6-PD – First Steps by justahuman74 on Wednesday June 05, 2024 @11:49PM (#40593260)
I wish getting and using an IPv6 subnet was like buying a domain name, and that residential ISPs would be required to use your subnet for your service, a bit like portable phone numbers.

The current IP allocation/usage procedures are a bit beyond most people

Re:DHCPv6-PD – First Steps by stephen_g on Thursday June 06, 2024 @12:12AM (#40593400)
That would make the routing table exponentially larger though, which would become unworkable… That’s why they mostly only do it for networks big enough to need it.
Re:DHCPv6-PD – First Steps by zamadatix on Thursday June 06, 2024 @12:24AM (#40593466)
A good compromise between this (lots of routing work on the internet) and random prefixes all the time (lots of work on the end user networks) is setting DHCP-PD to do consistent PD assignments. Sure, you're space isn't portable between carriers if you move/have redundant internet but you can also rely on a static address in your assigned range working 3 years from now even if your router is offline for a month. ATT fiber does this. I haven't done a survey of who else.
Re:DHCPv6-PD – First Steps by hairyplanter on Thursday June 06, 2024 @01:08AM (#40593722)
ULA is still the right solution here.

ULA would let you maintain your internal lan with custom subnets and DNS even if you switch carriers or use multiple carriers. No need to update your internal DNS servers for ULA.

If you're running a server on your dynamic residential service, you must be using dyndns for ipv4. So do the same with ipv6.

Residential random prefixes is the nature of residential networks, as ISPs don't want to preserve state. With a business grade service, you'd get a static prefix, much like static ipv4. Then the only time you need to update anything is when you switch your ISP and need to update global DNS addresses for your servers.

Re:DHCPv6-PD – First Steps by yjftsjthsd-h on Thursday June 06, 2024 @01:48AM (#40593934)
I guess I'll ask here... How do I learn this? I'm comfortable with IPv4, including DHCP, DNS, VPNs, NAT, whatever. I'd like to be able to set up a v6 network[0] in whatever is the Correct and sane way. Is there a good end-to-end tutorial to set it all up by hand and explain what all these things (RA/DHCPv6/fe80::/ULA/etc.) are and how to use them or why not to use them?

[0] Ideally pure v6 if possible; I think there's some way to encapsulate/NAT v4 traffic out from a pure v6 network so I don't actually need dual stack.

Re:DHCPv6-PD – First Steps by thwarted on Thursday June 06, 2024 @04:04AM (#40594814)
Hurricane Electric has a pretty decent IPv6 self-study certification program.

https://ipv6.he.net/certification/

Re:DHCPv6-PD – First Steps by hairyplanter on Thursday June 06, 2024 @02:48AM (#40594308)
I haven’t seen one. Openwrt seems to do the right thing out of the box, but that’s not that helpful in setting up your own and learning on the way.

Maybe I will write one this weekend and make a hn post.

Re:DHCPv6-PD – First Steps by zamadatix on Thursday June 06, 2024 @09:33AM (#40597222)
For a typical network you usually don't need to do anything. For a geek's network it depends exactly what you're wanting to geek out on. E.g. NAT64 will do what you're looking for at the end (with some caveats depending on what else you're wanting to geek out on) but it's more a carrier focused solution so you don't find as much info about it when reading about consumer tutorials and vice versa.

As for the actual configuration you'll want something specific to your exact network device as learning any of it with a guide for how another device expects the configuration to be entered will be hair pulling.

Re:DHCPv6-PD – First Steps by hairyplanter on Thursday June 06, 2024 @09:24PM (#40604400)
Re:DHCPv6-PD – First Steps by yjftsjthsd-h on Thursday June 06, 2024 @09:41PM (#40604492)
Thank you; that helped:)
Re:DHCPv6-PD – First Steps by zamadatix on Thursday June 06, 2024 @08:56AM (#40596825)
Static addresses in your carrier assigned public range are actually very similar to static ULA in terms of what happens with multiple carriers. The same is even somewhat true for moving carriers unless you specifically want to talk to that exact /64 again. That said I'd still recommend cleaning them up in such an event as the main advantage of utilizing the public addresses is things like your DNS servers can be exposed to the internet without the need of NAT. To me that's a lot more the "right solution" than making trade offs for fear of re-iping your devices for the times in your life you change carriers.

Multiple carriers has no (consumer level) solution I've found myself happy with. It's anywhere from "hope all your devices handle multiple public prefixes quickly and without errors" to "NAT and deal with the pain you had from v4 again" to "Use some other way to relay or host your static services which need to be externally accessible" to "go back to dealing with trying to automatically update that DNS server entry on and making sure it always stays consistent"

Re:DHCPv6-PD – First Steps by kccqzy on Thursday June 06, 2024 @12:26AM (#40593480)
Your rant doesn't make sense. The solution is already known and you mention it: ULA. It's not a compromise. You don't need to bite the bullet. Just use it. It's designed for this use case. Fixed IP address for every single device.
Re:DHCPv6-PD – First Steps by simoncion on Thursday June 06, 2024 @05:03AM (#40595158)
Homie likes to pretend to overcomplicate things. Check the comment history, this rant isn't new.

And yeah, folks need to understand that ULA addresses are functionally equivalent to RFC 1918 addresses, and ask themselves why they'd expect an ISP who charges extra for an unchanging globally-routable IPv4 address to give you an unchanging globally-routable IPv6 prefix for free.

Re:DHCPv6-PD – First Steps by semi on Thursday June 06, 2024 @12:02PM (#40599031)
id assume those unchanging ipv4 addresses are not shared and natted with other customs and thus charging for them makes sense as you're consuming a limited resource they are paying for.

That's not the same for not changing an ipv6 address

Re:DHCPv6-PD – First Steps by simoncion on Tuesday June 11, 2024 @10:36AM (#40646656)
> id assume those unchanging ipv4 addresses are not shared and natted with other customs...

Over the last several decades of me having residential Internet service from a variety of ISPs here in the US, I've never had an IPv4 address that was not globally-accessible. Relatedly, I've never had a guaranteed-static IPv4 address, but I COULD get one if I paid the ISP additional money.

I understand that in other regions of the world NOT being behind CGN is not guaranteed.

> That's not the same for not changing an ipv6 address

Hopefully you now understand the context in which I made my remarks. In the world that I (and many other folks) live in, I get one globally-accessible, but definitely-not-static IPv4 address.

Re:DHCPv6-PD – First Steps by ninkendo on Thursday June 06, 2024 @07:02AM (#40595975)
How could it not be a compromise?

If I use a global unicast prefix, the IPs I see on my devices are their real honest to goodness routable IP. That is great!

But I can’t use that IP in any configuration because it will change. That’s not so great.

So I have to compromise by not using the routable IP in places where I need to put the address in a config file.

Nobody wants ULA. ULA is a solution for the fact that your prefix will change, which I wish didn’t happen.

You can say it’s unreasonable to expect a stable prefix (and we could argue about that all day) but don’t pretend it wouldn’t be massively beneficial if I could rely on one. It is absolutely a compromise. A necessary one? Yes. A reasonably simple solution to implement? Yes. But it’s still a compromise.

Re:DHCPv6-PD – First Steps by Dylan16807 on Thursday June 06, 2024 @10:16AM (#40597680)
Well as someone else mentioned, do you want your devices to have no address when your internet connection goes down? A global IP is also a compromise unless you have your own ASN.

> don’t pretend it wouldn’t be massively beneficial

It would be barely beneficial to me.

I don't want to memorize my global prefix anyway.

Re:DHCPv6-PD – First Steps by hairyplanter on Thursday June 06, 2024 @12:39AM (#40593570)
> or just bite the bullet and use ULA.

This is the proper ipv6 solution.

With ipv6, one ethernet interface is _supposed_ to have multiple addresses. You wouldn't want your lan routing to stop working when your ISP goes down, right? So configure your internal DNS with ULA (which should be stable for each machine for a given prefix, even with SLAAC) and be done with it, much like internal DNS using private addresses in ipv4.

For externally visible servers, do the normal thing, that is, those servers dynamically update global dns, much the same way with ipv4 dyndns.

Another learning curve for ipv6 is that people get frustrated by dynamic prefixes, but it's the nature of residential networks: the ISPs want a stateless solution, so customers get a dynamic prefix. Maintaining the same prefix across power outages needs a stateful solution, so only business plans offer them for an extra fee, much like static ipv4 addresses.

And we've had dyndns for decades now for exactly that use case. Just keep using that.

Re:DHCPv6-PD – First Steps by lloeki on Thursday June 06, 2024 @01:39AM (#40593879)
> the ISPs want a stateless solution, so customers get a dynamic prefix. Maintaining the same prefix across power outages needs a stateful solution, so only business plans offer them for an extra fee, much like static ipv4 addresses.

I'm surprised based on my experience: in 15 years of residential IPv6 usage I've always had the same IPv6 prefix (for a given ISP contract of course), even for those ISPs that insisted on handing out dynamic IPv4 with no option for a static one plus had no qualms renewing the IP at any moment, not just power down.

> stateful solution

I'm seeing this the other way around: dynamic needs lease tracking while static just needs a permanent record attached to the already present auth mechanism.

Re:DHCPv6-PD – First Steps by hairyplanter on Thursday June 06, 2024 @01:44AM (#40593914)
My experience is the opposite!
Re:DHCPv6-PD – First Steps by eythian on Thursday June 06, 2024 @05:52AM (#40595530)
My ISP-given IPv6 (/57 for whatever reason) prefix is also stable, however beware that, at least on my OpenWRT based router, the option to release the prefix back to the ISP when the router is shut down is checked by default. I discovered this when I rebooted for a firmware update and when it came back up my network had renumbered itself.
Re:DHCPv6-PD – First Steps by FireBeyond on Thursday June 06, 2024 @10:24PM (#40604708)
> in 15 years of residential IPv6 usage

Out of curiosity, what residential ISPs were handing out IPv6 15 years ago?

Re:DHCPv6-PD – First Steps by ac29 on Friday June 07, 2024 @03:31AM (#40606177)
Comcast started rolling out IPv6 in 2011
Re:DHCPv6-PD – First Steps by lloeki on Saturday June 08, 2024 @10:20AM (#40617723)
Can't recall the exact timeline but:

- I think Free had it since forever and a half, although IIRC it was some weird 6rd or something. Freebox v6 (2011) for sure had it, v5 (2006) may had supported it from the start and for sure supported it down the road, I think v4 could have had it too through an update at least but honestly can't recall.

- Orange in France had a public opt-in experiment for native IPv6 over ADSL to which I enrolled at the time.

- Then I lost IPv6 because I moved to a cable operator which did not support DOCSIS 3.0 (a requirement for IPv6 on cable connections) at the time.

- After that FTTH rolled out and basically every ISP provided native IPv6 on it from the get go.

Non-biz IPv6 support in France is sitting in the ballpark of 99% these days, both residential and mobile. National regulations helped a lot. Residentially there has been a huge plan towards a national FTTH rollout, including in remote areas (the idea being that no one should be cast aside of a full speed internet); this plan also had specific requirements to enforce competition to prevent regional or local monopolistic situations such as the one that historically happened with cable operators (or like the ones I keep hearing about in the US). For mobile it was simpler: you want a radio license for 5G? you have to support IPv6, or else.

Re:DHCPv6-PD – First Steps by krylon on Thursday June 06, 2024 @04:28AM (#40594955)
I never heard of ULA before, and it sounded a bit overwhelming at first. But on a Fritz!Box with recent firmware, it's very easy to enable, and voila! - just works.
Re:DHCPv6-PD – First Steps by simoncion on Thursday June 06, 2024 @04:51AM (#40595094)
Yep! ULA should be thought of as the IPv6 equivalent of RFC 1918 space... with the added bonus that -unlike with IPv4- ULA prefixes are very unlikely to collide, so merging internal networks will very rarely require renumbering.
Re:DHCPv6-PD – First Steps by OJFord on Thursday June 06, 2024 @04:50AM (#40595088)
What's the point of using IPv6 at all on a home network if you use ULA though? If you continued to use an IPv4 setup you were familiar with but allowed your router to talk both or v6 only, wouldn't it be the same?

Is it that you'd still have the globally addressable addresses on NICs with a ULA too, just that's not what you'd use for routing internally? (Not that I'm really sure of the benefit of that residentially either?)

Re:DHCPv6-PD – First Steps by the8472 on Thursday June 06, 2024 @06:31AM (#40595778)
With ULA you generate a random prefix which means it's extremely unlikely there's a collision. So no need for internal NATing or interface disambiguation because a machine is connected to two networks (e.g. via tunnels) that are both using 192.168.0.0/24. Which also means less book-keeping for collision avoidance. Just roll the dice.
Re:DHCPv6-PD – First Steps by Dylan16807 on Thursday June 06, 2024 @10:05AM (#40597539)
> Maintaining the same prefix across power outages needs a stateful solution, so only business plans offer them for an extra fee, much like static ipv4 addresses.

Whose power outage?

The ISP needs to reliably track allocations despite some of their equipment going out, except in the extreme edge case of their entire operation cold starting.

If the client modem goes out it can just be told the same number again when it boots.

And that's not even getting into how trivially small this amount of information is to save to disk.

Non-persistent allocation has technical benefits when your devices keep moving between nodes or when they're offline most of the time. Otherwise not so much.

Re:DHCPv6-PD – First Steps by jeroenhd on Thursday June 06, 2024 @02:46AM (#40594296)
My IPv6 address is perfectly stable. It's up to the ISP to decide if they bully you into paying extra for a static network or not, but it's an implementation problem. Same with IPv4 assignment, necessitating hacks like DynDNS.

If you want stable local addressing, announce a ULA on your LAN. Not all routers support it, unfortunately, but you can announce a ULA from any device. Just don't announce your raspberry Pi as an outbound router.

ULAs use SLAAC and will derive at least one IP address from your devices' MAC address. There's a chance of instability if you have devices with the same MAC addresses (there's detection for that problem but you end up with a race condition after a network reboot), but your network will probably break in other ways if you have such a setup.

Re:DHCPv6-PD – First Steps by f_devd on Thursday June 06, 2024 @03:44AM (#40594664)
My only gripe with IPv6 is that clients use an entire /64, I get it's useful for SLAAC, but I wish I could make clients receive a /68 or more with DHCPv6 so that the address space can be subdivided even when you are already behind a /64 prefix.
Re:DHCPv6-PD – First Steps by greenicon on Thursday June 06, 2024 @04:08AM (#40594830)
That’s exactly what prefix delegation is for. Your ISP ought to give an /56 or more, so you can then have multiple /64.

I get an /56 by my ISP and have 6 or so different /64 in my residence.

Re:DHCPv6-PD – First Steps by simoncion on Thursday June 06, 2024 @05:09AM (#40595206)
Sadly, I've only ever gotten /60s. 16 subnets is better than zero, but it's far less than 256.
Re:DHCPv6-PD – First Steps by f_devd on Thursday June 06, 2024 @08:33AM (#40596647)
ISPs do give enough where I am the issue is usually when you are behind 2 firewalls past that or have VMs that you want to DHCP, things like that.

A real world example my ISP provides /56 at the router level but if you put a firewall behind it, that gets a /64 (cannot be changed). Now the firewall cannot further delegate prefixes since it's already used. Some firewalls allow RA pass-through but in my case this wasn't an option so I had to set up NAT66 (non-standard :/) just to get outbound ipv6 connectivity.

Re:DHCPv6-PD – First Steps by derkades on Thursday June 06, 2024 @04:19AM (#40594888)
Unfortunately, it seems that support for automatically configuring multiple addresses is quite poor. Linux it can be done with NetworkConfiguration or Netplan: use SLAAC to get a GUA and DHCPv6 for a ULA. NetworkManager also seems to use both by default. Android does not support DHCPv6 at all. I don't know about Windows, iOS, or macOS.
Re:DHCPv6-PD – First Steps by simoncion on Thursday June 06, 2024 @04:48AM (#40595076)
> Unfortunately, it seems that support for automatically configuring multiple addresses is quite poor.

What? SLAAC configures addresses on all -er- not-expired prefixes advertised on the link. So, if the border router advertises a ULA prefix and a globally-routeable prefix, SLAAC assigns two addresses to the computer.

If whatever network-configuration tooling you're using causes your computer to not generate an address for every advertised prefix (and you've not told the tooling to behave in this way) then it's broken.

Re:DHCPv6-PD – First Steps by simoncion on Thursday June 06, 2024 @05:07AM (#40595188)
> ...they don’t drop the old one until the lifetime expires...

That's a configuration problem on your end. Your border router needs to notice that it's being instructed to switch delegated prefixes and instruct radvd (or whatever route advertising daemon it's using) to advertise the now-defunct prefixes with a zero lifetime just before or just as you're advertising the new prefixes.

With this information, devices on your LAN that aren't asleep will do the right thing, and devices that were asleep should reconfigure their network interfaces when they wake up... assuming that the world hasn't changed while they've been asleep is something only morons would do (coughAppleComputerscough).

Re:DHCPv6-PD – First Steps by ninkendo on Thursday June 06, 2024 @06:39AM (#40595828)
rtadvd does support advertising old prefixes with zero lifetime to rescind them. rad does not.

I’ll let you guess what daemon is deprecated, and what daemon is the new one you’re supposed to use in OpenBSD.

https://undeadly.org/cgi?action=article;sid=20180724072205

Re:DHCPv6-PD – First Steps by simoncion on Tuesday June 11, 2024 @10:39AM (#40646703)
> ...rad does not.

Oh, that's sad. I take it you've tried signalling rad to reload its configuration when a prefix on interfaces it advertises changes? IIRC, that's how you instruct radvd to do the thing.

Anyway, if that doesn't do what you need, then I don't see how you using bad software makes this any less a configuration problem on your end.

Re:DHCPv6-PD – First Steps by ninkendo on Wednesday June 19, 2024 @12:46PM (#40729958)
Oh just fuck right off. You’re already following me around from thread to thread calling me names and now you’re saying I’m using “bad software” for using the built-in, recommended router advertisement daemon on the operating system that has historically always been the absolute best in class at IPv6. You’re being argumentative, you won’t admit when you’re wrong, you treat me like an idiot; in short, you’re a fucking troll. Stop posting.
Re:DHCPv6-PD – First Steps by simoncion on Sunday June 30, 2024 @05:35PM (#40840573)
Ah. Apologies. With the benefit of hindsight, I can see how my "Oh, that's sad." comment could be misconstrued.

My intention here was to say that the fact that the 'rad' software fails to advertise prefixes with a zero lifetime is sad. That's like basic, essential functionality and it's always sad when software fails to implement basic, essential functionality.

My intention was NOT to assert that your configuration (or -worse- you, yourself) was sad or whatever.

> ...now you’re saying I’m using “bad software” for using the built-in, recommended router advertisement daemon...

Yes? It's possible for the recommended thing to be bad software. If you haven't discovered this, you DEFINITELY will as time goes on.

Re:DHCPv6-PD – First Steps by simoncion on Sunday June 30, 2024 @05:39PM (#40840595)
Also, apologies for the huge delay in replying. Apparently my comment to you and your comment to me got flagged. I don't read replies while logged in, so I totally missed that this conversation was ongoing.
Re:DHCPv6-PD – First Steps by amaccuish on Thursday June 06, 2024 @05:30AM (#40595367)
Unfortunately I think most OSs will prefer IPv4 over using IPv6 ULA returned from dns.
Re:DHCPv6-PD – First Steps by g1sm on Thursday June 06, 2024 @03:50PM (#40601603)
Yes, as far as I know, the order of preference is GUA > IPv4 > ULA. Which I guess basically means you either have to tweak the preference on each device in your network or you have to go IPv6-only.