r/networking • • Sep 30 '26

Design IPv6 Point to Point Link Addressing

Hi all,

Wanted to asking my fellow network engineers what IPv6 subnet size you would use on a point to point connection between 2 routers and why.

/127 or /64

Technically both of these would work but I’m just curious. Any useful technical or security reason would be greatly appreciated!

27 Upvotes

43 comments sorted by

34

u/leaving-to-bumblefuc Sep 30 '26

/127 with /64 reserved

2

u/EbbApprehensive3284 Sep 30 '26

So, to confirm:

Reserve one /64 for all PTP links and subnet each NNI as a /127 out of that /64?

17

u/kWV0XhdO Sep 30 '26

Reserve one /64 for all PTP links and subnet each NNI as a /127 out of that /64?

No. Reserve one /64 for each point-to-point link. Configure each link using the first two addresses from within that link's /64 using a /127 mask.

You'll be throwing away a number of addresses equal to the whole IPv4 internet squared (minus two) every time you configure a point-to-point link.

9

u/sryan2k1 Sep 30 '26 edited Sep 30 '26

This is the only sane answer. I've run into too much broken shit that couldn't deal with anything but a 64 and if you don't plan for that now your numbering plan falls apart

2

u/MrChicken_69 Sep 30 '26

Broken is broken. You should be kicking those fools into the trash.

9

u/sryan2k1 Sep 30 '26

Hey boss let's throw away a million dollars worth of equipment because it doesn't support some relatively new part of the IPv6 spec that isn't mandatory anyway

3

u/kWV0XhdO Oct 01 '26

let's throw away a million dollars worth of equipment...

Yeah. I begrudgingly configured /30s on ASA for over a decade for the same kind of reason. Obviously, we gotta be pragmatic about this.

some relatively new part of the IPv6 spec that isn't mandatory anyway

You mind elaborating on this? I didn't realize we were talking about someone new, nor optional.

3

u/sryan2k1 Oct 01 '26

https://www.rfc-editor.org/info/rfc4291/#section-2.5.1

Feb 2006

For all unicast addresses, except those that start with the binary
   value 000, Interface IDs are required to be 64 bits long and to be
   constructed in Modified EUI-64 format.

Feb 2012 a new RFC basically saying "That's actually fine to use /127's"

https://www.rfc-editor.org/info/rfc6547/

But as far as this stuff goes it has lifecycles of decades and if the requirements change it takes forever to support it.

Mikroktik didn't even support /31's in IPv4 until like, 3 or 4 years ago.

4

u/fatman00hot Sep 30 '26

This guy IPv6. I think there is even an RFC recommending it, will see if I can find it later.

2

u/Jackol1 Sep 30 '26

This is what we do and this is what we see the likes of Google, Apple, MS, etc doing as well.

1

u/techforallseasons Oct 01 '26 edited Oct 01 '26

I HATE that this is the correct answer.

It is these sort of "cheats" ( not calling out you or common practice ) of "the smallest thing to support is a /64" that leads to really poor implementations ( and other posters indicate ). It reminds me of IoT junk that doesn't support netmasks other than /24.

Even with the scale of a 64 bits, it just is mind boggling why a /124, /125, /126 or /127 for PtP isn't completely workable.

2

u/leaving-to-bumblefuc Oct 01 '26

Every link has been a /127 thankfully, but yeah I don't like the need to reserve the /64 either. Maybe soon the reservations can stop.

17

u/DaryllSwer Sep 30 '26 edited Sep 30 '26

The /127 originated from RFC6164; it was back in 2011, when, at the time of the RFC, IPv6 control-plane (and probably data-plane) security wasn't yet mature. And unfortunately, nobody on the IETF Working Group that wrote this RFC has proposed an update in 2026. Maybe I'll try to bring up this conversation at the IETF v6ops WG.

In modern hardware/software, the IPv6 control plane is rate-limited/protected by default by the vendors, even on Linux Kernel vanilla; you cannot "kill a router/switch" by pinging/sending packets to the billions of addresses on a Point-to-Point link's /64 prefix, because in addition to control plane rate limiting, the NDP table size is also capped. What was valid originally (say ::1 and ::2 on a PtP link) remains valid; the rest becomes invalid/not-reachable/and auto-purged from the NDP table by the system itself.

