IPv6 Addressing and Subnetting Workbook - Student Version
IPv6 Addressing and Subnetting Workbook - Student Version
IPv6 Addressing
and Subnetting
Workbook
Version 1
:
Types of IPv6
Addresses
Unspecified, Loopback, Embedded IPv4
Loopback Address is all 0’s except for the last bit, which is 1. It would be
typed as ::1. It operates the same as the IPv4 127.0.0.1 loopback address.
Address Range:
0000:0000:0000:0000:0000:0000:0000:0000/8 to 00FF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF/8
Global Unicast
Address Range:
2000:0000:0000:0000:0000:0000:0000:0000/3 to 3FFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF/3
Unique local Unicast addresses are roughly the same as IPv4 private
Link-local Unicast
Link-local addresses are unicast addresses that are limited to a point to point
connection within a local network. Routers will not forward packets with a link-
local address.
Address Range:
FE80:0000:0000:0000:0000:0000:0000:0000/10 to FEBF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF/10
Multicast
Address Range:
FF00:0000:0000:0000:0000:0000:0000:0000/8 to FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF/8
1981 - The current version of IPv4 is defined in RFC 791, 792 and 793.
It was the first widely used version of the Internet Protocol.
exceeds 10,000.
RFC 1883. 1997 -The number of hosts using the internet exceeds
19,000,000.
1998 - The more fully developed IPv6 obsoletes RFC 1883 with the
updated RFC 2460.
IPv4 has been well established for years. IPv6 is still in flux as it undergoes
growing pains with changes and adjustments to the rules as it is being
implemented.
1
IPv6
There are 340,282,366,920,938,463,463,374,607,431,768,211,456 possible IPv6
addresses.
If you want to actually say the number it is three hundred and forty undecillion,
two hundred and eighty-two decillion, three hundred and sixty-six nonillion, nine
hundred and twenty octillion, nine hundred and thirty-eight septillion, four
hundred and sixty-three sextillion, four hundred and sixty-three quintillion, three
hundred and seventy-four quadrillion, six hundred and seven trillion, four
hundred and thirty-one billion, seven hundred and sixty-eight million, two
hundred and eleven thousand, four hundred and fifty-six. (or you can have
Windows Narrator say it for you.)
Multicast
FF00:0000:0000:0000:0000:0000:0000:0000/8
to
FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF/8
11 00
0 1
10 01
1 0
The unshaded areas are reserved
by the IETF for future use. 10 01
0 1
The Internet Assigned Numbers Authority (IANA) divided the available IPv6
addresses into eight equal segments based on the three leading bits of the
addresses (000, 001, 010, 011, 100, 101, 110, and 111). Only one eighth of the
total available addresses have been reserved for use as global unicast
addresses. Four smaller subgroups have been made available for unique local
unicast, link-local unicast, multicast, and (unspecified, loopback, embedded
IPv4).
2
IPv6 by the Numbers
340,282,366,920,938,463,463,374,607,431,768,2 Total number of IPv6 Addresses
11,456
42,535,295,865,117,307,932,921,825,928,971,02 1/8 or the reserved Global Unicast addresses
6,432
415,383,748,682,786,210,282,439,706,337,607,6 The five /12 ranges assigned to the RIRs
80
7,119,157,000 Estimated world population
58,347,322,398,253,923,924,200,534 Estimated number of IPv6 addresses per
person
(That’s over 58 septillion addresses per
person and
doesn’t include the additional smaller blocks
of
addresses assigned to the five RIRs by the
IANA)
Special
Total number Abou Purpos
e 1%
of IPv6 t
1%
340 AfriNI ARI
N
undecillion C
00
11 00 1 LACNIC RIPE
19% NNC
1 0 20%
11 00 APNIC
20%
0 1
415
42.5 Decillion
10 01 undecillion
The five /12 blocks
1 0 1/8th of the of addresses
total IPv6 assigned to the five
10 01 addresses RIR’s by the IANA
0 1 reserved for
There are some
additional
smaller blocks of
The Five RIRs addresses
assigned to the
The Regional Internet Registry is an organization that five RIRs
manages the allocation and registration of internet number
There is a chart in the
resources world wide. It has evolved over time to divide
Reference Section that
the world into five areas, or RIRs. has all of these listed.
FC80:0:0:ACAD:0:0:0:1
1. 0000:0000:0000:0000:0000:0000:0000:0000
2. 0000:0000:0000:0000:0000:0000:0000:0001
3. 2000:0000:0000:0000:0000:ABCD:0000:0025
4. 3F00:0090:0000:0000:0000:0098:0000:0001
5. 2001:3756:0005:0000:ACAD:0000:0000:0025
6. 3FFF:FF00:0000:0000:ACAD:0000:0000:0127
7. 2001:0000:0000:ABCD:FFFF:0000:0000:0001
8. 3ABC:0001:ACAD:0000:0000:1234:0000:0005
9. FC00:0000:0000:0000:3E00:1275:0000:0034
10. FE95:FC6C:C540:0000:0000:0000:0000:9800
11. FF00:ACAD:0000:0000:1234:0000:0000:0001
5
6
Rule 2: Omission of the All-0 Hextets
Rule 2 uses a double colon :: to represent a single contiguous set of all zero
hextexts. It can only be used once in any IPv6 address.
7
Rule 2: Omission of the All-0 Hextets Problems
1. 0000:0000:0000:0000:0000:0000:0000:0000
2. 0000:0000:0000:0000:0000:0000:0000:0001
3. 2000:0000:0000:0000:0000:ABCD:0000:0025
4. 3F00:0090:0000:0000:0000:0098:0000:0001
5. 2001:3756:0005:0000:ACAD:0000:0000:0025
6. 3FFF:FF00:0000:0000:ACAD:0025:0000:0127
7. 2001:ACAD:0000:ABCD:FFFF:0000:0000:0001
8. 3ABC:0001:ACAD:0000:0000:1234:0000:0005
9. FC00:0000:0000:0000:3E00:1275:0000:0034
10. FE95:FC6C:C540:0000:0000:0000:0000:9800
11. FF00:ACAD:0000:0000:1234:0000:0000:0001
8
Combining Rule 1 and Rule 2
To reduce the size of IPv6 address even more you can combine Rule 1 with Rule 2.
9
Combining Rule 1 and Rule 2 Problems
Using Rule 1 and 2 reduce the IPv6 addresses to their shortest form.
1. 0000:0000:0000:0000:0000:0000:0000:0000
2. 0000:0000:0000:0000:0000:0000:0000:0001
3. 2000:0000:0000:0000:0000:ABCD:0000:0025
4. 3F00:0090:0000:0000:0000:0098:0000:0001
5. 2001:3756:0005:0000:ACAD:0000:0000:0025
6. 3FFF:FF00:0000:0000:ACAD:0025:0000:0127
7. 2001:ACAD:0000:ABCD:FFFF:0000:0000:0001
8. 3ABC:0001:ACAD:0000:0000:1234:0000:0005
9. FC00:0000:0000:0000:3E00:1275:0000:0034
10. FE95:FC6C:C540:0000:0000:0000:0000:9800
11. FF00:ACAD:0000:0000:1234:0000:0000:0001
10
Reverting Reduced Address Problems
The following addresses have been shorted using Rule1 and/or Rule 2. Expand
them back to their preferred format.
Sample: FF00:ACAD:ABCD:0:1234::1
//00?ACAD?ABCD?0000?1’3r?0000?0000?0001
1.2000::1
2.::1
3. 2001:0:0:0:0:ABCD:0:127
4. 3E80:0070::0098:0000:0001
5. 2FFF:38:5:0:ACAD::5
6. 3FFF::ACAD:25:0:100
7. 2002:ACAD:0:1BCD:FFFF::4
8. 3FAA:0025:ACAD::ABCD:0000:0005
9. FFFF::4E00:1235:0:34
10.3E01:6C:40::9800
1
1
IPv6 Address Categories
All IPv6 addresses fall into one of three categories
Unicast -
Unicast addresses identify a unique interface on an IPv6
device. It is a one to one connection between a source
and destination.
Global Unicast -
Similar to a public IPv4 address
Can be used as a public address on the
internet Globally unique
Can be static or dynamic
Link-Local -
Only used on a local network link to uniquely
identify a host Not routable on the public internet
No router will forward a link-local address
Every IPv6 enabled networked device is required to have a link-local
address Multiple interfaces on the same device can have the same
link-local address
Loopback - (::1/128)
Used by a host to ping itself to test the
TCP/IP stack It cannot be assigned to a
physical interface
Unique Local -
Unique local addresses are roughly the same as IPv4 private addresses
Embedded IPv4 -
Used to transition IPv4 networks into IPv6
Multicast -
Multicast addresses are used to send a single packet to multiple destinations
simultaneously.
Anycast -
Anycast addresses are described as a one-to-nearest or one-to-one-of-many
packet delivery. For example, all routers in the same network will be assigned
the same Anycast address. A packet sent to that address will only be delivered
There are no broadcast addresses in 11
IPv6.
to the closest router with that address based on routing protocol metrics.
Anycast addresses can be pulled from Global Unicast, Site-Local, or Link-Local
address ranges. The first address and the last 128 addresses in a /64 Global
Unicast range are reserved as the Subnet-Router Anycast Address.
12
Global Unicast IPv6 Address
128 bits
64 bits
64 bits
48 bits
16
bits
Subnet ID -
This is similar to the subnet portion of an IPv4 address.
The difference is in IPv4 the subnet is borrowed from the host portion of the address.
In IPv6 the Subnet ID is a separate field (/48 to /64) and not necessarily part of the Interface
ID.
Interface ID -
The Interface ID uniquely identifies a interface on the local subnet.
Subnet Prefix
The Subnet Prefix is the address space used by the Global Routing Prefix and
the Subnet ID, and can range from 0 to 128. The preferred Subnet Prefix length
is /48 to /64 for customers or sites.
RFC 4291 recommends that the Interface-ID or host portion of your IPv6
address be 64 bits. A minimum /64 prefix length is required to support
Stateless Address Auto-configuration.
14
Global Unicast Prefix Allocations
In 2001, RFC 3177 was written to provide recommendations for how IPv6
Global Unicast addresses should be allocated to customers or Sites.
“In particular, it recommends the assignment of /48 in the
general case, /64 when it is known that one and only one subnet
is needed and /128 when it is absolutely known that one and
only one device is connecting.”
One Device
/128
/64
One Subnet
This gives local ISPs more options when assigning IPv6 addresses to their
customers or Sites.
Small / Home / SOHO Prefix (Single Subnet) /64
14
Subnetting on the Nibble Boundary
One of the design themes driving IPv6 was to keep subnetting as simple as
possible. The forth hextet is reserved for subnetting, giving network
administrators multiple options for developing a network plan. In order to
keep IPv6 addressing as simple as possible it is a Best Practice to subnet on
Every IPv6 address is comprised of 128 bits, which is represented with 32
hexadecimal numbers.
2001:ACAD:1234:0000:0000:0000:0000:0000/48
Showing this address with 128 binary characters makes it difficult to read
and almost impossible for most people to work with.
0010000000000001:1010110010101101:0001001000110100:0000000000000000:
0000000000000000:0000000000000000:0000000000000000:0000000000000000
2001:ACAD:1234:0000:0000:0000:0000:0000/48
IPv6 can be subnetted just like IPv4 using individual binary bits. To keep
subnetting as simple as possible it is a Best Practice to borrow 4 bits, or
the nibble boundary.
/48 - 1 Subnet
/64 - 65,536 /64 - 4096 /64 - 256 /64 - 16 Subnets /64 - 1 Subnet
Subnets Subnets Subnets
As an example, your company has two offices, and within each office there are
several groups you want on separate subnets. The groups include: Infrastructure,
Management, Marketing, Finance, Research, Warehouse, and Sales.
Your ISP has assigned your company the IPv6 address 2001:ACAD:1234::/48. You
will need one Site ID for each office. A /52 Subnet Prefix will give you 16 subnets, or
you could use a /56 Subnet Prefix and have 256 subnets. For our purposes we ‘ll
use the /56 Subnet Prefix.
Our original IPv6 Range was: 2001:ACAD:1234::/48. Subnetting this address with a
/56 Subnet Prefix will take two nibbles from the Subnet ID and give you the
following address ranges:
Office 1 needs subnets for Infrastructure, Management, and Sales. Subnet the Site
ID for Office 1 with a /60 Subnet Prefix.
15
2001:ACAD:1234:0100::/60 This becomes the Sub-Site ID for
Infrastructure needs. 2001:ACAD:1234:0110::/60 This becomes the
Sub-Site ID for Managment.
2001:ACAD:1234:0120::/60 This becomes the Sub-Site ID for Sales.
(Lots of subnets omitted )
2001:ACAD:1234:01F0::/60
16
Subnetting IPv6
48 bits 16 bits 64 bits
Lets say that your ISP has assigned you the 2001:ACAD:1234::/48 IPv6 address.
Basic subnetting in IPv6 was designed to make subnetting a very simple process. Start at
the
/64 bit and start counting up until you’ve used all the available bits in
the subnet ID. It really is that simple!
17
(Lots of subnets omitted for space.)
2001:ACAD:1234:FFFC:0000:0000:0000:0000/64
65,533rd
subnet
2001:ACAD:1234:FFFD:0000:0000:0000:0000/64 65,534th subnet
2001:ACAD:1234:FFFE:0000:0000:0000:0000/64 65,535th subnet
2001:ACAD:1234:FFFF:0000:0000:0000:0000/64 65,536th subnet
18
A Medium End user might receive a /56 IPv6 address from their ISP.
subnet
2001:ACAD:1234:12FE:0000:0000:0000:0000/64 255th subnet
2001:ACAD:1234:12FF:0000:0000:0000:0000/64 256th subnet
A Small End user might receive a /60 IPv6 address from their ISP.
23 00
2001:ACAD:1234:1230:0000:0000:0000:0000/64 1st subnet
2001:ACAD:1234:1231:0000:0000:0000:0000/64 2nd subnet
2001:ACAD:1234:1232:0000:0000:0000:0000/64 3rd subnet
2001:ACAD:1234:1233:0000:0000:0000:0000/64 4th subnet
2001:ACAD:1234:1234:0000:0000:0000:0000/64 5th subnet
2001:ACAD:1234:1235:0000:0000:0000:0000/64 6th subnet
2001:ACAD:1234:1236:0000:0000:0000:0000/64 7th subnet Each
2001:ACAD:1234:1237:0000:0000:0000:0000/64 8th subnet subnet
2001:ACAD:1234:1238:0000:0000:0000:0000/64 9th subnet contains
2001:ACAD:1234:1239:0000:0000:0000:0000/64 10th subnet over 18
2001:ACAD:1234:123A:0000:0000:0000:0000/64 11th subnet quintillion
2001:ACAD:1234:123B:0000:0000:0000:0000/64 12th subnet
2001:ACAD:1234:123C:0000:0000:0000:0000/64 13th subnet
2001:ACAD:1234:123D:0000:0000:0000:0000/64 14th subnet
2001:ACAD:1234:123E:0000:0000:0000:0000/64 15th subnet
2001:ACAD:1234:123F:0000:0000:0000:0000/64 16th subnet
A Home or single Site might receive a /64 IPv6 address from their ISP.
19
Global Routing Prefix Interface ID
2001:ACAD:1234:1234:0000:0000:0000:
0000
2001:ACAD:1234:1234:0000:0000:0000:0000/64 1 subnet
Over 18 quintillion
addresses
20
Common Prefix’s and Number of Subnets
Using the Subnet ID, the common Subnet Prefix’s available from your ISP are /48,
/52, /56, /60, and /64. The ISP could assign a lower Prefix Length, but
most business will not need more than 65,536 subnets per Site.
Notice that the Subnet ID
The commonly available /64 subnets are: always changes by four
even though we’re only
/48 65,536 subnets using a single hexadecimal
/52 4096 subnets character.
/56 256 subnets
/60 16 subnets Each hexadecimal character
/64 1 subnet equals 4 binary numbers.
With IPv4 the main concern was using the fewest possible number of
addresses through creative subnetting.
The primary concern with IPv6 is making sure you have a prefix length
that will cover all the subnets your Site will require and allow for future
growth.
How many /64 subnets are available with this address? 65,536
’001?/E1’?A’31??/6r
’001?/E1’?A’31?1??/6r
’001?/E1’?A’31?’??/6r
’001?/E1’?A’31?3??/6r
’001?/E1’?A’31?r??/6r
21
’001?/E1’?A’31?5??/6r
22
Problem 1
Your ISP has given you the IPv6 address 2000:ACAD:1234:6600::/56.
Problem 2
Your ISP has given you the IPv6 address 3FFF:5801:DEAF::/48.
23
Problem 3
Your ISP has given you the IPv6 address 2001:ACAD:5678:1840::/60.
Complete the /64 subnets in this range. (The ISP’s Global Routing Prefix is already
’001?ACAD?5678?
’001?ACAD?5678?
’001?ACAD?5678?
’001?ACAD?5678?
’001?ACAD?5678?
’001?ACAD?5678?
’001?ACAD?5678?
’001?ACAD?5678?
’001?ACAD?5678?
’001?ACAD?5678?
’001?ACAD?5678?
’001?ACAD?5678?
’001?ACAD?5678?
’001?ACAD?5678?
’001?ACAD?5678?
24
Problem 4
Your ISP has given you the IPv6 address 3100:6523:AD14:8000::/52.
What are the first four /64 subnets? (The ISP’s Global Routing Prefix is already
3100?65’3?AD1r?
3100?65’3?AD1r?
3100?65’3?AD1r?
3100?65’3?AD1r?
3100?65’3?AD1r?
Problem 5
Your ISP has given you the IPv6 address 2100:89:4500::/48.
What are the first four /64 subnets? (The ISP’s Global Routing Prefix is already
’100?89?r500?
’100?89?r500?
’100?89?r500?
’100?89?r500?
’100?89?r500?
25
IPv6 Subnetting Best Practices
IPv6 was designed to make subnetting as simple as possible by using ridiculously
large blocks of addresses. Yes, it’s wasteful! Most experts agree that IPv6 will
last for 100 years and IP will be replaced before we run out of IPv6 address
space.
So until the rules and/or the consensus of the experts change, these are the
common subnets and best practices you will be working with. Information for
subnets can be found in RFC & RTC documents, plus some additional resources
listed in the Reference section of this workbook.
Point-To-Point Connections -
Best Practice: Use a /64 address range for these two addresses.
In rare cases this approach might present an issue with certain router
setups where addresses are bounced back and forth between routers.
Reducing the number of addresses in the range can also help avoid
neighbor cache exhaustion attacks. (RFC 6164 - section 5)
Of all these options the /120 is probably the best choice since it
avoids any issues with the Anycast addresses.
26
It is recommended that you reserve the entire /64 network with each
of the above options.
27
/128 Single Address Subnets -
Best Practice: reserve the first subnet to use for infrastructure needs,
such as loopback addresses, etc..
Acceptable option:
Allocate a full /64 range of addresses for each loopback address, but
assign it a /128 subnet Prefix.
Anycast addresses -
Best Practice: Don’t use the very first address or the last 128 addresses
in any /64 network. These can only be assigned to an interface as an
Anycast address.
The first address in every /64 subnet range is reserved for special use. The
Interface ID is all zero’s. (Example: 2001:ACAD:1234:5678:0000:0000:0000:0000/64)
This address is the Subnet-Anycast Address. These addresses are
typically used by different protocols such as Mobile IPv6. (RFC 4291)
The last eight bits in every /64 subnet range are reserved for Anycast
addresses. These bits are 10000000 to 11111111. This means you can
not assign any addresses if the last hextet falls between FF80 and FFFF
unless it is a Anycast address. (RFC 2526)
If you try to apply the last 128 addresses to a router without setting
them up as an Anycast address you will get the following error
message.
Router(config-if)#ipv6 address 2001:ACAD:1234:5678:FFFF:FFFF:FFFF:FFFF/64
% 2001:DB8:1:1:FFFF:FFFF:FFFF:FFFF/64 should not be configured on FastEthernet0/0, a reserved anycast
28
Developing an Address Plan
(or IPv6 Subnetting in the Real World)
There is no one right way for developing an IPv6 addressing plan, but the
recommended general guidelines include the following:
Subnetting by Location:
To divide by location you would need four subnets. One for each
building and one for the overall network infrastructure needs. You
also need to hold several extra subnets in reserve for later growth.
Advantages:
This allows you to optimize your routing tables. All the networks
within each location will aggregate to a single route.
Advantages:
Subnetting by user groups makes it much easier to implement a
security policy. Grouping by usage also helps track addresses for
Best Practice:
Subnetting by either location or user is acceptable. However, with
the emphasis on network security, most networks are better served
by subnetting user groups. It makes it much easier to maintain a
higher level of security.
29
Step 2: Determine how many primary and secondary subnets your Site will need.
Subnetting by Location:
Primary Subnets: Quantity 4
With three buildings you will need four primary subnets. One
for each building and one for the overall infrastructure needs.
MDF (Network
Infrastructure)
Primar
y
Subnet
s
Secondar
Administration Staf Student Studen Staf
f s ts f
Administration Academic Dormitory
MDF (network
Infrastructure)
Primar
y
Subnetting Options:
/48 /52 /56 /60 /64
No Nibbles 1 Nibble 2 Nibbles 3 Nibbles 4 Nibbles
/48 - 1 Subnet
/52 - 16 Subnets /52 - 1 Subnet
/56 - 256 Subnets /56 - 16 Subnets /56 - 1 Subnets
/60 - 4096 /60 - 256 Subnets /60 - 16 Subnets /60 - 1 Subnets
Subnets
/64 - 65,536 /64 - 4096 /64 - 256 Subnets /64 - 16 Subnets /64 - 1 Subnet
Subnets Subnets
Subnetting by Location:
Primary Subnets: Quantity 4
With three buildings you will need four primary subnets. One for
each building and one for the overall infrastructure needs.
Take the addresses assigned to you by the ISP use one nibble and
subnet it into 16 subnets using a /52 Subnet Prefix. This will give
you the 4 primary subnets required with several to spare for future
growth.
2001:ACAD:1234::/48 becomes:
Site IDs and Sub-Site IDs will be the addresses found in the routing
tables.
26
Take the second, third, and forth ranges and subnet them again by
using the next Nibble with a /56 Subnet Prefix. This will create 16
subnets for each location.
Take the address assigned to you by the ISP use one nibble and
subnet it into 16 subnets using a /52 Subnet Prefix. This will give
you the 4 primary subnets required with several to spare for
future growth.
2001:ACAD:1234::/48 becomes:
27
P 2001:ACAD:1234:F000::/52
28
IPv6 Subnetting Problems
Subnetting on the Nibble Boundary
Sample Problem 1
Using the minimum number of subnets required for the primary and secondary
sites, design two IPv6 address plans that meets the following requirements.
Create one plan for user groups and a second plan for location.
’000?/E’3?005r??/5’
P Managers Site ID: ’000?/E’3?005r?1000??/5’
P
Finance Site ID: ’000?/E’3?005r?’000??/5’
P Human Relations Site ID: ’000?/E’3?005r?3000??/5’
30
Subnets Based on Location
ISP Address: 2000:FE23:0054::/48
S1
Registers Sub-Site ID: ’000?/E’3?005r?3’00??/56
S1 Wireless Sub-Site ID: ’000?/E’3?005r? 3300??/5 6
31
S1
Registers Sub-Site ID: ’000?/E’3?005r?r’00??/56
S1 Wireless Sub-Site ID: ’000?/E’3?005r ? r 300??/5 6
32
IPv6 Subnetting Problems
Subnetting on the Nibble Boundary
Sample Problem 2
Using the minimum number of subnets required for the primary and secondary
sites, design two IPv6 address plans that meets the following requirements.
Create one plan for user groups and a second plan for location.
A Medical Building is opening in your community and needs an IPv6 network plan
First Floor
Second Floor Rooms
Rooms Patient
Nurses Station
Check-in
Ward A
Emergancy
Room
Users Users
Medical Building Include: Include:
Administrato Staff
rs Staff Guests
Guests
33
Subnets Based on Location
ISP Address: 2001:5378:8801::/48
’001?5378?8801?1000??/5’
P First Floor Site ID:
S2Administrators Sub-Site
ID: ’001?5378?8801?1’00??/60
S2 ’001?5378?8801?1’10??/60
Staff Sub-Site ID:
’001?5378?8801?1’’0??/60
S2 Guest Sub-Site ID:
S2Guest Sub-Site
ID:
34
’001?5378? 8801?’100??/60 ’001?5378?
8801?’000??/56 8801?’110??/60
’001?5378? ’001?5378?8801?’’00??/56
8801?’100??/56 ’001?5378?8801?’’00??/60
’001?5378? ’001?5378?8801?’’10??/60
35
IPv6 Subnetting Problems
Subnetting on the Nibble Boundary
Problem 1
Using the minimum number of subnets required for the primary and
secondary sites design two IPv6 address plans that meets the following
requirements. Create one plan for location and the second plan for user
groups.
The XYZ Film company is setting up a new office and needs an IPv6 network plan
developed. The company will have the following departments:
36
Subnets Based on Location
ISP Address: 2001:EE00:2575::/48
37
IPv6 Subnetting Problems
Subnetting on the Nibble Boundary
Problem 2
Using the minimum number of subnets required for the primary and secondary
sites design two IPv6 address plans that meets the following requirements.
Create one plan for user groups and a second plan for location.
A new medical supply company is opening and needs an IPv6 network plan
developed. The company has three buildings and will include the following user
groups:
38
Subnets Based on Location
39
IPv6 Subnetting Problems
Subnetting on the Nibble Boundary
Problem 3
Using the minimum number of subnets required for the primary and secondary
sites design two IPv6 address plans that meets the following requirements.
Create one plan for user groups and a second plan for location.
A paper supply company needs an IPv6 network plan developed. The company
has two buildings and will include the following user groups and sub-user
groups:
Building A Building B
41
Subnets Based on Location
ISP Address: 2001:CA21:9000::/48 (The ISP’s Global Routing Prefix is already printed for you.)
S1HR Sub-Site
ID: ’001?CA’1?9000?
S1Warehouse Sub-Site
ID: ’001?CA’1?9000?
42
IPv6 Subnetting Problems
Subnetting on the Nibble Boundary
Problem 4
Using the minimum number of subnets required for the primary and
secondary sites design two IPv6 address plans that meets the following
requirements. Create one plan for location and the second plan for user
groups.
A company is setting up a new server farm and needs an IPv6 network plan
developed. The Core Router and the direct connections with layer 3 switches will
pull their IPv6 addresses from the Infrastructure Site ID range.
Office A Office B
Layer 3 Switch Layer 3 Switch
’000?ACAD?11r5?
P Administration Site ID: ’000?ACAD?11r5?
P Finance Site ID: ’000?ACAD?11r5?
P Guest Access Site ID:
’000?ACAD?11r5?
P Marketing Site ID: ’000?ACAD?11r5?
43
P Bookkeeping Site ID: ’000?ACAD?11r5?
44
Subnets Based on Location
ISP Address: 2000:ACAD:1145::/48 (The ISP’s Global Routing Prefix is already printed for you.)
’000?ACAD?11r5?
S1 Management Sub-Site ID: ’000?ACAD?11r5?
S2Administration Sub-Site
ID: ’000?ACAD?11r5?
S1Production Sub-Site
ID:
’000?ACAD?11r5?
S2Administration Sub-Site
ID: ’000?ACAD?11r5?
’000?ACAD?11r5?
S1 Wireless Access Sub-Site ID: ’000?ACAD?11r5?
Problem 5
Using the minimum number of subnets required for the primary and secondary
sites design two IPv6 address plans that meets the following requirements.
Create one plan for user groups and a second plan for location.
The company has multiple floors in a high rise building and will include the
following user groups and sub-user groups:
3/01?AA07?3907?
46
S1 HR Sub-Site ID: 3/01?AA07?3907?
47
S1 Financial Sub-Site ID: 3/01?AA07?3907?
3/01?AA07?3907?
S1 Manufacturing Groups Sub- Site ID: 3/01?AA07?3907?
Problem 6
Using the minimum number of subnets required for the primary and
secondary sites design two IPv6 address plans that meets the following
requirements. Create one plan for location and the second plan for user
groups.
This medium sized company will include the following user groups and sub-
P ISP Address: 2001:0:17::/52 (The ISP’s Global Routing Prefix is already printed for you.)
’001?0?17?
P Administrators Site ID:
’001?0?17?
P Staff Site ID: ’001?0?17?
P Advertising Site ID: ’001?0?17?
S1 Infrastructure Sub-Site ID: ’001?0?17?
43
IPv6 Subnetting Problems
Subnetting on the Nibble Boundary
Problem 7
Using the minimum number of subnets required for the primary and
secondary sites design two IPv6 address plans that meets the following
requirements. Create one plan for location and the second plan for user
groups.
This medium sized company is setting up a new IPv6 addressing plan which
will include the following user groups and sub-user groups:
3/00?3’89?0?
44
P Purchasing Sub-Site ID: 3/00?3’89?0?
S1 Inventory Sub-Site ID: 3/00?3’89?0?
S1 Distribution Sub-Site ID: 3/00?3’89?0?
45
Subnets Based on Location
ISP Address: 3F00:3589:0:5000::/52 (The ISP’s Global Routing Prefix is already printed for you.)
S1Infrastructure Sub-Site
ID:
3/00?3’89?0?
3/00?3’89?0?
S1Management Sub-Site
ID:
S2Sales Sub-Site
ID:
3/00?3’89?0?
S1Infrastructure Sub-Site
3/00?3’89?0?
ID:
3/00?3’89?0?
S1Management Sub-Site
ID:
Problem 8
Using the minimum number of subnets required for the primary and
secondary sites design two IPv6 address plans that meets the following
requirements. Create one plan for location and the second plan for user
groups.
A Health Care facility is upgrading their network to IPv6 and will include the
following user groups and sub-user groups:
P
Pediatric Site ’000?’’31?/³00?
ID:
P
Records Site ID: ’000?’’31?/³00?
P
Guest WIFI Site ID: ’000?’’31?/³00?
47
Subnets Based on Location
ISP Address: 2000:2531:FE00::/48 (The ISP’s Global Routing Prefix is already printed for you.)
P Infrastructure Site ID:
’000?’’31?/³00?
’000?’’31?/³00?
S1 Obstetrics Sub-Site ID:
’000?’’31?/³00?
’000?’’31?/³00?
48
S2 Nurses/Staff Sub-Site ID: ’000?’’31?/³00?
S2 Guest WIFI Sub-Site ID: ’000?’’31?/³00?
49
Subnetting Within a Nibble
2001:ACAD:1234:0000:0000:0000:0000:0000/48
Hexadecimal
/48 /52 /56 /60 /64
D:1234:0000:0000:00
Number of /64 65,53 256 1
Subnets 6
409 16
6
Binary
/48 /49 /50 /51 /52 /53 /54 /55 /56 /57 /58 /59 /60 /61 /62 /63 /64
50
Subnetting Beyond the /64 Boundary
What happens if you need more subnets than the 16 bit Subnet Prefix will allow? Or
your IPv4 address conservatism kicks in and you decide that using a /64 Global
Routing Prefix with over 18 quintillion addresses for a single point-to-point serial
connection is more than you can handle; there are some options.
IPv6 was designed to be very flexible. The Subnet Prefix is the address space used
by the Global Routing Prefix and the Subnet ID, and can range from 0 to 128.
Just as you could borrow host bits in IPv4, you can borrow Interface ID bits in
IPv6. This allows you to create more subnets with fewer addresses. Before
you get too excited, there are a few rules and best practices you need to take
into account.
Any subnet that includes end devices needs to stay on a /64 or lower
prefix. This would be computers, tablets, smart phones, servers, printers,
anything that might be on a subnet that connects to the internet.
Stateless Address
Autoconfiguration Neighbor
Discovery (ND)
Secure Neighborship Discovery (SEND)
privacy extensions
parts of Mobile IPv6
PIM-SM with Embedded-
RP SHIM6 [SHIM6]
Plus a number of other features currently in development, or being
proposed, which will rely on a /64 prefix.
The bottom line is that IPv6 was designed to waste an unbelievable amount of
51
addresses and it’s OK. So while it is possible to subnet beyond the /64 subnet
prefix it is not recommended.
52
Define the Following IPv6 Terms:
(Use the definitions/explanations from this workbook)
2.Subnet ID -
3.Interface ID -
4.Subnet Prefix -
5. Nibble -
6. Unspecified address -
53
7. Loopback address -
12.Unicast address -
54
13. Anycast address -
14.Site ID -
15.Sub-Site ID -
55
What Type of IPv6 Address is this?
Base on the information supplied on the inside front cover of this workbook
identify the following IPv6 addresses as either: Unspecified, Loopback, Embedded
IPv4, Global Unicast, Unique local Unicast, Link-local Unicast, or Multicast.
1. 2000:ACAD:1234::/
48 Global Unicast
2. 0000:0000:0000:0000:0000:0000:0000:0000 Unspeci/ied
3. FE80:ACAD:1234::/48
4. FDFF:8771:3321::/48
5.FFCD:984:1::/48
6. 3F98::/48
7. ::1
9. 3000::0001/64
10. FEA1:8934:3021:8945:1234:ACAD:FE23:0001/64
11. 00AB:2307:4829::/56
13. FF45:6543:ACAD::/60
14.2ABC:ACAD:AAAA:0000:0000:0000:0000:00001/64
15. FC12:0000:ACAD:1234:5678:9101:1121:3141/48
16.2345:FE66:FECD:9999:2365::1/52
17. ::
18.0000:0000:0000:0000:0000:0000:0000:0001
19. FFF8:0000:00001::0023/64
20.0023:5935:F441::/48
22. 2001:A
BCD:1234:FFFF:ACAD::45/60
56
23. 3211:FCAB:EEEE::/48
24.FCCC:25:1::/48
57
58
Reference Section
IANA IPv6 Gloabal Unicast Address Alocations to the RIRs
Prefix Designation Date Whois Status
2001:0000::/23 IANA 7/1/1999 whois.iana.org ALLOCATED
2001:0200::/23 APNIC 7/1/1999 whois.apnic.net ALLOCATED
2001:0400::/23 ARIN 7/1/1999 whois.arin.net ALLOCATED
2001:0600::/23 RIPE NCC 7/1/1999 whois.ripe.net ALLOCATED
2001:0800::/23 RIPE NCC 5/2/2002 whois.ripe.net ALLOCATED
2001:0a00::/23 RIPE NCC 11/2/2002 whois.ripe.net ALLOCATED
2001:0c00::/23 APNIC 5/2/2002 whois.apnic.net ALLOCATED
2001:0e00::/23 APNIC 1/1/2003 whois.apnic.net ALLOCATED
2001:1200::/23 LACNIC 11/1/2002 whois.lacnic.net ALLOCATED
2001:1400::/23 RIPE NCC 2/1/2003 whois.ripe.net ALLOCATED
2001:1600::/23 RIPE NCC 7/1/2003 whois.ripe.net ALLOCATED
2001:1800::/23 ARIN 4/1/2003 whois.arin.net ALLOCATED
2001:1a00::/23 RIPE NCC 1/1/2004 whois.ripe.net ALLOCATED
2001:1c00::/22 RIPE NCC 5/4/2001 whois.ripe.net ALLOCATED
2001:2000::/20 RIPE NCC 5/4/2001 whois.ripe.net ALLOCATED
2001:3000::/21 RIPE NCC 5/4/2001 whois.ripe.net ALLOCATED
2001:3800::/22 RIPE NCC 5/4/2001 whois.ripe.net ALLOCATED
2001:3c00::/22 IANA RESERVED
2001:4000::/23 RIPE NCC 6/11/2004 whois.ripe.net ALLOCATED
2001:4200::/23 AFRINIC 6/1/2004 whois.afrinic.net ALLOCATED
2001:4400::/23 APNIC 6/11/2004 whois.apnic.net ALLOCATED
2001:4600::/23 RIPE NCC 8/17/2004 whois.ripe.net ALLOCATED
2001:4800::/23 ARIN 8/24/2004 whois.arin.net ALLOCATED
2001:4a00::/23 RIPE NCC 10/15/2004 whois.ripe.net ALLOCATED
2001:4c00::/23 RIPE NCC 12/17/2004 whois.ripe.net ALLOCATED
2001:5000::/20 RIPE NCC 9/10/2004 whois.ripe.net ALLOCATED
2001:8000::/19 APNIC 11/30/2004 whois.apnic.net ALLOCATED
2001:a000::/20 APNIC 11/30/2004 whois.apnic.net ALLOCATED
2001:b000::/20 APNIC 3/8/2006 whois.apnic.net ALLOCATED
2002:0000::/16 6to4 2/1/2001 ALLOCATED
2003:0000::/18 RIPE NCC 1/12/2005 whois.ripe.net ALLOCATED
2400:0000::/12 APNIC 10/3/2006 whois.apnic.net ALLOCATED
2600:0000::/12 ARIN 10/3/2006 whois.arin.net ALLOCATED
2610:0000::/23 ARIN 11/17/2005 whois.arin.net ALLOCATED
2620:0000::/23 ARIN 9/12/2006 whois.arin.net ALLOCATED
2800:0000::/12 LACNIC 10/3/2006 whois.lacnic.net ALLOCATED
2a00:0000::/12 RIPE NCC 10/3/2006 whois.ripe.net ALLOCATED
2c00:0000::/12 AFRINIC 10/3/2006 whois.afrinic.net ALLOCATED
2d00:0000::/8 IANA 7/1/1999 RESERVED
2e00:0000::/7 IANA 7/1/1999 RESERVED
3000:0000::/4 IANA 7/1/1999 RESERVED
3ffe::/16 IANA 2008-04 RESERVED
5f00::/8 IANA 2008-04 RESERVED
56
Prefix-Length Number of IPs /68 1,152,921,504,606,840,000
/128 1 /67 2,305,843,009,213,690,000
/127 2 /66 4,611,686,018,427,380,000
/126 4 /65 9,223,372,036,854,770,000
/125 8 /64 - Residential 18,446,744,073,709,500,000
/124 16 /63 36,893,488,147,419,100,000
/123 32 /62 73,786,976,294,838,200,000
/122 64 /61 147,573,952,589,676,000,000
/121 128 /60 - Residential 295,147,905,179,352,000,000
/120 256 /59 590,295,810,358,705,000,000
/119 512 /58 1,180,591,620,717,410,000,000
/118 1,024 /57 2,361,183,241,434,820,000,000
/117 2,048 /56 - Medium 4,722,366,482,869,640,000,000
/116 4,096 /55 9,444,732,965,739,290,000,000
/115 8,192 /54 18,889,465,931,478,500,000,000
/114 16,384 /53 37,778,931,862,957,100,000,000
/113 32,768 /52 75,557,863,725,914,300,000,000
/112 65,536 /51 151,115,727,451,828,000,000,000
/111 131,072 /50 302,231,454,903,657,000,000,000
/110 262,144 /49 604,462,909,807,314,000,000,000
/109 524,288 /48 - Large 1,208,925,819,614,620,000,000,000
/108 1,048,576 /47 2,417,851,639,229,250,000,000,000
/107 2,097,152 /46 4,835,703,278,458,510,000,000,000
/106 4,194,304 /45 9,671,406,556,917,030,000,000,000
/105 8,388,608 /44 19,342,813,113,834,000,000,000,000
/104 16,777,216 /43 38,685,626,227,668,100,000,000,000
/103 33,554,432 /42 77,371,252,455,336,200,000,000,000
/102 67,108,864 /41 154,742,504,910,672,000,000,000,000
/101 134,217,728 /40 309,485,009,821,345,000,000,000,000
/100 268,435,456 /39 618,970,019,642,690,000,000,000,000
/99 536,870,912 /38 1,237,940,039,285,380,000,000,000,000
/98 1,073,741,824 /37 2,475,880,078,570,760,000,000,000,000
/97 2,147,483,648 /36 4,951,760,157,141,520,000,000,000,000
/96 4,294,967,296 /35 9,903,520,314,283,040,000,000,000,000
/95 8,589,934,592 /34 19,807,040,628,566,000,000,000,000,000
/94 17,179,869,184 /33 39,614,081,257,132,100,000,000,000,000
/93 34,359,738,368 /32 - Service LIR 79,228,162,514,264,300,000,000,000,000
/92 68,719,476,736 /31 158,456,325,028,528,000,000,000,000,000
/91 137,438,953,472 /30 316,912,650,057,057,000,000,000,000,000
/90 274,877,906,944 /29 633,825,300,114,114,000,000,000,000,000
/89 549,755,813,888 /28 1,267,650,600,228,220,000,000,000,000,000
/88 1,099,511,627,776 /27 2,535,301,200,456,450,000,000,000,000,000
/87 2,199,023,255,552 /26 5,070,602,400,912,910,000,000,000,000,000
/86 4,398,046,511,104 /25 10,141,204,801,825,800,000,000,000,000,000
/85 8,796,093,022,208 /24 20,282,409,603,651,600,000,000,000,000,000
/84 17,592,186,044,416 /23 - ISP 40,564,819,207,303,300,000,000,000,000,000
/83 35,184,372,088,832 /22 81,129,638,414,606,600,000,000,000,000,000
/82 70,368,744,177,664 /21 162,259,276,829,213,000,000,000,000,000,000
/81 140,737,488,355,328 /20 324,518,553,658,426,000,000,000,000,000,000
/80 281,474,976,710,656 /19 649,037,107,316,853,000,000,000,000,000,000
/79 562,949,953,421,312 /18 1,298,074,214,633,700,000,000,000,000,000,000
/78 1,125,899,906,842,620 /17 2,596,148,429,267,410,000,000,000,000,000,000
/77 2,251,799,813,685,240 /16 5,192,296,858,534,820,000,000,000,000,000,000
/76 4,503,599,627,370,490 /15 10,384,593,717,069,600,000,000,000,000,000,000
/75 9,007,199,254,740,990 /14 20,769,187,434,139,300,000,000,000,000,000,000
/74 18,014,398,509,481,900 /13 41,538,374,868,278,600,000,000,000,000,000,000
/73 36,028,797,018,963,900 /12 83,076,749,736,557,200,000,000,000,000,000,000
/72 72,057,594,037,927,900 /11 166,153,499,473,114,000,000,000,000,000,000,000
/71 144,115,188,075,855,000 /10 332,306,998,946,228,000,000,000,000,000,000,000
/70 288,230,376,151,711,000 /9 664,613,997,892,457,000,000,000,000,000,000,000
/69 576,460,752,303,423,000 /8 1,329,227,995,784,910,000,000,000,000,000,000,000
57
IPv6 Resources
Web Sites:
ARIN IPv6 Wiki
http://www.getipv6.info/display/IPv6/IPv6+Info+Home
Videos:
IPv6 for CCNAs with Anthony Sequeira
Video Series by the Cisco Learning Network - Parts
1, 2 & 3
https://learningnetwork.cisco.com/docs/DOC-20357
PDF Resources:
Preparing An IPv6 Address Plan, Version 2, 18 September 2013
https://www.ripe.net/lir-services/training/material/IPv6-for-LIRs-
Training-Course/ IPv6_addr_plan4.pdf
Printed Books:
IPv6 Fundamentals A Straightforward Approach to Understanding IPv6
By Rick Graziani
ISBN-13: 978-1-58714-313-7
/48 - 1 Subnet
/64 - 65,536 /64 - 4096 /64 - 256 /64 - 16 Subnets /64 - 1 Subnet
Subnets Subnets Subnets
Address Structure
IPv4 Octets vs. IPv6 Hextets
4 Octets 8
Hextets
172.50.0. 2000:ACAD:0000:0000:0000:0000:0000:
1 0001
Inside Cover