User Tools

Site Tools


prefix_delagation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

prefix_delagation [2022/07/22 15:19] – created 2a06:4000:8073:19::2prefix_delagation [2026/09/24 16:05] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== IPv6 prefix delegation and subnetting ====== 
-Subnetting is one of the tools you can use as part of segmenting a LAN in e.g a DMZ, a subnet for IoT devices etc. In this note I'll explain how I did it in IPv6 using [[https://en.wikipedia.org/wiki/Prefix_delegation|Prefix Delegation]]. 
- 
-I took this opportunity to learn more about it. I set up the following test network using VirtualBox: (main router is a real host; the virtual hosts (Netn) run on my workstation) 
-  
-{{:wiki:test-network.png?400|}} 
- 
-My ISP has given me a /48 delegation as per RIPE recommendation. I want to subdivide this so that the first subnet level attached to my LAN ('LAN' on the picture) gets a /56 delegation and subnets created under one of these /56 subnets will get /60 delegated. 
- 
-My initial intention was do do all of it using [[https://www.freedesktop.org/software/systemd/man/systemd-networkd.html#|systemd-networkd]] only but I very quickly found out that this was not possible with the present (July 2022) version of systemd (251.2). Networkd (as I'll call systemd-networkd in the following) has both a DHCP server and a DHCP client for IPv4 but only a DHCP client for IPv6. So I used [[https://www.isc.org/dhcp/|ISC's dhcp]] package as DHCP server for IPv6. 
- 
-In the following I'll treat the router one by and and highlight what is essential to get **this** 
- router to work the way I want it. 
-[[Main Router|Main Router]] 
  
prefix_delagation.1658503183.txt.gz · Last modified: by 2a06:4000:8073:19::2