IPv6 subnetting

dimerusticΔίκτυα και Επικοινωνίες

23 Οκτ 2013 (πριν από 4 χρόνια και 17 μέρες)

149 εμφανίσεις



IPv6 subnetting
Pierre-Yves Maunier – 11/03/2010 – FR
n
OG 17 Meeting
pymaunier@neotelecoms.com
1/185
IPv6 for LIRs
March 2011
IANA IPv4 Pool

2
0%
10%
20%
30%
40%
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
The Registry System
IP Address Distribution
8
Allocation
PA Assignment
PI Assignment
IANA
End User
LIR
RIR
/3
/32
/12
/56
/48
/48
Our Slice of the IPv4 Pie
APNIC
ARIN
LACNIC
AfriNIC
Organisations
Other IANA
13
RIPE NCC
IPv6 Address Basics

IPv6 address: 128 bits
-
32 bits in IPv4

Every subnet should be a /64

Customer assignments (sites) between:
-
/64 (1 subnet)
-
/48 (65,536 subnets)

Minimum allocation size /32
-
65,536 /48s
-
16,777,216 /56s
30
Multiple addresses
32
Addresses
Range
Scope
Loopback
::1
host
Link Local
fe80::/10
link
Unique Local
fc00::/7
site
Global Unicast
2000::/3
global
6to4
2002::/16
global
Multicast
ff00::/8
variable
Teredo
2001::/32
global
IPv6 Allocations and Announcements
43
0
1000
2000
3000
4000
5000
6000
2004
2005
2006
2007
2008
2009
2010
2011
RIPE NCC Allocations
Total Worldwide Allocations
Total Worldwide Announcements


IPv6 Subnetting
/64
2001:0DB8:
0000:0000
:
0000:0000:0000:0000
64 bits interface ID
/60
= 16 * /64
/56
= 256 * /64
/48
= 65536 * /64
/44
= 16 * /48
/40
= 256 * /48
/32
= 65536 * /48
Pierre-Yves Maunier – 11/03/2010 – FR
n
OG 17 Meeting
pymaunier@neotelecoms.com


Example 1 :
FooBar Networks

International Transit Provider

LIR

Allocation : 2001:0db8::/32

Provides various services

Static IP Transit connectivity

BGP Transit connectivity

All services are provided on multiple countries
Pierre-Yves Maunier – 11/03/2010 – FR
n
OG 17 Meeting
pymaunier@neotelecoms.com
2001:0db8:0000::/40
Foobar Infra + Future Use
2001:0db8:0100::/40
Customer Blocks
2001:0db8:0200::/40
Future use
…..........................................
2001:0db8:ff00::/40
Future use
1 * /32 = 256 * /40
2001:0db8::/32 : ALLOCA\TION OF FOOBAR Networks

International Backbone providing IP connectivity
2001:0db8:0000::/40
2001:0db8:0000::/44
FOOBAR INFRA
16 * /48
2001:0db8:0010::/44
Future use

2001:0db8:00f0::/44
Future use
2001:0db8:0100::/40
Customer Blocks
2001:0db8:0200::/40
Future Use
2001:0db8:ff00::/40
Future Use
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks

International Backbone providing IP connectivity
Foobar Infra + Future Use

..........................................
2001:0db8:0000::/40
2001:0db8:0000::/44
FOOBAR INFRA
2001:0db8:0000::/48
Backbone addresses
2001:0db8:0010::/44
Future use

2001:0db8:00f0::/44
Future use
2001:0db8:0100::/40
Customer Blocks
2001:0db8:0200::/40
Future Use
2001:0db8:ff00::/40
Future Use
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks

International Backbone providing IP connectivity
Foobar Infra + Future Use

..........................................
2001:0db8:0000::/40
2001:0db8:0000::/44
FOOBAR INFRA
2001:0db8:0000::/48
Backbone addresses
2001:0db8:0000:0000::/56
2001:0db8:0000:0100::/56
2001:0db8:0010::/44
Future use

2001:0db8:00f0::/44
Future use
2001:0db8:0100::/40
Customer Blocks
2001:0db8:0200::/40
Future Use
2001:0db8:ff00::/40
Future Use
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks

International Backbone providing IP connectivity
Foobar Infra + Future Use
Routers loopbacks + intercos
Customers Interco

