Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Prefixing

Direct answer

An IPv6 prefix is an address plus prefix length. Forwarding uses longest-prefix match; host on-link behavior depends on interface prefix information and Neighbor Discovery rather than an IPv4-style broadcast model.

When to use this

Use this Topic for wrong subnet assumptions, route summarization, /64 design questions, overlap, address-plan validation and cases where hosts treat a destination as on-link or routed unexpectedly.

First 30 seconds

1. Write the prefix: 2001:db8:10:20::/64 → the first 64 bits are the subnet.

2. Same /64 on the host and the router interface?

3. show ipv6 route <prefix> longer-prefixes — overlaps or more specific routes?

4. Summaries on nibble boundaries (/48, /52, /56, /60) are easiest to read.

5. Host prefix length not /64 → SLAAC will not work.

Operational verification

address plan per site (/48) → per-link /64 → router interface configured → RA advertises the prefix → hosts on-link → routes summarised per site

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · IOS/IOS XE
Scope / prerequisiteUse this Topic for wrong subnet assumptions, route summarization, /64 design questions, overlap, address-plan validatio…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

6 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational verification and known-good state Verify boundary

Operationally, convert the source and destination into the exact prefixes being configured or advertised, then verify the interface prefix length and any RA Prefix Information Option that influences hosts. On routers, inspect all matching IPv6 routes and confirm the intended longest match, next hop and outgoing interface. Follow recursion until the next hop is directly resolvable through Neighbor Discovery. For summaries, compare representative addresses inside and just outside the aggregate so an accidental over-summary is visible. A known-good check includes return routing and not merely successful ND on the first segment. Known-good verification should include both the intended state and the packet or forwarding consequence that state is supposed to produce. This section is authored reference guidance for Prefixing in the IPv6 context. Each command output, counter or capture shows only what is visible at that point in the path. A healthy local state does not by itself show the adjacent hop, reverse path, policy plane, endpoint behavior or application outcome. Use the same flow, VLAN, interface, prefix or control-plane instance throughout the investigation so that evidence from different contexts is not accidentally combined. When a change is made, preserve the original failing test, re-run it after convergence, and check one adjacent known-good case for regression before calling the issue closed.

Step 2 Verification and output interpretation Verify boundary

Verify the exact prefix length on the interface and calculate whether a destination is on-link under that prefix. Inspect connected and learned IPv6 routes and confirm the longest-prefix match for representative destinations. If SLAAC is used, verify the router advertisement prefix information and flags because the presence of an address alone does not show the intended prefix was advertised.

Step 3 Step-by-step troubleshooting Narrow the fault

Boundary rule: Matching-looking addresses do not show hosts make the same on-link/off-link decision when prefix lengths differ.

Step 4 Verification & troubleshooting Narrow the fault

2. Classify address type and scope.

3. Verify interface address and link-local zone.

4. Verify IPv6 route and next hop.

5. Check ICMPv6, MTU and return path.

Step 5 Failure signatures and troubleshooting branches Narrow the fault

When a host tries ND for a destination that should be routed, suspect on-link prefix information or local prefix configuration before changing routes upstream. When the router selects a default while an expected specific route is absent, investigate advertisement, filtering or summary generation. If two prefixes overlap, identify which more-specific route wins and whether policy intentionally created that result. If the route is correct but neighbor resolution fails, move to NS/NA, VLAN and Layer-2 state. Beware copied IPv6 addresses with compressed zeros: normalize them before comparing prefixes to avoid human parsing mistakes. Branch from the first contradictory state rather than changing multiple layers at once; the earliest broken boundary usually gives the highest-value next test. This section is authored reference guidance for Prefixing in the IPv6 context. Each command output, counter or capture shows only what is visible at that point in the path. A healthy local state does not by itself show the adjacent hop, reverse path, policy plane, endpoint behavior or application outcome. Use the same flow, VLAN, interface, prefix or control-plane instance throughout the investigation so that evidence from different contexts is not accidentally combined. When a change is made, preserve the original failing test, re-run it after convergence, and check one adjacent known-good case for regression before calling the issue closed.