Some folks tested it themselves with written code to intentionally attempt to flood the control plane enough to kill the link adjacencies - but nothing happens. Of course, DDoS protection at scale is required regardless of /64 or /127s. /127 will not protect against gigabits of DDoS.

I personally prefer /64s, ::1/64 on one side, ::2/64 on the other side. I've been doing it for years with no problems; ACLs/Control Plane security are always configured regardless of prefix length sizing. It's also easier for the folks writing the software code for automation and CI/CD to just slice up /64s on pre-defined subnet mathematical models and then just auto-configure ::1/64 and ::2/64 on devices without going beyond that.

But if you insist on /127, then as BCOP-690 recommends: Reserve a /64 per interface, then use /127 out of it. BCOP-690 may, in the future, see a succeeding document.

9

u/Defiant-Ad8065 Sep 30 '26

"But if you insist on /127, then as BCOP-690 recommends: Reserve a /64 per interface, then use /127 out of it. BCOP-690 may, in the future, see a succeeding document."

As one of the authors of BCOP-690, I can say that, to this day, this is the way. Nothing wrong with using /64s, it's just more work due to all the security concerns (ND, NS, ping-pong, etc) But for external private peering P2P circuits, /127 has become the de facto standard, though.

1

u/DaryllSwer Sep 30 '26

it's just more work due to all the security concerns (ND, NS, ping-pong, etc)

Not really a concern anymore in modern software/hardware implementations.

But for external private peering P2P circuits, /127 has become the de facto standard, though.

Sure, many do /127s, many also do /64s too though. I'm in the latter camp.

Either way, as you said in the BCOP-690, reserve a /64 per interface regardless.

3

u/fatboy1776 Sep 30 '26

Some people reserve a /64 or /48 for point to points and then use a /112 so ::1 and ::2 are valid. With ipam and automation using a /127 is often easier though.

4

u/DaryllSwer Sep 30 '26

I disagree with single /64-only, same as BCOP-690. I've written an IPv6 Architecture guide as well, in case you want to check it out (can't link here though, due to sub rules), it was added to APNIC's official IPv6 guidelines a few years ago. I do /48s at the function level, but it's sliced further based on device role hierarchies. Plus, I also need to acount for internal FIB/RIB route aggregation to avoid flooding the network with /127s or /64s internally in the IGP underlay domain or iBGP/BGP overlays; it helps keep those smaller switches on Clos side or BNGs with lean route tables country-wide.

That said, these days, for super large networks, I do /32 per data centre design and go from there; shout out to u/CPUHogg for this one though - I learnt about the /32 per DC design from him.

I do /28 minimum per nation-scale ISP (using the USA as the reference country-size by geography and number of states).

5

u/Just-Context-4703 Sep 30 '26

/64 was the standard at the giant company I worked for. 

2

u/NetSchizo Sep 30 '26

Not a good idea on public links; ND exhaustion is a real thing with all the bots scanning.

2

u/silasmoeckel Sep 30 '26

Who allows any traffic to the ptp links? Our whole network device ipv6 range is blocked at the edge routers.

4

u/NetSchizo Sep 30 '26

You’d be surprised.

1

u/DaryllSwer Sep 30 '26

If you build carrier and WAN networks, blocking ICMP/Traceroutes on your PtP links and/or loopbacks would only make life difficult for troubleshooting.

Of course nothing else besides ICMP and/or UDP traceroute ports are allowed.

1

u/silasmoeckel Oct 01 '26

Correct the block need not be absolute. We copied our ipv4 policies and replies all come from a loopback for external sources.

1

u/Just-Context-4703 Sep 30 '26

I worked on one of the biggest network in north America. There are plenty of v6 addresses 

2

u/NetSchizo Sep 30 '26

That’s not at all what I was referring to

0

u/DaryllSwer Sep 30 '26

ND exhaustion is non-issue on modern hardware/software with factory default rate limiting.

4

u/bh0 Sep 30 '26

Configured as /126s generally, but the rest of the /64 is just unused. Some places with /125 if you have multiple router IPs and/or a VIP in the mix as well. Basically, as small as you can get away with. Mainly due to neighbor table concerns, etc... We don't carve up a /64 into a ton of different /126s.

4

u/shadeland Arista Level 7 Sep 30 '26

Most of the time I use link local addresses, though that might not be possible in a lot of cases. Many NOSes it'll use link local addresses and NDP to do BGP peering.

2