..........................................
2001:0db8:0000::/40
2001:0db8:0000::/44
FOOBAR INFRA
2001:0db8:0000::/48
Backbone addresses
2001:0db8:0000:0000::/56
2001:0db8:0000:0000::/64
2001:0db8:0000:0001::/64
2001:0db8:0000:0002::/64
2001:0db8:0000:0005::/64
2001:0db8:0000:0006::/64
2001:0db8:0000:0100::/56
2001:0db8:0000:0100::/64
unused
2001:0db8:0000:0101::/64
unused
2001:0db8:0000:0102::/64
unused
etc
2001:0db8:0010::/44
Future use

2001:0db8:00f0::/44
Future use
2001:0db8:0100::/40
Customer Blocks
2001:0db8:0200::/40
Future Use
2001:0db8:ff00::/40
Future Use
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks

International Backbone providing IP connectivity
Foobar Infra + Future Use
Routers loopbacks + intercos
Routers loopbacks
PNI intercos
Internationals Links intercos
2001:0db8:0000:00
03
::/64
FR
routers intercos
2001:0db8:0000:00
04
::/64
UK
routers intercos
DE routers intercos
NL routers intercos
Customers Intercos
2001:0db8:0000:01
03
::/64
FR
customers intercos
2001:0db8:0000:01
04
::/64
UK
customers intercos

..........................................
2001:0db8:0000::/40
2001:0db8:0000::/44
FOOBAR INFRA
2001:0db8:0000::/48
Backbone addresses
2001:0db8:0000:0000::/56
2001:0db8:0000:0000::/64
2001:0db8:0000:0001::/64
2001:0db8:0000:0002::/64
2001:0db8:0000:0005::/64
2001:0db8:0000:0006::/64
2001:0db8:0000:0100::/56
2001:0db8:0000:0100::/64
unused
2001:0db8:0000:0101::/64
unused
2001:0db8:0000:0102::/64
unused
etc
2001:0db8:0010::/44
Future use

2001:0db8:00f0::/44
Future use
2001:0db8:0100::/40
Customer Blocks
2001:0db8:0200::/40
Future Use
2001:0db8:ff00::/40
Future Use
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks

International Backbone providing IP connectivity
Foobar Infra + Future Use
Routers loopbacks + intercos
Routers loopbacks
PNI intercos
Internationals Links intercos
2001:0db8:0000:00
03
::/64
FR
routers intercos
2001:0db8:0000:00
04
::/64
UK
routers intercos
DE routers intercos
NL routers intercos
Customers Intercos
2001:0db8:0000:01
03
::/64
FR
customers intercos
2001:0db8:0000:01
04
::/64
UK
customers intercos

..........................................
2001:0db8:0000::/40
2001:0db8:0000::/44
FOOBAR INFRA
2001:0db8:0000::/48
backbone addresses
2001:0db8:0001:0000::/56
2001:0db8:0001:0000::/64
2001:0db8:0001:0000::1/128
cr1.paris
2001:0db8:0001:0000::2/128
cr2.paris
2001:0db8:0001:0000::3/128
cr1.london
2001:0db8:0001:0000:192:168:0:1/128
cr1.paris
2001:0db8:0001:0001::/64
2001:0db8:0001:0001::0000/126
PNI Wan One AS1111
2001:0db8:0001:0001::0004/126
PNI Too Two AS2222
2001:0db8:0001:0002::/64
2001:0db8:0001:0002::0000/126
cr1.paris – cr1.london
2001:0db8:0001:0002::0004/126
cr2.london – cr1.amsterdam
2001:0db8:0001:0002::0008/126
cr2.amsterdam – cr1.frankfurt
2001:0db8:0001:0003::/64
2001:0db8:0001:0003::0000/126
cr1.paris – cr2.paris
2001:0db8:0001:0003::0004/126
cr1.paris – er1.paris
2001:0db8:0001:0004::/64
2001:0db8:0001:0004::0000/126
cr1.london – cr2.london
2001:0db8:0001:0004::0004/126
cr1.london – er1.london
2001:0db8:0001:0005::/64
2001:0db8:0001:0005::0000/126
cr1.frankfurt – cr2.frankfurt
2001:0db8:0001:0005::0004/126
cr1.frankfurt – er1.frankfurt
2001:0db8:0001:0006::/64
2001:0db8:0001:0006::0000/126
cr1.amsterdam – cr2.amsterdam
2001:0db8:0001:0006::0004/126
cr1.amsterdam – er1.amsterdam
2001:0db8:0001:0100::/56
2001:0db8:0001:0103::/64
2001:0db8:0001:0103::0000/126
2001:0db8:0001:0104::/64
2001:0db8:0001:0104::0000/126
2001:0db8:0001:0104::0004/126
2001:0db8:0001:0104::0008/126
2001:0db8:0001:0104::000c/126
2001:0db8:0001:0104::0010/124
2001:0db8:0001:0104::0020/126
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks

