Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Lesson 4 of 6 · Worked example · 25 min · revision 1

Worked example: a /48 site plan and the ICMPv6 you must allow

Carve a /48 site allocation and /56 DHCPv6-PD branch delegation on clean nibble boundaries into /64 VLAN subnets and /127 point-to-point links, verify overlaps in Python, and design a dual-stack RFC 4890 firewall policy.

Contentsand lesson path

What you will learn

  • Design a /48 site plan with /64 subnets and operate a dual-stack network, including the ICMPv6 messages that must not be filtered.

01. The problem: planning one site prefix and securing a dual-stack edge

Suppose your organisation receives 2001:db8:4a00::/48 (using the RFC 3849 documentation range) for a dual-stack campus with four VLANs (mgmt, users, servers, guest), a remote branch expecting dynamic prefixes via DHCPv6 Prefix Delegation, and a point-to-point link (wan-p2p) to an upstream core router. Meanwhile, the security team asks to enforce a blanket "drop all ICMPv6" rule at the perimeter firewall to prevent external ping scans.

The design must satisfy four constraints: every LAN VLAN needs SLAAC and privacy-extension support with readable hexadecimal structure; the branch router must carve multiple /64s cleanly without manual static routing; point-to-point router links must resist Neighbor Discovery cache exhaustion; and the dual-stack perimeter policy must stop unsolicited scans without breaking Path MTU Discovery (PMTUD) or local Neighbor Discovery.

02. Step 1: Slice the /48 on nibble boundaries, size LANs at /64 and handle DHCPv6-PD

In VLSM planning, IPv4 forced engineers to pack VLANs into tight /26 or /25 subnets to conserve scarce 32-bit addresses. RFC 6177 replaces the older one-size-fits-all /48 recommendation—noting smaller end sites (such as homes) commonly receive a /56 (256 /64s)—while multi-building campuses still receive a /48 allocation providing 64 - 48 = 16 subnet bits, or 2^16 = 65,536 full /64 subnets.

Because each hexadecimal digit represents 4 bits (one nibble), align site and building blocks on multiples of 4 bits (/48, /52, /56, /60, /64) so routing summaries line up cleanly with hex characters:

  • /48 site prefix (2001:db8:4a00::/48): First three hextets (48 bits) identify the campus.
  • /60 building aggregation (2001:db8:4a00:0010::/60): Fixing the first three nibbles of the fourth hextet (001) reserves 16 contiguous /64s (0010–001f) under one route; similarly 0020::/60 covers 0020–002f.
  • LAN VLANs (/64): Assign 2001:db8:4a00:0001::/64 (mgmt), 2001:db8:4a00:0010::/64 (users), 2001:db8:4a00:0020::/64 (servers), and 2001:db8:4a00:0030::/64 (guest). Note that 0010 in hex equals decimal 16—keep a clear mapping table if your VLAN IDs are written in decimal (VLAN 10 = 000a vs hex label 0010).
  • DHCPv6 Prefix Delegation (IA_PD, RFC 8415) for branches: Rather than statically routing subnets to small branch offices, an upstream router or ISP delegates a /56 (256 /64s) or /60 (16 /64s) dynamically over DHCPv6-PD (IA_PD option). The requesting router sends a Solicit containing IA_PD, installs the delegated supernet as a null/discard route (required for IPv6 CE routers by RFC 7084 to prevent forwarding loops for unused sub-blocks), and assigns one /64 per downstream VLAN automatically. If the branch needs only one LAN, a /64 suffices; multi-VLAN branches require /60 or /56.
  • Point-to-point router links (/127, RFC 6164): Reserve 2001:db8:4a00:ff00::/64 as an infrastructure pool and assign 2001:db8:4a00:ff00::2/127 (::2 and ::3) to wan-p2p, counting upward from ::2/127. We skip ::/127 (::0 and ::1) because RFC 6164 §6(a) advises against assigning all-zero interface IDs (which collide with the Subnet-Router anycast address) and §6(b) avoids the top 128 interface IDs (ffff:ffff:ffff:ff7f–ffff:ffff:ffff:ffff). Leaving a full /64 on a two-router transit link allows an off-link scanner to probe 2^64 destination addresses and exhaust the router's Neighbor Discovery cache, and on links that do not run ND it can even create a forwarding ping-pong loop when packets hit unassigned addresses.

