[GUIDE] How IPv6 Delegation Works
[GUIDE] How IPv6 Delegation Works
How IPv6 Delegation Works
IPv6 delegation can be confusing at first, especially for users transitioning from IPv4 networking. This post explains how DHCPv6-PD, Router Advertisement (RA), and SLAAC work together in a modern IPv6 deployment.
Basic Flow
Key Components
RA (Router Advertisement)
DHCPv6-PD (Prefix Delegation)
SLAAC (Stateless Address Autoconfiguration)
Example Topology
ISP/BNG delegates:
Router then assigns LAN subnet:
Client devices automatically generate addresses such as:
Important Notes
Without DHCPv6-PD, LAN devices may not receive globally routable IPv6 connectivity properly.
Some possible workarounds include:
Common Prefix Sizes
Notes for MikroTik Users
Typical setup:
Credits
2402:4e20::/32 address by Perfect Network.
Feedback and corrections are welcome.
IPv6 delegation can be confusing at first, especially for users transitioning from IPv4 networking. This post explains how DHCPv6-PD, Router Advertisement (RA), and SLAAC work together in a modern IPv6 deployment.
Basic Flow
- ISP/BNG provides IPv6 connectivity
- Router receives WAN IPv6 address
- Router receives delegated IPv6 prefix block
- Router advertises subnet to LAN
- Clients generate their own IPv6 addresses
Key Components
RA (Router Advertisement)
- Provides gateway information
- Provides subnet information
- Allows devices to discover IPv6 router automatically
DHCPv6-PD (Prefix Delegation)
- Delegates an IPv6 prefix block to the router
- Example: /56 or /60
- Router can split this into multiple LAN subnets
SLAAC (Stateless Address Autoconfiguration)
- Client devices automatically generate their own IPv6 address
- No traditional DHCP lease required for end devices
- Works using Router Advertisements
Example Topology
ISP/BNG delegates:
Code: Select all
2402:4e20:b00b:8000::/56
Code: Select all
2402:4e20:b00b:8000::/64
Code: Select all
2402:4e20:b00b:8000:dead:ffff:feed:cafe/64
2402:4e20:b00b:8000:dead:ffff:feed:beef/64
2402:4e20:b00b:8000:dead:ffff:feed:f00d/64
Important Notes
Without DHCPv6-PD, LAN devices may not receive globally routable IPv6 connectivity properly.
Some possible workarounds include:
- Using NAT66 (generally discouraged)
- Using NDP proxy (can increase neighbor table usage on ISP side)
Common Prefix Sizes
- /64 = Single LAN subnet
- /60 = 16x /64 subnets
- /56 = 256x /64 subnets
- /48 = 65,536x /64 subnets
Notes for MikroTik Users
Typical setup:
- DHCPv6 Client requests prefix delegation
- IPv6 Pool generated from delegated prefix
- LAN interface advertises subnet via RA
- Clients configure themselves automatically
Credits
2402:4e20::/32 address by Perfect Network.
Feedback and corrections are welcome.