International Backbone providing IP connectivity
Foobar Infra + Future Use
routers loopbacks + intercos
Routers loopbacks
or we perform a match with the IPv4 loopbacks
(loopback IPv4 : 192.168.0.1)
Intercos : PNI
International Intercos
FR routers Interco
UK routers Interco
DE routers Interco
NL routers Interco
Customers Interco
FR customers Interco
French customer interco #1
UK customers Interco
English customer interco #1
English customer interco #2
English customer interco #3
English customer interco #4
English customer interco #5 (2 HA Firewalls on customer side)
English customer interco #6
2001:0db8:0000::/40
2001:0db8:0100::/40
Customer Blocks
2001:0db8:0200::/40
Future use
2001:0db8:ff00::/40
Future use
1 * /32 = 256 * /40
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks

International Backbone providing IP connectivity
Foobar Infra + Future Use

..........................................
2001:0db8:0000::/40
2001:0db8:0100::/40
Customer Blocks
2001:0db8:0100::/44
/56 Customers
4096 * /56 in a /44
2001:0db8:0110::/44
16 * /48 in a /44
2001:0db8:0120::/44
2001:0db8:0200::/40
Future use
…..........................................
2001:0db8:ff00::/40
Future use
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks

International Backbone providing IP connectivity
Foobar Infra + Future Use
/48 Customers - 1
st
Block
/48 Customers - 2
nd
Block
2001:0db8:0000::/40
Foobar Infra + Future Use
2001:0db8:0100::/40
Customer Blocks
2001:0db8:0100::/44
/56 Customers
4096 * /56 in a /44
2001:0db8:0100::/48
unused
2001:0db8:0101::/48
unused
2001:0db8:0102::/48
unused
2001:0db8:0103::/48
FR Customers
2001:0db8:0104::/48
UK Customers
2001:0db8:0110::/44
16 * /48 in a /44
2001:0db8:0110::/48
Customer #01 in whatever country
2001:0db8:0111::/48
Customer #02 in whatever country
2001:0db8:0112::/48
Customer #03 in whatever country

2001:0db8:011f::/48
Customer #16 in whatever country
2001:0db8:0120::/44
2001:0db8:0200::/40
Future use
…..........................................
2001:0db8:ff00::/40
Future use
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks

International Backbone providing IP connectivity
/48 Customers - 1
st
Block
/48 Customers - 2
nd
Block
2001:0db8:0000::/40
Foobar Infra + Future Use
2001:0db8:0100::/40
Customer Blocks
2001:0db8:0100::/44
/56 Customers
4096 * /56 in a /44
2001:0db8:0100::/48
unused
2001:0db8:0101::/48
unused
2001:0db8:0102::/48
unused
2001:0db8:0103::/48
FR Customers
2001:0db8:0103:0000::/56
2001:0db8:0103:0100::/56
2001:0db8:0104::/48
UK Customers
2001:0db8:0104:0000::/56
2001:0db8:0104:0100::/56
2001:0db8:0110::/44
16 * /48 in a /44
2001:0db8:0110::/48
Customer #01 in whatever country
2001:0db8:0111::/48
Customer #02 in whatever country
2001:0db8:0112::/48
Customer #03 in whatever country

2001:0db8:011f::/48
Customer #16 in whatever country
2001:0db8:0120::/44
2001:0db8:0200::/40
Future use
2001:0db8:ff00::/40
Future use
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks

International Backbone providing IP connectivity
/56 cust #1 in France
/56 cust #2 in France
/56 cust #1 in UK
/56 cust #2 in UK
/48 Customers - 1
st
Block
/48 Customers - 2
nd
Block

..........................................


Example 2 :
FooBar Networks

Hosting Company

LIR

Allocation : 2001:0db8::/32

Provides various services

Static IP Transit connectivity

BGP Transit connectivity

Hosting on 2 datacenters
Pierre-Yves Maunier – 11/03/2010 – FR
n
OG 17 Meeting
pymaunier@neotelecoms.com
2001:0db8:0000::/40
2001:0db8:0100::/40
Customer Blocks
2001:0db8:0200::/40
Futures Use
2001:0db8:ff00::/40
Futures Use
1 * /32 = 256 * /40
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks :
Hosti\ng + Tra\nsit services
Foobar Infra + Future Use

..........................................
2001:0db8:0000::/40
2001:0db8:0000::/44
2001:0db8:0010::/44
Future use
2001:0db8:00f0::/44
Future use
2001:0db8:0100::/40
Customer Blocks
2001:0db8:0200::/40
Futures Use
2001:0db8:ff00::/40
Futures Use
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks :
Hosting + Transit services
Foobar Infra + Future Use
Foobar Infra

