IP fundamentals

IPv6 /127 and /128: link and host prefixes

IPv6 has no IPv4-style broadcast address. Prefix length must reflect the link and routing design.

Updated

Ordinary LAN boundary

A /64 is common for SLAAC on many IPv6 links. It leaves 64 interface-identifier bits. This is not a universal rule for every routed interface.

Point-to-point /127

RFC 6164 recommends /127 on certain inter-router point-to-point links. 2001:db8::2/127 contains ::2 and ::3, which can serve two router endpoints.

Host /128

A /128 represents exactly one IPv6 address. It appears in loopback or host routes. The network's on-link determination and route configuration, not the printed notation alone, decide how packets are sent.

A point-to-point example

2001:db8:1::10/127 contains addresses ::10 and ::11. The same written address with /128 selects only ::10. The distinction is about the number of address bits matched by a prefix, not whether a host or router is online. Confirm the link design before choosing a narrow subnet.

Step-by-step example

Use two short prefixes to distinguish a router link from an individual address.

  1. 01

    Count remaining bits

    IPv6 has 128 bits. A /127 leaves one bit, hence two addresses. A /128 leaves none, hence one.

    /127
    2^1 = 2
    /128
    2^0 = 1
    Illustration · example, not a live result
  2. 02

    Inspect a /127 example

    2001:db8::/127 contains 2001:db8:: and 2001:db8::1. RFC 6164 describes /127 use on inter-router point-to-point links. It is not the normal SLAAC LAN prefix. If the tool returns both endpoints, keep both in the total count. Do not subtract a broadcast address; IPv6 has no broadcast. Confirm the router interfaces use the intended point-to-point configuration.

    Endpoint 1
    2001:db8::
    Endpoint 2
    2001:db8::1
    Illustration · example, not a live result
  3. 03

    Read a /128 example

    2001:db8::1/128 represents a single address. IPv6 has no IPv4-style broadcast address. Check the route and deployment context separately.

    Route
    2001:db8::1/128
    Range
    Exactly one
    Illustration · example, not a live result

Check your understanding

Do not apply IPv4 network/broadcast subtraction to IPv6 counts.

Try this tool →

Try this

Compare /64, /127 and /128 address counts using the subnet calculator.

IPv4 / IPv6 subnet calculator →

Technical references