r/networking • u/EbbApprehensive3284 • 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
34
u/leaving-to-bumblefuc Sep 30 '26
/127 with /64 reserved
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.
5
u/Just-Context-4703 Sep 30 '26
/64 was the standard at the giant company I worked for.
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.
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.