...................................

..........................................
2001:0db8:0000::/40
2001:0db8:0000::/44
2001:0db8:0000::/48
Backbone addresses
2001:0db8:0001::/48
2001:0db8:0002::/48
2001:0db8:0010::/44
Future use
2001:0db8:00f0::/44
Future use
2001:0db8:0100::/40
Customer Blocks
2001:0db8:0200::/40
Futures Use
2001:0db8:ff00::/40
Futures Use
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks :
Hosting + Transit services
Foobar Infra + Future Use
Foobar Infra
Hosting Telecity
Hosting Telehouse 2

...................................

..........................................
2001:0db8:0000::/40
2001:0db8:0000::/44
2001:0db8:0000::/48
Backbone addresses
2001:0db8:0000:0000::/56
2001:0db8:0000:0100::/56
2001:0db8:0001::/48
2001:0db8:0002::/48
2001:0db8:0010::/44
Future use
2001:0db8:00f0::/44
Future use
2001:0db8:0100::/40
Customer Blocks
2001:0db8:0200::/40
Futures Use
2001:0db8:ff00::/40
Futures Use
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks :
Hosting + Transit services
Foobar Infra + Future Use
Foobar Infra
Routers loopbacks + intercos
Foobar Infra
Hosting Telecity
Hosting Telehouse 2

...................................

..........................................
2001:0db8:0000::/40
2001:0db8:0000::/44
2001:0db8:0000::/48
Backbone addresses
2001:0db8:0000:0000::/56
2001:0db8:0000:0000::/64
2001:0db8:0000:0001::/64
2001:0db8:0000:0002::/64
2001:0db8:0000:0003::/64
2001:0db8:0000:0004::/64
2001:0db8:0000:0100::/56
2001:0db8:0000:0100::/64
Primary DNS
2001:0db8:0000:0101::/64
Secondary DNS
2001:0db8:0000:0102::/64
Monitoring
2001:0db8:0001::/48
If we use DECIMAL translation
If we use DECIMAL translation
118 HEX = 280 DEC
2001:0db8:0002::/48
2001:0db8:0010::/44
Future use
2001:0db8:00f0::/44
Future use
2001:0db8:0100::/40
Customer Blocks
2001:0db8:ff00::/40
Futures Use
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks :
Hosting + Transit services
Foobar Infra + Future Use
Foobar Infra
Routers loopbacks + intercos
Routers loopbacks
Intercos : PNI
Intercos : Routers
Intercos : BGP Customers
Intercos : Statics Customers
Foobar Infra
Hosting Telecity
2001:0db8:0001:0
100
::/64
Customers VLAN
100
2001:0db8:0001:0
115
::/64
Customers VLAN
115
2001:0db8:0001:0
118
::/64
Customers VLAN
280
Hosting Telehouse 2
2001:0db8:0002:0
0
25
::/64
Customers VLAN
25
2001:0db8:0002:0
0
27
::/64
Customers VLAN
27

...................................

..........................................
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks : Hosting + Transit services
2001:0db8:0000::/40
2001:0db8:0000::/44
2001:0db8:0000::/48
Backbone addresses
2001:0db8:0000:0000::/56
2001:0db8:0000:0000::/64
2001:0db8:0000:0000::1/128
2001:0db8:0000:0000::2/128
2001:0db8:0000:0000::3/128
2001:0db8:0000:0000::4/128
2001:0db8:0000:0000:192:168:0:1/128
2001:0db8:0000:0001::/64
2001:0db8:0000:0001::0000/126
PNI Peer #1 AS1111
2001:0db8:0000:0001::0004/126
PNI Peer #2 AS2222
2001:0db8:0000:0002::/64
2001:0db8:0000:0002::0000/126
core1.telecity – core2.telecity
2001:0db8:0000:0002::0004/126
core2.telecity – core1.th2
2001:0db8:0000:0002::0008/126
core2.telecity – core2.th2
2001:0db8:0000:0002::000c/126
core2.th2 – core1.th2
2001:0db8:0000:0003::/64
2001:0db8:0000:0003::0000/126
2001:0db8:0000:0003::0004/126
2001:0db8:0000:0004::/64
2001:0db8:0000:0100::/56
2001:0db8:0000:0100::/64
Primary DNS
2001:0db8:0000:0101::/64
Secondary DNS
2001:0db8:0000:0102::/64
Monitoring
2001:0db8:0000:0102::0001
2001:0db8:0000:0102::0002
nachos
2001:0db8:0000:0102::0003
cactus
2001:0db8:0001::/48
If we use DECIMAL translation
If we use DECIMAL translation
118 HEX = 280 DEC
2001:0db8:0002::/48
Foobar Infra + Future Use
Foobar Infra
Routers loopbacks + intercos
Routers loopbacks
core1 Telecity
core2 Telecity
core1 Telehouse 2
core2 Telehouse 2
or we perform a match with the IPv4 loopbacks
core1 Telecity
(loopback IPv4 : 192.168.0.1)