Why not give a 30-host server VLAN a /112 or /124 to match its IPv4 /27? Even though /112 is valid IPv6 and works with static addressing or DHCPv6, SLAAC (RFC 4862), RFC 8981 privacy extensions, and standard client stacks assume a /64 LAN, so longer LAN prefixes break autoconfiguration while saving a negligible slice of 65,536 /64s. Likewise, avoid stretching one /64 across multiple VLANs—each routed VLAN receives its own dedicated /64 just as each IPv4 VLAN receives its own subnet.

Text · Nibble-aligned /48 campus hierarchy (2001:db8:4a00::/48)
2001:db8:4a00 : [Subnet ID: 16 bits] : [Interface ID: 64 bits]
|<-- 48-bit ->| |<--- 16-bit VLAN --->| |<------- 64-bit host ------->|
  site prefix     0001 -> mgmt /64        ::1 gateway, static / SLAAC
                  0010 -> users /64       ::1 gateway, SLAAC + RDNSS
                  0020 -> servers /64     ::1 gateway, RFC 7217 stable IIDs
                  0030 -> guest /64       ::1 gateway, isolated ACL
                  ff00 -> transit /64     carve ::2/127 up (skip ::/127, RFC 6164)

03. Step 2: Verify the /48 plan and summary routes in Python

Run Python's ipaddress module to verify that every VLAN /64 and /127 fits inside 2001:db8:4a00::/48, confirm the /60 building summary count (16 /64s), and assert zero subnet overlaps across the whole plan:

Python · Validating /48 containment, /60 aggregation and zero overlaps
import ipaddress

site = ipaddress.IPv6Network("2001:db8:4a00::/48")
print("site prefix:", site, "total /64s:", 1 << (64 - site.prefixlen))
bldg_b = ipaddress.IPv6Network("2001:db8:4a00:0010::/60")
print("bldg-b /60 :", bldg_b, "contains /64s:", 1 << (64 - bldg_b.prefixlen))

plan = [
    ("mgmt", "2001:db8:4a00:0001::/64"),
    ("users", "2001:db8:4a00:0010::/64"),
    ("servers", "2001:db8:4a00:0020::/64"),
    ("guest", "2001:db8:4a00:0030::/64"),
    ("wan-p2p", "2001:db8:4a00:ff00::2/127"),
]
nets = []
for name, cidr in plan:
    net = ipaddress.IPv6Network(cidr)
    assert net.subnet_of(site)
    nets.append(net)
    print(f"{name:8} -> {str(net):25} prefix=/{net.prefixlen}")

for i in range(len(nets)):
    for j in range(i + 1, len(nets)):
        assert not nets[i].overlaps(nets[j])
print("overlap_check: PASS")
Expected output
site prefix: 2001:db8:4a00::/48 total /64s: 65536
bldg-b /60 : 2001:db8:4a00:10::/60 contains /64s: 16
mgmt     -> 2001:db8:4a00:1::/64      prefix=/64
users    -> 2001:db8:4a00:10::/64     prefix=/64
servers  -> 2001:db8:4a00:20::/64     prefix=/64
guest    -> 2001:db8:4a00:30::/64     prefix=/64
wan-p2p  -> 2001:db8:4a00:ff00::2/127 prefix=/127
overlap_check: PASS

04. Step 3: Operate the dual-stack firewall under RFC 4890

Now resolve the dual-stack perimeter rule request. In IPv4, teams often block inbound ICMP and rely on intermediate routers fragmenting oversized packets when DF is unset. In IPv6, RFC 8200 forbids intermediate routers from fragmenting packets: if a 1,500-byte packet reaches a 1,420-byte tunnel, the router drops it and returns ICMPv6 Type 2 (Packet Too Big) so the sender shrinks subsequent packets (down to at least the 1,280-byte minimum IPv6 link MTU).