Step 6 When the problem is really fixed Narrow the fault

After a change, show that the original source classifies the destination correctly as on-link or off-link, that the router installs the intended longest prefix and that ND resolves only the actual next hop or local peer required. Replay the original traffic and verify the reverse path uses a compatible prefix. If summarization changed, test at least one address in each edge range of the summary. Do not claim “IPv6 fixed” solely from a route-table line or ping; preserve the specific prefix, VRF/interface, next-hop and application boundaries in any later Evidence. Closure is the successful replay of the original workload plus bounded regression checks; authored guidance must never be promoted automatically to observed Evidence or verification metadata. This section is authored reference guidance for Prefixing in the IPv6 context. Each command output, counter or capture shows only what is visible at that point in the path. A healthy local state does not by itself show the adjacent hop, reverse path, policy plane, endpoint behavior or application outcome. Use the same flow, VLAN, interface, prefix or control-plane instance throughout the investigation so that evidence from different contexts is not accidentally combined. When a change is made, preserve the original failing test, re-run it after convergence, and check one adjacent known-good case for regression before calling the issue closed.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

/64 is the normal IPv6 LAN subnet size for SLAAC and many operational designs, but prefix semantics must be read from the actual interface/RA/routing state. Never infer reachability from textual similarity of addresses alone.

Key checks
  • show ipv6 interface brief — IPv6 addresses (link-local and global) per interface.
  • show ipv6 interface <if> — addresses, joined multicast groups, ND and RA settings.
  • show ipv6 neighbors — neighbour cache: IPv6-to-MAC entries and state (REACH, STALE, INCMP).
  • show ipv6 route <prefix> — route and next hop (often a link-local address plus interface).
  • ping ipv6 <addr> / traceroute ipv6 <addr> — reachability and path.
  • Host: ipconfig (Windows) / ip -6 addr and ip -6 route (Linux).
ReferenceImportant terms & boundaries6 sections · depth on demand

Key operational limits

  • Compress one longest zero run once; never remove meaningful hextets
  • /64 is the normal LAN prefix for SLAAC-compatible subnets
  • Link-local addresses support neighbor/router communication but are interface scoped
  • IPv6 has no broadcast; multicast and anycast serve distinct roles.

In depth

Prefixes and notation in IPv6

RFC 4291 writes IPv6 prefixes as address/prefix-length, like CIDR. It also defines the text rules for addresses:

RuleExample
Eight groups of up to four hex digits2001:0db8:0000:0020:0000:0000:0000:0001
Leading zeros in a group may be dropped2001:db8:0:20:0:0:0:1
:: replaces one run of zero groups, once per address2001:db8:0:20::1
Embedded IPv4 in the low 32 bits::ffff:192.0.2.10

Use lowercase and the longest zero run for ::, as RFC 5952 recommends, so the same address always looks the same in logs and documentation.

Global unicast structure (RFC 4291)

PartBits (typical site)Example
Global routing prefix482001:db8:abcd (from the provider or RIR)
Subnet ID160020
Interface ID640000:0000:0000:0001

RFC 4291 states that for all addresses not starting with binary 000, the routing prefix and subnet ID together are 64 bits, leaving a 64-bit interface ID.

Common prefix lengths

LengthUse
/32Typical allocation to an ISP or large organisation
/48Typical site: 65,536 /64 subnets
/56Typical home or small site: 256 /64 subnets
/64One LAN subnet; required for SLAAC
/127Point-to-point router links (RFC 6164)
/128One address: loopbacks, host routes
R1(config)# interface Vlan20
R1(config-if)# ipv6 address 2001:db8:abcd:20::1/64
R1(config)# interface TenGigabitEthernet1/1/1
R1(config-if)# ipv6 address 2001:db8:abcd:ff00::/127
R1# show ipv6 route connected
C   2001:DB8:ABCD:20::/64 [0/0]
     via Vlan20, directly connected
C   2001:DB8:ABCD:FF00::/127 [0/0]
     via TenGigabitEthernet1/1/1, directly connected

Subnet planning

