Subnetting Ipv6: Cisco Confidential © 2012 Cisco And/Or Its Affiliates. All Rights Reserved. 1
Subnetting Ipv6: Cisco Confidential © 2012 Cisco And/Or Its Affiliates. All Rights Reserved. 1
Subnetting Ipv6: Cisco Confidential © 2012 Cisco And/Or Its Affiliates. All Rights Reserved. 1
Cisco Confidential
Unicast
Multicast
Assigned
FF00::/8
Global Unicast
2000::/3
3FFF::/3
Link-Local
FE80::/10
FEBF::/10
Anycast
Solicited Node
FF02::1:FF00:0000/104
Loopback
Unspecified
::1/128
::/128
Unique Local
FC00::/7
FDFF::/7
Embedded
IPv4
::/80
Cisco Public
m bits
128-n-m bits
Interface ID
Cisco Public
m bits
128-n-m bits
Interface ID
Cisco Public
m bits
001
128-n-m bits
Interface ID
Cisco Public
m bits
001
128-n-m bits
Interface ID
Cisco Public
Subnet portion
Host portion
32 bits
Cisco Public
/?
Subnet portion
Host portion
32 bits
Cisco Public
/?
Subnet portion
Host portion
32 bits
IPv6 Global Unicast Address
Interface ID
128 bits
Cisco Public
/?
Subnet portion
Host portion
32 bits
IPv6 Global Unicast Address
/64
Interface ID
128 bits
* 64-bit Interface ID gives us 18 quintillion (18,446,744,073,709,551,616) devices/subnet.
* Supports 48bit and 64-bit MAC addresses as the Interface ID (coming).
2013 Cisco and/or its affiliates. All rights reserved.
Cisco Public
10
/?
Subnet portion
Host portion
32 bits
IPv6 Global Unicast Address
/48
/64
Fixed 16-bit
Global Routing Prefix
Subnet ID
Interface ID
128 bits
* 64-bit Interface ID gives us 18 quintillion (18,446,744,073,709,551,616) devices/subnet.
* 16-bit Subnet ID gives us 65,536 subnets. (Yes, you can use the all 0s and all 1s.)
2013 Cisco and/or its affiliates. All rights reserved.
Cisco Public
11
2001:0DB8:AAAA:1111:0000:0000:0000:0100
Cisco Public
12
16 bits
16 bits
16 bits
16 bits
16 bits
16 bits
16 bits
16 bits
2001:0DB8:AAAA:1111:0000:0000:0000:0100
Cisco Public
13
16 bits
16 bits
16 bits
16 bits
16 bits
16 bits
16 bits
2001:0DB8:AAAA:1111:0000:0000:0000:0100
Cisco Public
14
16 bits
16 bits
/64
16 bits
16 bits
16 bits
16 bits
16 bits
2001:0DB8:AAAA:1111:0000:0000:0000:0100
Cisco Public
15
16 bits
16 bits
/64
16 bits
16 bits
16 bits
16 bits
16 bits
Interface ID
2001:0DB8:AAAA:1111:0000:0000:0000:0100
Cisco Public
16
16 bits
16 bits
/64
16 bits
16 bits
16 bits
16 bits
16 bits
Interface ID
3
2001:0DB8:AAAA:1111:0000:0000:0000:0100
Cisco Public
17
16 bits
16 bits
/64
16 bits
16 bits
16 bits
16 bits
16 bits
Interface ID
2001:0DB8:AAAA:1111:0000:0000:0000:0100
Cisco Public
18
16 bits
16 bits
/64
16 bits
16 bits
16 bits
16 bits
16 bits
Interface ID
2001:0DB8:AAAA:1111:0000:0000:0000:0100
Cisco Public
19
Subnet ID
Interface ID
Cisco Public
20
Subnet ID
Interface ID
/23
*RIR
Cisco Public
21
Subnet ID
Interface ID
/23 /32
*RIR
*ISP Prefix
Cisco Public
22
Subnet ID
Interface ID
/48
*RIR
*ISP Prefix
*Site Prefix
16-bit
Subnet ID
Cisco Public
23
Subnet ID
Interface ID
/48 /56
*RIR
*ISP Prefix
*Site Prefix
Possible Home Site Prefix
8-bit
Subnet ID
Cisco Public
24
Subnet ID
/48 /56
Interface ID
/64
*RIR
*ISP Prefix
*Site Prefix
Possible Home Site Prefix
Subnet Prefix
* This is a minimum allocation. The prefix-length may be less if it can be justified.
2013 Cisco and/or its affiliates. All rights reserved.
Cisco Public
25
Cisco Public
26
Subnetting IPv6
2340:1111:AAAA::/48
Cisco Public
27
Subnetting IPv6
2340:1111:AAAA::/48
2340:1111:AAAA:0002::/64
2340:1111:AAAA:000A::/64
Note: A valid abbreviation is to remove the 3 leading 0s from the first
shown quartet.
2340:1111:AAAA:1::/64
Cisco Public
28
Subnetting IPv6
Create 4 subnets of /64 from 2001:1111:3333::/48
1st Subnet
= 2001:1111:3333:0000
Cisco Public
29
/48
48 bits
64 bits
Subnet ID
Prefix
16bits
Interface ID
Subnet-ID
Interface ID
2001:0DB8:AAAA:0000:0000:0000:0000:0000
2001:0DB8:AAAA:0000:0000:0000:0001:0000
2001:0DB8:AAAA:0000:0000:0000:0002:0000
thru
2001:0DB8:AAAA:FFFF:FFFF:FFFF:FFFE:0000
2001:0DB8:AAAA:FFFF:FFFF:FFFF:FFFF:0000
2013 Cisco and/or its affiliates. All rights reserved.
Cisco Public
30
/48
48 bits
20 bits
60 bits
Subnet ID
Interface ID
Subnet Prefix
/68
Cisco Public
31
Cisco Public
32
Cisco Public
33
Cisco Public
34
Cisco Public
35
Cisco Public
36
/48
48 bits
58 bits
22 bits
Subnet ID
Interface ID
Subnet Prefix
/70
2001:0DB8:AAAA:0000:0000::/70 0000
2001:0DB8:AAAA:0000:0400::/70 0100
2001:0DB8:AAAA:0000:0800::/70 1000
2001:0DB8:AAAA:0000:0C00::/70 1100
bits
2013 Cisco and/or its affiliates. All rights reserved.
Cisco Public
37
65 66 67 68
1st Subnet will have 65th Bit 0 or 0000 which is equal to 0 in Hex
2nd Subnet will have 65th Bit 1 or 1000 in binary = 8 in Hex
1st Subnet is 2001:DB8:AAAA:0000:0000/65
2nd Subnet is 2001:DB8:AAAA:0000:8000/65
Cisco Public
38
in Hex
Cisco Public
39
0 0
Cisco Public
40
65 66 67 68 69 70
0 0
71 72 73 74 75 76
77
78
79 80
Cisco Public
41
Other Subnets
6 5 66 67 68
69 70
71 72
73 74 75 76
0 0
0 0
0 0
0 1
0 1
1 1
77
Cisco Public
42
69 70
0 0
0
0
0
0
0
0
0 0
0 1
1 000
00 00
0
0 1
1
0000
1
0
77
0
0
0 0
0
0
0
73 74 75 76
0
0
71 72
1000
8
2001:DB8 :AAAA:0018/77
Cisco Public
43
2001:DB8:AAAA:0000:0000:0000:FFFF:FFFF
( All 0s and All Fs in the host part are valid and can be assigned to hosts)
What is range of 2001:DB8:AAAA:FFFF:AAAA:1111:FFFF/112 subnet?
The Subnet is 2001:DB8:AAAA:FFFF:AAAA:1111:FFFF
The range is 2001:DB8:AAAA:FFFF:AAAA:1111:FFFF:0000
To
2001:DB8:AAAA:FFFF:AAAA:1111:FFFF:FFFF
Cisco Public
44
Cisco Public
45
Implementing IPv6
Cisco Confidential
46
Lets Configure
Cisco Public
47
Cisco Public
48
Cisco Public
49
No space
R1(config)#
Cisco Public
50
No space
R1(config)#
Cisco Public
51
No space
R1(config)#
Cisco Public
52
interfaceFastEthernet0/0
noipaddress
duplexauto
speedauto
ipv6address2001:DB8:CAFE:1::1/64
!
Cisco Public
53
Cisco Public
54
Cisco Public
55
Cisco Public
56
Cisco Public
57
Globalunicastaddress(es):
2001:DB8:CAFE:1::1,subnetis
2001:DB8:CAFE:1::/64
Joinedgroupaddress(es):
FF02::1
FF02::2
FF02::1:FF00:1
FF02::1:FFC2:828D
MTUis1500bytes
<outputomittedforbrevity>
R1#
2013 Cisco and/or its affiliates. All rights reserved.
Cisco Public
58
Cisco Public
59
Cisco Public
60
PC1> ip con f i
g
W indow s IP Confi
guration
Ethernet adapter LocalArea Connection:
Connection-specifi
c D N S Suf f
x .:
i
IPv6 Address...........: 2001:db8:cafe:1::100
Link-localIPv6 Address .....: fe80::50a5:8a35:a5bb:66e1% 11
D efault G atew ay .........: 2001:db8:cafe:1::1
Cisco Public
61
Global Unicast
Manual
IPv6 Address
Static
Dynamic
IPv6
Unnumbered
Stateless
Autoconfiguration
DHCPv6
EUI-64
Cisco Public
62
Cisco Public
63
R1(config)#interfacefastethernet0/0
Global Unicast:
Prefix: 2001:0DB8:CAFE:1::/64
Interface ID: EUI-64
R1
Fa0/0
2001:0DB8:CAFE:1::/64
2013 Cisco and/or its affiliates. All rights reserved.
Cisco Public
64
R1(config)#interfacefastethernet0/0
Global Unicast:
Prefix: 2001:0DB8:CAFE:1::/64
Interface ID: EUI-64
R1
Fa0/0
2001:0DB8:CAFE:1::/64
2013 Cisco and/or its affiliates. All rights reserved.
Cisco Public
65
R1(config)#interfacefastethernet0/0
R1(configif)#ipv6address2001:0db8:cafe:0001::/64?
Global Unicast:
Prefix: 2001:0DB8:CAFE:1::/64
Interface ID: EUI-64
R1
Fa0/0
2001:0DB8:CAFE:1::/64
2013 Cisco and/or its affiliates. All rights reserved.
Cisco Public
66
R1(config)#interfacefastethernet0/0
R1(configif)#ipv6address2001:0db8:cafe:0001::/64?
eui64Useeui64interfaceidentifier
<cr><<<All0saddressisokay!
Global Unicast:
Prefix: 2001:0DB8:CAFE:1::/64
Interface ID: EUI-64
R1
Fa0/0
2001:0DB8:CAFE:1::/64
2013 Cisco and/or its affiliates. All rights reserved.
Cisco Public
67
R1(config)#interfacefastethernet0/0
R1(configif)#ipv6address2001:0db8:cafe:0001::/64?
eui64Useeui64interfaceidentifier
<cr><<<All0saddressisokay!
R1(configif)#ipv6address2001:0db8:cafe:0001::/64
eui64
R1(configif)#
Global Unicast:
Prefix: 2001:0DB8:CAFE:1::/64
Interface ID: EUI-64
R1
Fa0/0
2001:0DB8:CAFE:1::/64
2013 Cisco and/or its affiliates. All rights reserved.
Cisco Public
68
Cisco Public
69
Device Identifier
24 bits
OUI
24 bits
Hexadecimal
Binary
00
03
6B
E9
D4
80
0000 0000
0000 0011
0110 1011
1110
1001
1101 0100
1000 0000
Cisco Public
70
OUI
24 bits
00
03
Device Identifier
24 bits
6B
E9
D4
80
1110
1001
1101 0100
0000 0011
0110 1011
1000 0000
Cisco Public
71
OUI
24 bits
00
03
Device Identifier
24 bits
6B
E9
D4
80
1110
1001
1101 0100
1000 0000
1110
1001
1101 0100
1000 0000
0000 0011
0110 1011
0110 1011
1111 1111
F E
1111 1110
Cisco Public
72
OUI
24 bits
00
03
Device Identifier
24 bits
6B
E9
D4
80
1110
1001
1101 0100
1000 0000
1110
1001
1101 0100
1000 0000
0000 0011
0110 1011
F E
0110 1011
1111 1111
1111 1110
0110 1011
1111 1111
1111 1110
0000 0011
1110
1001
1101 0100
1000 0000
Cisco Public
73
OUI
24 bits
00
03
Device Identifier
24 bits
6B
E9
D4
80
1110
1001
1101 0100
1000 0000
1110
1001
1101 0100
1000 0000
0000 0011
0110 1011
F E
0110 1011
1111 1111
1111 1110
0110 1011
1111 1111
1111 1110
1110
1001
1101 0100
1000 0000
FF
FE
E9
D4
80
0000 0011
02
03
6B
Cisco Public
74
R1(config)#interfacefastethernet0/0
R1(configif)#ipv6address2001:0db8:cafe:0001::/64eui64
Cisco Public
75
0
0000
0011
0011
0011
3
0
3
. 6
b
e
9
. D
4
8
0
0000 0011 . 0110 1011 1110 1001 . 0111 0100 1000 0000
. 0110 1011
1110 1001 . 0111 0100 1000 0000
. 0110 1011 11111111 11111110 1110 1001 . 0111 0100 1000 0000
. 0110 1011 11111111 11111110 1110 1001 . 0111 0100 1000 0000
. 6
b
F
F
F E
e
9
. D
4
8
0
R1(config)#interfacefastethernet0/0
R1(configif)#ipv6address2001:0db8:cafe:0001::/64eui64
Cisco Public
76
0
0000
0011
0011
0011
3
0
3
. 6
b
e
9
. D
4
8
0
0000 0011 . 0110 1011 1110 1001 . 0111 0100 1000 0000
. 0110 1011
1110 1001 . 0111 0100 1000 0000
. 0110 1011 11111111 11111110 1110 1001 . 0111 0100 1000 0000
. 0110 1011 11111111 11111110 1110 1001 . 0111 0100 1000 0000
. 6
b
F
F
F E
e
9
. D
4
8
0
2001:0DB8:CAFE:0001:0203:6BFF:FEE9:D480
R1(config)#interfacefastethernet0/0
R1(configif)#ipv6address2001:0db8:cafe:0001::/64eui64
Cisco Public
77
0
0000
0011
0011
0011
3
0
3
. 6
b
e
9
. D
4
8
0
0000 0011 . 0110 1011 1110 1001 . 0111 0100 1000 0000
. 0110 1011
1110 1001 . 0111 0100 1000 0000
. 0110 1011 11111111 11111110 1110 1001 . 0111 0100 1000 0000
. 0110 1011 11111111 11111110 1110 1001 . 0111 0100 1000 0000
. 6
b
F
F
F E
e
9
. D
4
8
0
2001:0DB8:CAFE:0001:0203:6BFF:FEE9:D480
Interface ID
(EUI-64 format)
R1(config)#interfacefastethernet0/0
R1(configif)#ipv6address2001:0db8:cafe:0001::/64eui64
Cisco Public
78
0
0000
0011
0011
0011
3
0
3
. 6
b
e
9
. D
4
8
0
0000 0011 . 0110 1011 1110 1001 . 0111 0100 1000 0000
. 0110 1011
1110 1001 . 0111 0100 1000 0000
. 0110 1011 11111111 11111110 1110 1001 . 0111 0100 1000 0000
. 0110 1011 11111111 11111110 1110 1001 . 0111 0100 1000 0000
. 6
b
F
F
F E
e
9
. D
4
8
0
2001:0DB8:CAFE:0001:0203:6BFF:FEE9:D480
Subnet Prefix
(Manually configured)
Interface ID
(EUI-64 format)
R1(config)#interfacefastethernet0/0
R1(configif)#ipv6address2001:0db8:cafe:0001::/64eui64
Cisco Public
79
R1(config)#interfacefastethernet0/0
R1(configif)#ipv6address2001:0db8:cafe:0001::/64eui64
R1#showipv6interfacefastethernet0/0
FastEthernet0/0isup,lineprotocolisup
IPv6isenabled,linklocaladdressisFE80::203:6BFF:FEE9:D480
Globalunicastaddress(es):
2001:DB8:CAFE:1:203:6BFF:FEE9:D480,
subnetis2001:DB8:CAFE:1::/64
Address using EUI-64 format
<outputomittedforbrevity>
Cisco Public
80
Cisco Public
81
Thank you.