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
On this page
- The problem: planning one site prefix and securing a dual-stack edge
- Step 1: Slice the /48 on nibble boundaries, size LANs at /64 and handle DHCPv6-PD
- Step 2: Verify the /48 plan and summary routes in Python
- Step 3: Operate the dual-stack firewall under RFC 4890
- Check your understanding
- Apply it
- Review prompt
Lessons of IPv6 Addressing & Operation
- IPv6 addresses without fear: notation, scopes and types Concept · 20 min
- Neighbor Discovery replaces ARP: NS/NA, RS/RA and duplicate address detection Concept · 20 min
- Lab: SLAAC and DHCPv6 side by side, watched in Wireshark Lab · 30 min
- Worked example: a /48 site plan and the ICMPv6 you must allow Worked example · 25 min
- Living with IPv4: dual stack, NAT64/DNS64 and 464XLAT Concept · 15 min
- Check: IPv6 addressing and troubleshooting scenarios Knowledge check · 8 questions
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:
/48site prefix (2001:db8:4a00::/48): First three hextets (48bits) identify the campus./60building aggregation (2001:db8:4a00:0010::/60): Fixing the first three nibbles of the fourth hextet (001) reserves16contiguous/64s (0010–001f) under one route; similarly0020::/60covers0020–002f.- LAN VLANs (
/64): Assign2001:db8:4a00:0001::/64(mgmt),2001:db8:4a00:0010::/64(users),2001:db8:4a00:0020::/64(servers), and2001:db8:4a00:0030::/64(guest). Note that0010in hex equals decimal16—keep a clear mapping table if your VLAN IDs are written in decimal (VLAN 10=000avs hex label0010). - 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_PDoption). The requesting router sends aSolicitcontainingIA_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/64per downstream VLAN automatically. If the branch needs only one LAN, a/64suffices; multi-VLAN branches require/60or/56. - Point-to-point router links (
/127, RFC 6164): Reserve2001:db8:4a00:ff00::/64as an infrastructure pool and assign2001:db8:4a00:ff00::2/127(::2and::3) towan-p2p, counting upward from::2/127. We skip::/127(::0and::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/64on a two-router transit link allows an off-link scanner to probe2^64destination 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.
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:
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")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: PASS04. 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 byicmpv6 typerather than dropping the entireicmpv6protocol. - 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
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
- RFC 6177: IPv6 Address Assignment to End Sites
- RFC 6164: Using 127-Bit IPv6 Prefixes on Inter-Router Links
- RFC 4890: Recommendations for Filtering ICMPv6 Messages in Firewalls
- RFC 8200: Internet Protocol, Version 6 (IPv6)
- RFC 8415: Dynamic Host Configuration Protocol for IPv6 (DHCPv6)
- RFC 7084: Basic Requirements for IPv6 Customer Edge Routers
Your progress
Reading state
Sign in to save that you finished reading this lesson.
Prove this skill
8 questions · about 6 minutes · scored automatically. Marking a lesson as read never demonstrates a skill.