5. IPv6 Address Format
• 128 bits or 16 bytes long
• 2^8 or 3.4E+38 possible addresses
• 5*E+28 address per person on earth
• 128 binary bit is reduced down to 32 hex bit
• 16 bit number is converted to a 4 digit hexadecimal
number in each field
• Also called “Nibble” boundaries
• “Coloned Hex” format: X:X:X:X:X:X:X:X (X = 16 bit
hexadecimal field)
• Separated by colon (:)
• Case-insensitive for hexadecimal digits A-F
TEIN Application Workshop 2017, University of Dhakaawal@bdren.net.bd 5
8. IPv6 Addressing Model
• IPv6 Address type
• Unicast
• An identifier for a single interface
• Anycast
• An identifier for a set of interfaces
• Multicast
• An identifier for a group of nodes
TEIN Application Workshop 2017, University of Dhakaawal@bdren.net.bd 8
RFC
4291
9. Different IPv6 Addresses
TEIN Application Workshop 2017, University of Dhakaawal@bdren.net.bd 9
IPv6 Address Description
::/0
• All routes and used when specifying a default static route.
• It is equivalent to the IPv4 quad-zero (0.0.0.0).
::/128
• Unspecified address and is initially assigned to a host
when it first resolves its local link address.
::1/128
• Loopback address of local host.
• Equivalent to 127.0.0.1 in IPv4.
FE80::/10
• Link-local unicast address.
• Similar to the Windows autoconfiguration IP address of
169.254.x.x.
FF00::/8 • Multicast addresses.
All other addresses • Global unicast address.
12. IPv6 Global Unicast Address
• IPV6 Global Unicast Address
• 0010 2000::/3
• 0011 3000::/3
• All five RIRs are given a /12 from the /3 to further
distribute within the RIR region
• APNIC 2400:0000::/12
• ARIN 2600:0000::/12
• AfriNIC 2C00:0000::/12
• LACNIC 2800:0000::/12
• RIPE 2A00:0000::/12
TEIN Application Workshop 2017, University of Dhakaawal@bdren.net.bd 12
14. Reserved IPv6 Multicast Address
TEIN Application Workshop 2017, University of Dhakaawal@bdren.net.bd 14
Multicast Address Description
FF02::1 • All nodes on a link (link-local scope).
FF02::2 • All routers on a link.
FF02::9 • All routing information protocol (RIP) routers on a link.
FF02::1:FFxx:xxxx
• All solicited-node multicast addresses used for host
autoconfiguration and neighbor discovery (similar to ARP
in IPv4).
• The xx:xxxx is the far right 24 bits of the corresponding
unicast or anycast address of the node.
FF05::101 • All Network Time Protocol (NTP) servers.
18. IPv6 Autoconfiguration
TEIN Application Workshop 2017, University of Dhakaawal@bdren.net.bd 18
Tentative address (link-local address)
Well-known link local prefix +Interface ID (EUI-64)
Ex: FE80::310:BAFF:FE64:1D
Is this
address
unique?
1. A new host is turned on.
2. Tentative address will be assigned to the new host.
3. Duplicate Address Detection (DAD) is performed. First the host transmit
a Neighbor Solicitation (NS) message to the solicited node multicast address
(FF02::1:FF64:001D) corresponding to its to be used address
5. If no Neighbor Advertisement (NA) message comes back then the address is unique.
6. FE80::310:BAFF:FE64:1D will be assigned to the new host.
Assign
FE80::310:BAFF:FE64:1D
2001:1234:1:1/64 network
29. Not a single right way…
• If /32 is allocated, may be planned as:
• Infrastructure (/36)
• 1st /48
• Loopback: /64 (use as /128)
• Management: /64
• NOC: /56 (use as /64)
• Next /48
• Backbone P2P Peering: plan as /64 per subnet, use /127
• Next /48
• PE-CE Peering: plan as /64 per subnet, use /127
• Next /48
• Servers/Critical Infra
• Rest
• Client assignment: Minimum /48
TEIN Application Workshop 2017, University of Dhakaawal@bdren.net.bd 29
32. Link-Local Address
• Start Wireshark on R1-VPCS1 link
• Turn on VPCS-1
• Check IPv6 Address on VPCS-1: show ipv6
TEIN Application Workshop 2017, University of Dhakaawal@bdren.net.bd 32
Link-Local Address
autoconfigured using EUI-64
MAC Address to be used
to generate EUI-64
No Global Unicast
Address generated yet
42. Verification: R1
R1#show ipv6 interface gi1/0
GigabitEthernet1/0 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::C801:33FF:FEB3:1C
No Virtual link-local address(es):
Global unicast address(es):
2001:DB8:0:12::, subnet is 2001:DB8:0:12::/127
Joined group address(es):
FF02::1
FF02::2
FF02::1:FF00:0
FF02::1:FFB3:1C
MTU is 1500 bytes
ICMP error messages limited to one every 100 milliseconds
ICMP redirects are enabled
ICMP unreachables are sent
ND DAD is enabled, number of DAD attempts: 1
ND reachable time is 30000 milliseconds (using 30000)
ND advertised reachable time is 0 (unspecified)
ND advertised retransmit interval is 0 (unspecified)
ND router advertisements are sent every 200 seconds
ND router advertisements live for 1800 seconds
ND advertised default router preference is Medium
Hosts use stateless autoconfig for addresses.
TEIN Application Workshop 2017, University of Dhakaawal@bdren.net.bd 42
Multicast Groups this
link participates with
43. Verification: R1
R1#sh ipv6 route
IPv6 Routing Table - default - 7 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, R - RIP, H - NHRP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, l - LISP
C 2001:DB8:0:1::/64 [0/0]
via GigabitEthernet3/0, directly connected
L 2001:DB8:0:1::1/128 [0/0]
via GigabitEthernet3/0, receive
C 2001:DB8:0:12::/127 [0/0]
via GigabitEthernet1/0, directly connected
L 2001:DB8:0:12::/128 [0/0]
via GigabitEthernet1/0, receive
C 2001:DB8:0:13::/127 [0/0]
via GigabitEthernet2/0, directly connected
L 2001:DB8:0:13::/128 [0/0]
via GigabitEthernet2/0, receive
L FF00::/8 [0/0]
via Null0, receive
TEIN Application Workshop 2017, University of Dhakaawal@bdren.net.bd 43
Only the local and connected
routes are available. No
routes from other routers
45. OSPF Configuration: R1
Configure Router-ID:
R1(config)#router ospfv3 1
R1(config-router)#router-id 1.1.1.1
R1(config-router)#exit
Enable OSPFv3 on the Interfaces:
R1(config)#interface gi1/0
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#exit
R1(config)#interface gi2/0
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#exit
R1(config)#interface gi3/0
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#exit
TEIN Application Workshop 2017, University of Dhakaawal@bdren.net.bd 45
46. OSPF Configuration: R2
Configure Router-ID:
R2(config)#router ospfv3 1
R2(config-router)#router-id 2.2.2.2
R2(config-router)#exit
Enable OSPFv3 on the Interfaces:
R2(config)#interface gi1/0
R2(config-if)#ipv6 ospf 1 area 0
R2(config-if)#exit
R2(config)#interface gi2/0
R2(config-if)#ipv6 ospf 1 area 0
R2(config-if)#exit
R2(config)#interface gi3/0
R2(config-if)#ipv6 ospf 1 area 0
R2(config-if)#exit
TEIN Application Workshop 2017, University of Dhakaawal@bdren.net.bd 46
47. OSPF Configuration: R3
Configure Router-ID:
R3(config)#router ospfv3 1
R3(config-router)#router-id 3.3.3.3
R3(config-router)#exit
Enable OSPFv3 on the Interfaces:
R3(config)#interface gi1/0
R3(config-if)#ipv6 ospf 1 area 0
R3(config-if)#exit
R3(config)#interface gi2/0
R3(config-if)#ipv6 ospf 1 area 0
R3(config-if)#exit
R3(config)#interface gi3/0
R3(config-if)#ipv6 ospf 1 area 0
R3(config-if)#exit
TEIN Application Workshop 2017, University of Dhakaawal@bdren.net.bd 47
48. Verification: R1
R1#show ipv6 route
IPv6 Routing Table - default - 10 entries
C 2001:DB8:0:1::/64 [0/0]
via GigabitEthernet3/0, directly connected
L 2001:DB8:0:1::1/128 [0/0]
via GigabitEthernet3/0, receive
O 2001:DB8:0:2::/64 [110/2]
via FE80::C802:33FF:FEB4:1C, GigabitEthernet1/0
O 2001:DB8:0:3::/64 [110/2]
via FE80::C803:33FF:FEB5:38, GigabitEthernet2/0
C 2001:DB8:0:12::/127 [0/0]
via GigabitEthernet1/0, directly connected
L 2001:DB8:0:12::/128 [0/0]
via GigabitEthernet1/0, receive
C 2001:DB8:0:13::/127 [0/0]
via GigabitEthernet2/0, directly connected
L 2001:DB8:0:13::/128 [0/0]
via GigabitEthernet2/0, receive
O 2001:DB8:0:23::/127 [110/2]
via FE80::C802:33FF:FEB4:1C, GigabitEthernet1/0
via FE80::C803:33FF:FEB5:38, GigabitEthernet2/0
L FF00::/8 [0/0]
via Null0, receive
TEIN Application Workshop 2017, University of Dhakaawal@bdren.net.bd 48
All the routes (both local and
remote) are available now
49. Verification: R1
IPv6 Routing Table - default - 10 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, R - RIP, H - NHRP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE -
Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, l
- LISP
O 2001:DB8:0:2::/64 [110/2]
via FE80::C802:33FF:FEB4:1C, GigabitEthernet1/0
O 2001:DB8:0:3::/64 [110/2]
via FE80::C803:33FF:FEB5:38, GigabitEthernet2/0
O 2001:DB8:0:23::/127 [110/2]
via FE80::C802:33FF:FEB4:1C, GigabitEthernet1/0
via FE80::C803:33FF:FEB5:38, GigabitEthernet2/0
TEIN Application Workshop 2017, University of Dhakaawal@bdren.net.bd 49
Remote routes are
carried by OSPFv3