Developing An Ipv6 Addressing Plan Guidelines, Rules, Best Practice
Developing An Ipv6 Addressing Plan Guidelines, Rules, Best Practice
Developing An Ipv6 Addressing Plan Guidelines, Rules, Best Practice
Introduction
IPv6 deployment includes:
Internet Stack
Presentation
Session
Sockets
Transport
TCP, UDP
Network
IPv6
IP
Link
Mac Layer
Physical
16-Nov-2011
Address Structure
Unicast addresses are structured as a
subnetwork prefix and an interface identifier.
/128
/64
Subnet prefix
Allocated through a
hierarchy of registries,
service providers, and sites
(global unicast)
Interface ID
(host part)
Automatically assigned
using stateless
autoconfiguration, or
statically, or with DHCPv6
Address Types
http://www.ripe.net/ipv6-address-types/ipv6-address-types.pdf
16-Nov-2011
Example Allocation
Your enterprise is allocated a Global Unicast
Prefix*
2001:DB8::/32
/32
2001 0DB8
xxxx
/48
yyyy
/64
Interface ID
* The default provider allocation via the RIRs is currently a /32. (RFC 5375)
16-Nov-2011
Big mistake #1
Using other than /64 for subnets
Some choose /120
2001 0DB8
xxxx
/120
yyyy
Reasoning:
host part is same size as in IPv4 (8 bits)
/64 is wasteful
the security guy wants to be able to enumerate all
hosts by scanning the subnet, just like in IPv4
16-Nov-2011
16-Nov-2011
16-Nov-2011
Neighbor Discovery
Secure Neighbor Discovery
Stateless Address Autoconfiguration (SLAAC)
Microsoft DHCPv6
Multicast with Embedded-RP
Mobile-IPv6
and many other things in the future
10
16-Nov-2011
11
But what about that DoS problem from the ping-pong effect?
This will not happen on a RFC 4443 compliant IPv6 implementation
If you have a non-compliant device (Juniper), you can set the
interface mask to /126 on the interface as a temporary workaround
until your device is fixed, but you should still allocate a /64 for the
link.
Never use /127 (See RFC 3627), but also look at RFC 6164.
16-Nov-2011
12
Mistake #2
Thinking you have to get the addressing plan
right the first time
Unless you have operational experience with IPv6
deployments and transition, you WILL get it
wrong.
Usually takes about 3 times to get it right.
16-Nov-2011
13
Dont put too much energy into it, because it is only temporary
Iterate
16-Nov-2011
14
Mistake #3
Trying to be too creative about how much
address space to allocate to a site
Thinking you need to allocate large amounts of
space to large sites, and much smaller amounts to
small sites
16-Nov-2011
15
/48
/64
yyyy
Interface ID
Standardize!
It simplifies things administratively and
operationally.
16-Nov-2011
16
Mistake #4
Justify upwards, rather than pre-allocate
downwards.
Requiring sites to develop documentation and
justification for their address space requirements
Allocating to those groups or sites based on that
justification
16-Nov-2011
17
Pre-allocation
You can easily pre-allocate to the site level
see slide on sites get a /48
16-Nov-2011
18
Mistake #5
Host-centric allocation rather than subnetcentric
Thinking that address allocation has anything to
do with the number of hosts
16-Nov-2011
19
Focus on subnets
A /64 subnet has enough room for this many
hosts:
18,446,744,073,709,551,616
20
Once again
When doing an address plan, a major driver in IPv4
was efficiency and conservation
In IPv6, efficiency and conservation is NOT a major
driver, but instead it is all about better alignment
with network topology, accommodation of security
architecture, and operational simplicity through
standardization
16-Nov-2011
21
Other Considerations
In IPv6, every interface has multiple
addresses
In IPv4, we thought of a host as having a single
IP address
22
Other Considerations
There is an opportunity to align the
addressing plan with security topology, to
simplify ACLs
This is the type of thing you may start to
incorporate into your 3rd version of your plan.
23
Other Considerations
Most of the context here has been for large
enterprises that aggregate into a very few
connections to one or two ISPs, and use
provider-independent (PI) space.
If you have a lot of small outlier sites that are
single-homed directly to an ISP, have them
get their address space from that ISP, known
as provider-aggregatable (PA) space.
16-Nov-2011
24
Adding structure or
hierarchy
Examples:
grouping of sites by
region
service delivery point
16-Nov-2011
25
Adding structure or
hierarchy
Recommendation: add grouping or hierarchy
on nibble (4 bit) boundaries
Aligns better with hex digits
Aligns better with grouping in DNS PTR records
Examples:
/36 for regions
16 regions with 4096 sites per region
26
/48
/64
Interface ID
0000 to FFFF
Hierarchy Example
/32
/48
/64
Interface ID
0000 to FFFF
Save the top 4 bits of the subnet number for mapping to IPv4
allocation (or other grouping)
Thats a /52
4096 subnets per /52 (you only need 256, but 3 hex digits allows
you to keep decimal notation)
IPv4
IPv6
16-Nov-2011
Interface ID
29
IPv4
IPv6
Offices
128.123.1.0/24
2001:480:1234:1::/64
Computer Room
128.123.2.0/24
2001:480:1234:2::/64
DMZ (BR)
128.123.100.0/24
2001:480:1234:1100::/64
DMZ (FW)
128.123.101.0/24
2001:480:1234:1101::/64
fw-to-br
128.123.254.0/30
2001:480:1234:1000::/64
fw-to-ir
128.123.254.4/30
2001:480:1234:0000::/64
Notes:
- Used subnet 000 for infrastructure links
- /52 used to designate security zone (0 trust, 1 untrust)
- IPv4 and IPv6 subnet numbers try to align, where possible (when IPv4 subnets are /24)
- didnt use /126s nor /127s for the point-to-point links
[Privacy addresses] are horrible and I hope nobody really uses them, but they're better than NAT.
Owen DeLong, Hurricane Electric
16-Nov-2011
31
32
Additional Guides
Preparing an IPv6 Addressing Plan
http://www.ripe.net/lir-services/training/material/IPv6-for-LIRs-Training-Course/IPv6_addr_plan4.pdf
16-Nov-2011
33
Other topics
Whats missing:
IPv6 Operational Experience
Lots of planning is underway
transition planning
address planning
36
37
Go native
native IPv6 means dont use tunnels.
some confuse this term to mean IPv6-only, but
that is not the case.
38
About translators
Common scenario:
Dont IPv6-enable your actual public web site, but
instead front-end it with an IPv6-to-IPv4 translator
39
16-Nov-2011
40
16-Nov-2011
41
16-Nov-2011
42
Final Comments
16-Nov-2011
43
END
Any Questions?
Contact me at:
[email protected]
16-Nov-2011
44