IPv6 address format

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

IPv6 address format

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. How many bits are in an IPv6 address?
A 32 bits
B 128 bits
2. How many groups does a full IPv6 address have?
A Eight groups
B Four groups
3. Which character separates the groups in an IPv6 address?
A A colon :
B A full stop .
4. How many hexadecimal digits are in each group of a full IPv6 address?
A Two hex digits
B Four hex digits
5. Which one is written in the correct IPv6 format?
A 2001:0DB8:0000:0000:0000:FF00:0042:8329
B 2001.0DB8.0000.0000.0000.FF00.0042.8329

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
12001:0DB8:0000:0000:0000:FF00:0042:8329 A2001:0DB8:ABCD:0012:0000:0000:00FF:1A2B
22001:0DB8:0000:0000:0000:FF00:0042:8329 = 128 bits BFull stops are used as separators. IPv6 groups must be separated by colons.
3IPv6 groups are separated by colons, not full stops like IPv4 CFE80:0000:0000:0000:0202:B3FF:FE1E:8329
4Each IPv6 group has exactly four hex digits (0-9 and A-F) DOnly seven groups are shown. A full IPv6 address needs eight groups.
52001:0DB8:0000:0000:FF00:0042:8329 EA full IPv6 address: eight groups of four hex digits separated by colons
62001.0DB8.0000.0000.0000.FF00.0042.8329 FEight groups x 16 bits per group (4 hex digits x 4 bits) gives 128 bits in total

Definitions

IPv6 address

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
An IPv6 address is ___ bits long.
2.
An IPv6 address has _ groups of hex digits.
3.
Each IPv6 group has _ hex digits.
4.
IPv6 groups are separated by a _____.
5.
8 groups x 4 digits x _ bits = 128 bits

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A groups = 8
B digits = 4
C bits = groups * digits * 8
Question 2
A g1 = '2001'
B g2 = '0DB8'
C g3 = '00GF'
Question 3
A # first four groups
B part = '2001-0DB8-0000-0042'
C print(part.split(':'))
Question 4
A version = 6
B groups = 8
C digits = 4
D print('IPv6 is 32 bits')
Question 5
A groups = 4
B digits = 4
C print(groups, 'x', digits)

Answer Key

IPv6 address format
Section A: Quick Questions
Q1
B — 128 bits
Q2
A — Eight groups
Q3
A — A colon :
Q4
B — Four hex digits
Q5
A — 2001:0DB8:0000:0000:0000:FF00:0042:8329
Section B: Match the Pairs
Q1
2001:0DB8:0000:0000:0000:FF00:0042:8329 → A full IPv6 address: eight groups of four hex digits separated by colons
Q2
2001:0DB8:0000:0000:0000:FF00:0042:8329 = 128 bits → Eight groups x 16 bits per group (4 hex digits x 4 bits) gives 128 bits in total
Q3
IPv6 groups are separated by colons, not full stops like IPv4 → FE80:0000:0000:0000:0202:B3FF:FE1E:8329
Q4
Each IPv6 group has exactly four hex digits (0-9 and A-F) → 2001:0DB8:ABCD:0012:0000:0000:00FF:1A2B
Q5
2001:0DB8:0000:0000:FF00:0042:8329 → Only seven groups are shown. A full IPv6 address needs eight groups.
Q6
2001.0DB8.0000.0000.0000.FF00.0042.8329 → Full stops are used as separators. IPv6 groups must be separated by colons.
Section C: Definitions
Q1
IPv6 address — A 128-bit address written as eight groups of four hex digits separated by colons, e.g. 2001:0DB8:0000:0000:0000:FF00:0042:8329
Section D: Fill in the Blanks
Q1
An IPv6 address is 128 bits long.
Q2
An IPv6 address has 8 groups of hex digits.
Q3
Each IPv6 group has 4 hex digits.
Q4
IPv6 groups are separated by a colon.
Q5
8 groups x 4 digits x 4 bits = 128 bits
Section E: Spot the Error
Q1
C — Each hex digit stands for 4 bits, so the total is 8 groups x 4 digits x 4 bits = 128 bits. The line should multiply by 4, not 8.
Q2
C — Hexadecimal digits only go from 0 to 9 and A to F. G is not a valid hex digit, so the group should be '00FF'.
Q3
B — The groups in an IPv6 address are separated by colons, not hyphens. The line should be part = '2001:0DB8:0000:0042'.
Q4
D — An IPv6 address is 128 bits long. 32 bits is the size of an IPv4 address. The line should print 'IPv6 is 128 bits'.
Q5
A — An IPv6 address has eight groups, not four. The line should be groups = 8.