.
Intercos : PNI
Intercos : Routers
Intercos : BGP Customers
cust #1 telecity
cust #2 telehouse 2
Intercos : Statics Customers
/126 equivalent to /30 IPv4 : 2 usable IPs
/124 equivalent to /28 IPv4 : 14 usable IPs
We will prefer /124 over /125 (equivalent to /29 IPv4) : easier to subnet
Foobar Infra
core1 Telecity Gateway
Hosting Telecity
2001:0db8:0001:0
100
::/64
Customers VLAN
100
2001:0db8:0001:0
115
::/64
Customers VLAN
115
2001:0db8:0001:0
118
::/64
Customers VLAN
280
Hosting Telehouse 2
2001:0db8:0002:0
0
25
::/64
Customers VLAN
25
2001:0db8:0002:0
0
27
::/64
Customers VLAN
27
2001:0db8:0000::/40
2001:0db8:0100::/40
Customer Blocks
2001:0db8:0200::/40
Futures Use
2001:0db8:ff00::/40
Futures Use
1 * /32 = 256 * /40
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks :
Hosting + Transit services
Foobar Infra + Future Use

..........................................
2001:0db8:0000::/40
2001:0db8:0100::/40
Customer Blocks
2001:0db8:0100::/44
/56 Customers
2048 * /56 in a /44
2001:0db8:0110::/44
16 * /48 in a /44
2001:0db8:0120::/44

2001:0db8:01f0::/44
2001:0db8:0200::/40
Future Use
2001:0db8:ff00::/40
Future Use
-
-
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks :
Hosting + Transit services
Foobar Infra + Future Use
/48 Customers - 1
st
Block
/48 Customers - 2
nd
Block
/48 Customers - 15
th
Block

..........................................
Best practices states that we allocate a /48 or a /56 to the customer. It depends on what we want

to do and what the customer want. This is just an example of what we can do.
For example if a static customer has a router, we have a interco block (/126) and we route
a /48 or /56 on his router. Then he will be able to subnet his block as he wants.
If the customer does not have any router, we can allocate him a /56 or /48 (depending on their
Future needs) but we directly configure the first /64 on our router to provide him the connectivity.
2001:0db8:0000::/40
2001:0db8:0100::/40
Customer Blocks
2001:0db8:0100::/44
/56 Customers
2048 * /56 in a /44
2001:0db8:0100::/48
2001:0db8:0100:0000::/56
Customer #1
2001:0db8:0100:0100::/56
Customer #2
2001:0db8:0101::/48
2001:0db8:0101:0000::/56
Customer #3
2001:0db8:0101:0100::/56
Customer #4
2001:0db8:0110::/44
16 * /48 in a /44
2001:0db8:0110::/48
Customer #100
2001:0db8:0111::/48
Customer #101
2001:0db8:0112::/48
Customer #102

2001:0db8:011f::/48
Customer #115
2001:0db8:0120::/44

2001:0db8:01f0::/44
2001:0db8:ff00::/40
Future Use
With this configuration, 1*/40 can host 2048 * /56 customers and 240 * /48 customers
We can also use this /40 to host 256 * /56 customers and 255 * /48 customers
2001:0db8::/32 : ALLOCATION OF FOOBAR Networks :
Hosting + Transit services
Foobar Infra + Future Use
IPv6 Cust @ Telecity
IPv6 Cust @ Telehouse 2
/48 Customers - 1
st
Block
/48 Customers - 2
nd
Block
/48 Customers - 15
th
Block

..........................................


Ripe Document :
Pierre-Yves Maunier – 11/03/2010 – FR
n
OG 17 Meeting
pymaunier@neotelecoms.com
http://www.ripe.net/training/material/IPv6-for-LIRs-Training-Course/IPv6-for-LIRs-Training-Slides.pdf


Questions ?
(vite avant la pause café)
Pierre-Yves Maunier – 11/03/2010 – FR
n
OG 17 Meeting
pymaunier@neotelecoms.com