What if you drop all ICMPv6 at the perimeter firewall? Small packets (TCP SYN, TLS handshake, short API calls) succeed, while large TLS certificates or file transfers hit the smaller MTU, lose their Packet Too Big replies at the firewall, and stall in a PMTUD black hole.

When operating a dual-stack campus, keep IPv4 and IPv6 VLAN boundaries aligned 1:1 (for example, pairing 10.10.16.0/24 and 2001:db8:4a00:0010::/64 on the users VLAN) so firewall zones, ACL intentions, and incident logs match across both families. Apply RFC 4890 type-by-type filtering rather than blocking proto ipv6-icmp:

  • Must pass across transit firewalls (§4.3.1): Destination Unreachable (Type 1), Packet Too Big (Type 2), Time Exceeded (Type 3, Code 0; Code 1 normally permitted), Parameter Problem (Type 4, Codes 1–2; Code 0 normally permitted), and Echo Request/Reply (Types 128/129, rate-limited if desired). In nftables, filter by icmpv6 type rather than dropping the entire icmpv6 protocol.
  • Must stay on attached local links only (§4.3.3 for transit, §4.4.1 for own interfaces): Router Solicitation/Advertisement (133/134) and Neighbor Solicitation/Advertisement (135/136) with Hop Limit = 255, plus Multicast Listener Discovery (MLD 130–132, 143) with Hop Limit = 1. Under RFC 4890 §4.3.3, these local-link messages never propagate across routed transit interfaces (and ICMPv6 Redirects, Type 137, should be dropped at transit edges); under §4.4.1, a firewall or host must not drop them when addressed to its own attached interfaces.

When not to accept RAs on a switch port: Even with ND permitted on local VLANs, enable RA Guard on untrusted access ports so rogue laptops cannot impersonate a default gateway.

05. Check your understanding

Practice check · 3 questions

Nibble summarisation, /127 transit links and RFC 4890 boundaries

Apply nibble-boundary summarisation, RFC 6164 sizing and RFC 4890 ICMPv6 scope rules to campus design.

Q1. A campus assigns `2001:db8:4a00:0020::/64` through `2001:db8:4a00:002f::/64` to 16 VLANs in Building C. Which single summary route covers all 16 VLANs on a nibble boundary without including Building B (`0010`–`001f`)?
Q2. Why does RFC 6164 recommend a `/127` prefix on a router-to-router point-to-point link instead of leaving a full `/64` configured on that transit interface?
Q3. A Linux server on a SLAAC VLAN runs a host firewall (`nftables` `input` chain) that already allows `Packet Too Big` (Type 2) and `Echo` (128/129), but drops ICMPv6 Types `133`–`136`. Under RFC 4890 §4.4.1, what breaks on that server?
Practice only: not graded, not saved, not evidence.

06. Apply it

Take 2001:db8:cafe::/48, reserve one /52 per building (4,096 /64s each), assign three VLAN /64s inside Building 1 plus one /56 pool for remote branches via DHCPv6-PD and two /127 transit links, verify zero overlaps in Python, and write a concise RFC 4890 permit list separated into transit vs on-link ICMPv6 types.

Next, move to the final lesson on living with IPv4 to understand dual-stack diagnostics, NAT64/DNS64, 464XLAT, and IPv6-mostly networks.

07. Review prompt

Explain why a /48 holds 65,536 /64 subnets, how DHCPv6-PD delegates prefixes to branch routers, why /127 protects point-to-point links, and which ICMPv6 types RFC 4890 permits across transit firewalls vs local links.

References

Your progress

Reading state

Sign in to save that you finished reading this lesson.

Sign in to mark reading complete

Prove this skill

8 questions · about 6 minutes · scored automatically. Marking a lesson as read never demonstrates a skill.
Take the skill check