Reza Farashahi — NZSE
2001:0DB8:0000:0000:0000:0000:0000:00010DB8 → DB8:: (once only)2001:DB8::1| Type | Prefix | Meaning | Example |
|---|---|---|---|
| Global Unicast (GUA) | 2000::/3 |
First 3 bits = 001. Routable on the internet — like a public IPv4 address. |
2001:0DB8:ACAD:1::1 |
| Link-Local (LLA) | FE80::/10 |
First 10 bits = 1111 1110 10. Only valid on the local link; auto-assigned on every IPv6 interface. |
FE80::1 |
| Unique Local (ULA) | FC00::/7 |
First 7 bits = 1111 110. Covers FC00::–FDFF::; in practice only FD00::/8 is used. Like private IPv4 (10.x, 192.168.x). Not routable on the internet. |
FD12:3456:789A:1::1 |
| Loopback | ::1/128 |
Equivalent to 127.0.0.1 in IPv4. Used to test the local TCP/IP stack. |
::1 |
| Multicast | FF00::/8 |
First 8 bits = 1111 1111. One-to-many delivery. Replaces broadcast — no broadcast in IPv6! |
FF02::1 (all nodes) |
FC00::/7 means the first 7 bits of the address are fixed (1111 110). The 8th bit can be 0 or 1, so the range is FC00:: through FDFF::. The IETF currently only defines the FD range (8th bit = 1), so in practice Unique Local addresses always start with FD.
FF02::1 — All nodes on the local link (every IPv6 device listens on this — replaces broadcast)FF02::2 — All routers on the local link (only routers listen on this)Q1: How many bits are in an IPv6 address?
Q2: What does the :: in an IPv6 address represent?
Q3: Match each address to its type. Select the correct type from the dropdown:
| Address | Type | |
|---|---|---|
FE80::1 |
||
2001:DB8:ACAD::1 |
||
FF02::1 |
||
FD00:ABCD:1234::1 |
||
::1 |
Q4: True or False — “IPv6 uses broadcast to send packets to all devices on a network.”
Q5: What prefix do Unique Local addresses start with in practice?
Q6: What is “dual stack”?
Q1: Simplify: FE80:0000:0000:0000:0210:A4FF:FE01:0023
Q2: Simplify: 2001:0DB8:0000:00A0:0000:0000:0000:0001
Q3: Simplify: FF02:0000:0000:0000:0000:0000:0000:0001
Q4: Expand the shortened address back to full form (8 groups, all leading zeros):
2001:DB8::FF:1
| Rule | Before | After |
|---|---|---|
| 1. Remove leading zeros Drop leading 0s in each 16-bit group |
2001:0DB8:0001:00A0 | 2001:DB8:1:A0 |
2. Keep at least one digit0000 becomes 0, not empty |
0000 | 0 |
3. Replace longest run of all-zero groups with ::Must be consecutive 0 groups |
2001:DB8:0:0:0:0:0:1 | 2001:DB8::0:1 |
4. Use :: only once!If two equal-length runs exist, replace the leftmost |
2001:0:0:1:0:0:0:1 | 2001::1:0:0:0:1 |
:: represents. Fill them back in, then add leading zeros to make each group 4 digits.
A typical IPv6 Global Unicast Address has three parts:
Written as 8 groups (hextets):
It’s simple — just change the 4th hextet (the Subnet ID):
| Subnet | Network Address | Prefix Length |
|---|---|---|
| 0 | 2001:DB8:AAAA:0000::/64 | /64 |
| 1 | 2001:DB8:AAAA:0001::/64 | /64 |
| 2 | 2001:DB8:AAAA:0002::/64 | /64 |
| 3 | 2001:DB8:AAAA:0003::/64 | /64 |
| … | … | /64 |
| FFFF | 2001:DB8:AAAA:FFFF::/64 | /64 |
IPv6 uses hexadecimal (base 16). Here’s how it maps to decimal:
| Hex | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
F (15), we carry over: F + 1 = 10 (hex) = 16 (decimal)FF (255), next is 100 (hex) = 256 (decimal)Part A — Convert Hex to Binary (4 bits each)
| Hex | Your Binary | |
|---|---|---|
A | ||
F | ||
3 | ||
C |
Part B — Convert Binary to Hex
| Binary | Your Hex | |
|---|---|---|
1110 | ||
0101 | ||
1001 | ||
1011 |
Bonus — Convert full hextet to binary
Convert the hextet CAFE to binary (16 bits):
Your company has been assigned the IPv6 prefix:
You need to create subnets for 4 departments:
With a /48 prefix:
2001:DB8:CAFE takes up the first 48 bits (3 hextets)Simply count up from 1 in the 4th hextet:
| Department | Subnet ID | Network Address |
|---|---|---|
| Engineering | 0001 | 2001:DB8:CAFE:1::/64 |
| Sales | 0002 | 2001:DB8:CAFE:2::/64 |
| Finance | 0003 | 2001:DB8:CAFE:3::/64 |
| IT Support | 0004 | 2001:DB8:CAFE:4::/64 |
2001:DB8:CAFE). Only the 4th hextet changes. Each subnet has room for 264 hosts — more than enough!
By convention, the router gets ::1 as the Interface ID on each subnet:
| Subnet | Router Interface Address |
|---|---|
| Engineering | 2001:DB8:CAFE:1::1/64 |
| Sales | 2001:DB8:CAFE:2::1/64 |
| Finance | 2001:DB8:CAFE:3::1/64 |
| IT Support | 2001:DB8:CAFE:4::1/64 |
And PCs in each subnet can use any Interface ID, for example ::10, ::11, ::A1, etc.
.1 for the router gateway in IPv4 subnetting (e.g. 10.0.0.1).
Given the prefix 2001:DB8:CAFE::/48, what would be the network address for a 5th subnet (e.g. “Marketing”)?
What would be the router address on that 5th subnet?
With a /48, how many total /64 subnets can you create?
An ISP gives you a /32 prefix:
With a /32, the 3rd and 4th hextets form the Subnet ID:
| Subnet | Network Address | Usage |
|---|---|---|
| 1 | 2001:DB8:0001:0000::/64 | Auckland Office |
| 2 | 2001:DB8:0001:0001::/64 | Auckland WiFi |
| 3 | 2001:DB8:0002:0000::/64 | Wellington Office |
| 4 | 2001:DB8:0002:0001::/64 | Wellington WiFi |
To find how many /64 subnets you can create:
| Prefix You Receive | Subnet Bits | /64 Subnets Available |
|---|---|---|
| /32 | 64 − 32 = 32 | 232 = 4,294,967,296 |
| /36 | 64 − 36 = 28 | 228 = 268,435,456 |
| /40 | 64 − 40 = 24 | 224 = 16,777,216 |
| /44 | 64 − 44 = 20 | 220 = 1,048,576 |
| /48 | 64 − 48 = 16 | 216 = 65,536 |
| /56 | 64 − 56 = 8 | 28 = 256 |
| /60 | 64 − 60 = 4 | 24 = 16 |
| /64 | 64 − 64 = 0 | 20 = 1 (no subnetting) |
Q1: You receive the prefix 2001:DB8:1234::/48. How many /64 subnets can you create?
Q2: You receive the prefix 2001:DB8:AB00::/40. How many /64 subnets?
Q3: You receive the prefix 2001:DB8:FACE:FF00::/56. How many /64 subnets?
NZSE has received the following IPv6 prefix from their ISP:
They need subnets for:
| Subnet | Purpose |
|---|---|
| 1 | Staff Network |
| 2 | Student Labs |
| 3 | Student WiFi |
| 4 | Servers |
| 5 | Security Cameras |
| 6 | Guest WiFi |
| Subnet | Purpose | Network Address | Router (::1) |
|---|---|---|---|
| 1 | Staff | 2001:DB8:ACAD:1::/64 | 2001:DB8:ACAD:1::1 |
| 2 | Labs | 2001:DB8:ACAD:2::/64 | 2001:DB8:ACAD:2::1 |
| 3 | Student WiFi | 2001:DB8:ACAD:3::/64 | 2001:DB8:ACAD:3::1 |
| 4 | Servers | 2001:DB8:ACAD:4::/64 | 2001:DB8:ACAD:4::1 |
| 5 | Cameras | 2001:DB8:ACAD:5::/64 | 2001:DB8:ACAD:5::1 |
| 6 | Guest WiFi | 2001:DB8:ACAD:6::/64 | 2001:DB8:ACAD:6::1 |
NZSE wants to add a 7th subnet for IoT Devices. What is the network address?
A PC on the Staff network (Subnet 1) has Interface ID ::A1. What is its full IPv6 address?
How many total subnets could NZSE create with their /48 prefix?
In IPv6, a nibble = 4 bits = 1 hex digit. Subnetting is easiest when the prefix falls on a nibble boundary (a multiple of 4):
| Prefix | On Nibble Boundary? | Easy to Read? |
|---|---|---|
| /32 | ✅ Yes (32 ÷ 4 = 8) | Very easy |
| /48 | ✅ Yes (48 ÷ 4 = 12) | Very easy |
| /52 | ❌ No (52 ÷ 4 = 13.0) | Trickier |
| /56 | ✅ Yes (56 ÷ 4 = 14) | Easy |
| /60 | ✅ Yes (60 ÷ 4 = 15) | Easy |
| /64 | ✅ Yes (64 ÷ 4 = 16) | Very easy |
Your home ISP gives you a /56 prefix:
Q1 — Subnet bits: How many bits are available for subnetting?
Hint: Subnet bits = 64 − Prefix length
Q2 — Number of subnets: How many /64 subnets can you create?
Hint: 2subnet bits
Q3 — Subnet range: The Subnet ID occupies the last 2 hex digits of the 4th hextet. What is the range of values it can take?
Given 2001:DB8:1234:AB00::/56, what is the network address of the 10th subnet?
Hint: Decimal 10 = Hex 0A
What is the last subnet you can create with this /56? (Subnet 256)
| Aspect | IPv4 | IPv6 |
|---|---|---|
| Where to subnet | Borrow from host bits | Use Subnet ID field only |
| Host part size | Varies (depends on mask) | Always 64 bits |
| Calculation | Binary maths + block sizes | Just change the 4th hextet |
| Broadcast address | Must calculate for each subnet | Doesn’t exist |
| Usable hosts | 2n − 2 (important!) | 264 (irrelevant) |
| Typical example | 172.16.0.0/16 → /19 = 8 subnets | 2001:DB8::/48 → /64 = 65,536 subnets |
| Difficulty | Complex | Simple! |
A hospital receives the prefix 2001:DB8:FACE::/48.
They need subnets for: Emergency, ICU, Radiology, Admin, Patient WiFi.
Q1: Network address for the Emergency subnet (Subnet 1)?
Q2: Network address for Patient WiFi (Subnet 5)?
Q3: Router address on the Admin subnet (Subnet 4)?
An ISP assigns the prefix 2001:DB8:ABCD:EF00::/56 to a business customer.
Q1: How many /64 subnets can the customer create?
Q2: What is the network address of their 20th subnet? (Hint: 20 decimal = 14 hex)
Q3: What is the first valid host address on the 20th subnet?
Q1: In IPv6 subnetting, the Interface ID is always how many bits?
Q2: An organisation with a /48 prefix can create how many /64 subnets?
Q3: Which part of the IPv6 address do you change when creating subnets from a /48?
Q4: What is the main difference between IPv4 and IPv6 subnetting?