With 16 bits of subnet ID in a /48, it's practical to encode structure: for example the first hex digit for site or building, the next for function, and the last two for VLAN. Unlike IPv4, there's no need to size subnets by host count: every LAN is a /64.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

IPv6 prefixing uses CIDR notation like IPv4 but with much larger spaces. Sites typically receive a /48 (or /56), and each LAN segment uses a /64, which SLAAC and many features require.

PrefixTypical use
/32ISP allocation
/48Site
/56Small site or home
/64One LAN/VLAN
/127Point-to-point links (RFC 6164)
/128Loopback/host route

A /48 contains 65,536 /64 subnets, so plan subnets by structure (site, building, function) rather than by saving addresses.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Mechanics and state ownership

Prefix length defines which leading bits identify a network or aggregate and which remaining bits vary within that prefix. IPv6 forwarding still applies longest-prefix match, so a more-specific route wins over a summary or default route regardless of visual address similarity. On a LAN, Router Advertisements can advertise prefix information and on-link semantics; SLAAC commonly uses /64 because the 64-bit interface identifier model is built into standard host behavior. Point-to-point or infrastructure designs may use other lengths where supported, but operational correctness comes from matching the actual host and router behavior. A prefix can be syntactically valid while still being wrong for the intended on-link domain or routing policy. Mechanics must be interpreted together with the exact protocol state and interface or routing context in which they were learned. This section is authored reference guidance for Prefixing in the IPv6 context. Each command output, counter or capture shows only what is visible at that point in the path. A healthy local state does not by itself show the adjacent hop, reverse path, policy plane, endpoint behavior or application outcome. Use the same flow, VLAN, interface, prefix or control-plane instance throughout the investigation so that evidence from different contexts is not accidentally combined. When a change is made, preserve the original failing test, re-run it after convergence, and check one adjacent known-good case for regression before calling the issue closed.

State model and technical mechanics

An IPv6 address contains 128 bits and a prefix length identifies the network portion. Route lookup uses longest-prefix match exactly as a routing concept, independent of the textual zero-compression used to display addresses. A /64 is the standard subnet size for ordinary IPv6 LANs and is assumed by mechanisms such as SLAAC; point-to-point infrastructure can use other designs where standards and platform support permit. Hierarchical allocation allows site or function summaries while leaving large interface identifier space inside each subnet. Hexadecimal notation can hide bit boundaries, so subnet planning should reason in prefix lengths and nibble boundaries rather than visual groups alone.

Limits and common misconceptions

Textual compression such as 2001:db8::1 does not change prefix semantics. A /64 is not “half the address” in an operational sense; it is a routing/subnet boundary with specific IPv6 conventions. A correct prefix does not show Neighbor Discovery, default-router selection or upstream routing is healthy.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Allocate IPv6 prefixes hierarchically with summarization and operational ownership in mind. Keep LAN prefixes distinct and avoid stretching a subnet across unrelated failure domains merely because the address space is abundant. Use consistent prefix lengths where they aid operations, and document any deliberate exception such as point-to-point addressing. Do not copy IPv4 conservation habits into IPv6 by creating arbitrarily tiny LAN prefixes; the design goals and autoconfiguration assumptions are different.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 8200

Authoritative/upstream documentation reviewed for bounded claims in IP Fundamentals → IPv6 → Prefixing. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc8200.html · confidence 94%
Embedded reference data

Quick lookup tables

Prefixing · technical reference

Compact mechanics, configuration and evidence boundaries for fast lookup.

ItemReference
Address size128 bits
LAN convention/64
Route selectionLongest-prefix match
Display compressionPresentation only, not routing semantics

Prefixing operational reference

Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.

Prefix checkKnown-goodFailure signatureNext boundary
Prefix lengthMatches design/RA/routeHost and router disagreeInterface / RA
On-link stateOnly intended subnet treated localND attempted for routed destinationPrefix Information
Longest matchIntended specific route winsDefault/summary wins unexpectedlyRouting policy
ND resolutionNext hop resolvesCorrect route but unresolved neighborL2 / ND
Summary edgesIncluded/excluded ranges intentionalOver-summary/black-holeAggregate policy
Confirmation

Confirm action

Continue?