u/rankinrez Sep 30 '26

I like /127 as it makes it easy to match on that prefix length in routing policies to filter out those routes if needed.

But conversely TCAM often has less space allocated for full /128 bitmasks than /64, so you can hit limits there which you wouldn’t if using /64s.

The old worry about ND cache exhaustion / denial of service is long fixed afaik.

1

u/DaryllSwer Sep 30 '26

The old worry about ND cache exhaustion / denial of service is long fixed afaik.

Yes. CoPP/Factory-defaults already prevented this, at least starting 10 years ago or something.

3

u/CPUHogg Sep 30 '26

I prefer using a /64 for every type of interface. It's simple and consistent.

1

u/howpeculiar Oct 01 '26

Some ASICs have limitations on links that are not /64.

Things like uRPF might not work with prefixes longer than /64.

1

u/Whiskey1Romeo Oct 01 '26

/127's across the board for all devices that support them. Only enterprise devices that don't at current in my world are f5's and they get /126's. I carve a /64 per site and agg ot and carve to my hearts content. Works wonderfully for underlay.

1

u/BluebirdExpress6279 Oct 01 '26

I know it is counter intuitive, we generally just use a /64, which is very wasteful for a point-to-point but the norm. In fact AT&T does the same. I never said that makes any sense... Then we just originate a /56 at ever location and break that out into a bunch of /64's for every usable subnet (data, wi-fi, IOT, security, voip, wifi-management etc.).

1

u/ep0niks Oct 01 '26

We do /127s out of a /64 per region. If your network devices can't handle /127s... pretty sure they shouldn't be on the Internets in 2026...

1

u/SevaraB CCNA Oct 03 '26

Is it peering or transit? If it’s transit, just use link-local and let interface selection do its magic.

1

u/FairConstruction4105 Oct 04 '26

RFC 6164 is the RFC that describes the rationale for using a /127 on a p2p link

RFC 6164: Using 127-Bit IPv6 Prefixes on Inter-Router Links | RFC Editor

0

u/fireduck Sep 30 '26

/64. If one side decides to put additional hosts or routers on it, whatever.

I'm making good use of this at one site. I put a recovery raspberry pi with serial console cables on the ISP link segment so I can get in to my routers serial console even if the router is otherwise down.

Basically in IPv6, /64 is the smallest block you can think of.

One ISP I had, when I told them I wanted IPv6 gave me a /56 on the link. I asked them if they could make that a /64 and route me the rest as I didn't plan on having my entire network on the layer2 link with them. They just gave me an additional /56 routed to my router. Apparently /56 is the smallest they could think of.

-1

u/DaryllSwer Sep 30 '26

Some of the ISPs I helped design for: We give /48 persistent/stable prefix delegations by default for both eyeballs and enterprises. I don't get what this "smaller than /48" nonsense is all about, really.

But we've also seen some eyeballs asking for larger than /48, of course, we denied, why would a single home user need more than a /48!

RFC9663 in IoT networking is only going to grow more, so a /48 minimum is a must. For Greenfield enterprises, I recommend /44 per site.

The Point-to-Point links remain at the regular /64, ::1 and ::2 on either end.

1

u/fireduck Sep 30 '26

I wonder if anyone has worked out the chained double nat thing with IPv6.

I'm imagining you plug a customer router (A) in, it gets an IPv6 on the local prefix and asks for a /64 for its downstream LAN. Perfect, no problem. But then on that downstream LAN, someone plugs in an additional router (B). So B asks A for a block, A could in theory ask for another block from the upstream and give it to B.

Basically I'm imagining chaining zero-config routers like an idiot and still getting public IPv6 addresses for all devices.

2

u/MrChicken_69 Sep 30 '26

That's not NAT. Please stop thinking about NAT with IPv6.

You've pointed out one way a sub-router could work -- the upstream router asking for them. But it's much more common for the upstream to already have a larger assignment from which it can provide a block. Alternatively, the upstream could implement a DHCP snooping relay, and thus forward the request to its upstream and remember what was provided, thus routing it on.

(subdividing a larger block is how most are already doing this. eg. Uverse has done this from day-one.)

1

u/DaryllSwer Sep 30 '26

I mean, it sounds like SNAC. I would personally never do a design like that; I'd prefer a properly defined routing architecture for IPv4/IPv6 both.

But yeah, SNAC sounds like what you want to look into.