IPv6 Subnetting
IPv6 Subnetting
The sheer number of bits in an IPv6 address can make IPv6 subnetting intimidating at best. With the
addition of a new addressing scheme it's easy to get lost trying to break up your brand new /48 address
across your enterprise.
Option A:
4 Sites, 4 sub-sites (at each site), 4096 subnets (at each sub-site): first 2 bits for the site, next two bits
for the sub-site (first nibble), next three nibbles for subnets (2^12).
Option B:
16 sites, 16 sub-sites (at each site), 256 subnets (at each sub-site):
First nibble for the site, second for the sub-site and the last two for the subnet.
Option C:
16 sites, 256 sub-sites (at each site), 16 subnets (at each sub-site):
The first nibble for the site, the second and third for the sub-site and the final nibbles for the subnet.
We've decided that a "site" will be a geographic region of the country and a sub-site will be a city within
the geographic region. Here is the breakdown we are using for our sites:
Site Addresses
The sites that we are rolling IPv6 to are in:
San Francisco (Site 9)
Seattle (Site 9)
Omaha (Site 8)
Newark (Site 3)
New York City (Site 2)
Boston (Site 1)
At this point we can assign site and sub-site prefixes.
Each region will match the number on the map:
Site 0
Site 1
- 2001:db8:abcd:1000::/52
Site 2
- 2001:db8:abcd:2000::/52
Site 3
- 2001:db8:abcd:3000::/52
...
Site 8
- 2001:db8:abcd:8000::/52
Site 9
- 2001:db8:abcd:9000::/52
...
These are /52s, because we have 48 bits from the provider and then the next 4 for the site.
Sub-Site Addresses
Next we can assign our sub-sites:
Site 1
---Future Use - 2001:db8:abcd:1000::/56
Boston - 2001:db8:abcd:1100::/56
Future Use - 2001:db8:abcd:1200::/56
...
Future Use - 2001:db8:abcd:1a00::/56
Future Use - 2001:db8:abcd:1b00::/56
...
Site 2
----New York City - 2001:db8:abcd:2000::/56
...
Site 3
---Future Use - 2001:db8:abcd:3000::/56
...
Newark - 2001:db8:abcd:3f00::/56
Site 8
---Omaha - 2001:db8:abcd:8000::/56
Site 9
----
Just like the site, the sub-site uses 4 more bits, moving our prefix length from a /52 to a /56.
Subnet Addresses
Within each site we can now assign our subnets. We will use our Newark site as an example.
Firewall Outside: 2001:db8:abcd:3f00::/64
Web servers : 2001: db8: abcd: 3f01 :: / 64
Database Servers: 2001:db8:abcd:3f02::/64
....
Mail Servers: 2001:db8:abcd:3f0d::/64
....
Management: 2001:db8:abcd:3fee::/64
Loopbacks : 2001: DB8: ABCD: 3fff :: / 64
We are defining the next two nibbles for the subnet so our mask moves from a /56 sub-site up to a /64
subnet prefix. Newark's subnets can use 2001:db8:abcd:3f00 through 2001:db8:abcd:3fff:: for subnet
addresses.
Within each subnet we can provide 2^64 addresses, as we still have 64 bits to use.
For example, within the MailServers vlan we will start all addresses with 2001:db8:abcd:3f0d:: and the
last 64-bits are for the host.
Routing
With IPv6 not relying on IPv4 anymore we finally address the poor addressing schemes we've all had in
place for years. By defining sites and sub-sites, with plenty of room for growth we can do some pretty
heavy duty aggregation.
Each of our sub-sites will advertise their /56 prefix up to an aggregation router.
Each aggregation router will be connected to the IPv6 Internet and announce both our enterprise wide /
48 and the site /52. This provides redundant connectivity via the internet and allows the internet to use
longest match to reach the site directly.
Final Thoughts
Of course you'll want to do what works best for your organization and aligns with your business goals
and requirements. There are no requirements regarding the site and sub-site or even how these are
broken down. These are provided to help you get a better grasp on how do assign IPv6 addresses.
Don't forget, when you get stuck you can always call TAC!