SlideShare a Scribd company logo
1 of 30
Download to read offline
APNIC eLearning:
IPv6 Addressing and
Subnetting
Contact: training@apnic.net
eIP602_v1.0
Overview
•  IPv6 Address Text Representation
•  IPv6 Addressing Structure
•  IPv6 Address Management Hierarchy
•  Local Addresses
•  Global Addresses
•  Interface ID
•  IPv6 Autoconfiguration
•  Subnetting
IPv6 Addressing
•  An IPv6 address is 128 bits long
•  So the number of addresses are 2^128 =
340282366920938463463374607431768211455
•  In hex, 4 bits (also called a ‘nibble’) is represented by a hex
digit
•  So 128 bits is reduced down to 32 hex digits
2001:0DB8:D35D:B33F::/64
2001:DC0:A910::
1010 1001 0001 0000
nibbles
IPv6 Addressing
•  Hexadecimal values of eight 16 bit fields
–  X:X:X:X:X:X:X:X (X=16 bit number, ex: A2FE)
–  16 bit number is converted to a 4 digit hexadecimal number
•  Example:
–  FE38:DCE3:124C:C1A2:BA03:6735:EF1C:683D
–  Abbreviated form of address
4EED:0023:0000:0000:0000:036E:1250:2B00
→4EED:23:0:0:0:36E:1250:2B00
→4EED:23::36E:1250:2B00
(Null value can be used only once)
Groups of zeroes
Leading zeroes
Double colons
IPv6 Addressing
2001:0DB8:DEAD:BEEF:1AB6:503F:A804:71D9
0010 0000 0000 0001 0000 1101 1011 1000
1101 1110 1010 1101 1011 1110 1110 1111
0001 1010 1011 0110 1001 0000 0011 1111
1010 1000 0000 0100 0111 0001 1101 1001
IPv6 addressing structure
1 128
ISP
/32
32
128 bits
Customer
Site /48
16
End Site Subnet /64
16 64
Device 128 Bit Address
Interface ID
65
Network Prefix
64
IPv6 Address Management Hierarchy
IPv6 addressing model RFC
4291
•  Unicast
–  Packet is sent to a single interface
•  Anycast
–  Packet is sent to the nearest of
group interfaces (in terms of routing distance)
•  Multicast
–  Packet is sent to multiple interfaces
Addresses Without a Network Prefix
•  Loopback ::1/128
•  Unspecified Address ::/128
•  IPv4-mapped IPv6 address ::ffff/96 [a.b.c.d]
•  IPv4-compatible IPv6 address ::/96 [a.b.c.d]
IPv6 Address Range
•  Unspecified Address ::/128
•  Loopback ::1/128
•  Global Unicast (0010) 2000::/3
•  Link Local (1111 1110 10) FE80::/10
•  Multicast Address (1111 1111) FF00::/8
•  Unique Local Address FC00::/7
Local Addresses With Network Prefix
•  Link Local Address
–  A special address used to communicate within the local link of an
interface
–  i.e. anyone on the link as host or router
–  This address in packet destination that packet would never pass
through a router
–  fe80::/10
Local Addresses With Network Prefix
•  Unique Local IPv6 Unicast Address
–  Addresses similar to the RFC 1918 / private address like in IPv4 but
will ensure uniqueness
–  A part of the prefix (40 bits) are generated using a pseudo-random
algorithm and it's improbable that two generated ones are equal
–  fc00::/7
–  Example webtools to generate ULA prefix
•  http://www.sixxs.net/tools/grh/ula/
•  http://www.goebel-consult.de/ipv6/createLULA
Global Addresses With Network Prefix
•  IPV6 Global Unicast Address
–  Global Unicast Range: 0010 2000::/3
0011 3FFF:FFFF:…. :/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 NCC 2A00:0000::/12
•  6to4 Addresses
–  2002::/16
–  Designed for a special tunneling mechanism [RFC 3056] to connect IPv6
Domains via IPv4 Clouds
–  Need 6to4 relay routers in ISP network
Examples and Documentation Prefix
•  Two address ranges are reserved for examples and
documentation purpose by RFC 3849
–  For examples, use 3fff:ffff::/32
–  For documentation, use 2001:0DB8::/32
Interface ID
•  The lowest-order 64-bit field addresses
•  May be assigned in several different ways:
–  auto-configured from a 48-bit MAC address expanded into a 64-bit
EUI-64
–  assigned via DHCP
–  manually configured
–  auto-generated pseudo-random number
–  possibly other methods in the future
EUI-64
0 0 2 6 B 0 E 5 8 3 3 C
0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 0
0 0 2 6 B 0 E 5 8 3 3 C
F F F E
0 2 2 6 B 0 E 5 8 3 3 CF F
Mac Address
EUI-64 Address
Interface Identifier
U/L bit
F E
Zone IDs for Local-use Addresses
•  In Windows XP for example:
–  Host A: fe80::2abc:d0ff:fee9:4121%4
–  Host B: fe80::3123:e0ff:fe12:3001%3
•  Ping from Host A to Host B
–  ping fe80::3123:e0ff:fe12:3001%4 (not %3)
•  Identifies the interface zone ID on the host which is
connected to that segment.
IPv6 Autoconfiguration
RFC
2462
•  Stateless mechanism
–  For a site not concerned with the exact addresses
–  No manual configuration required
–  Minimal configuration of routers
–  No additional servers
•  Stateful mechanism
–  For a site that requires tighter control over exact address
assignments
–  Needs a DHCP server
–  DHCPv6
IPv6 Autoconfiguration
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:1D) 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
IPv6 Autoconfiguration
FE80::310:BAFF:FE64:1D
Send me
Router
Advertisement
1.  The new host will send Router Solicitation (RS) request to the all-routers multicast
group (FF02::2).
2.  The router will reply Routing Advertisement (RA).
3.  The new host will learn the network prefix. E.g, 2001:1234:1:1::/64
4.  The new host will assigned a new address Network prefix+Interface ID
E.g, 2001:1234:1:1:310:BAFF:FE64:1D
Router
Advertisement
Assign
2001:1234:1:1:310:BAFF:FE64:1D
2001:1234:1:1/64 network
Subnetting (Example)
•  Provider A has been allocated an IPv6 block
2001:DB8::/32
•  Provider A will delegate /48 blocks to its customers
•  Find the blocks provided to the first 4 customers
Subnetting (Example)
2001:0DB8::/32
2001:0DB8:0000:/48
Original block:
Rewrite as a /48 block:
This is your
network prefix!
How many /48 blocks are there in a /32?
/32
/48
=
2128−32
2128−48
=
296
280
= 216
Find only the first 4 /48 blocks…
Subnetting (Example)
2001:0DB8:0000::/48
In bits
0000 0000 0000 00002001:0DB8: ::/48
0000 0000 0000 00012001:0DB8: ::/48
0000 0000 0000 00102001:0DB8: ::/48
0000 0000 0000 00112001:0DB8: ::/48
Start by manipulating the LSB of your
network prefix – write in BITS
2001:0DB8:0000::/48
2001:0DB8:0001::/48
2001:0DB8:0002::/48
2001:0DB8:0003::/48
Then write back into hex digits
Appendix:
IPv6 Addressing Exercise
Exercise 1.1: IPv6 subnetting
1.  Identify the first four /36 address blocks out of
2406:6400::/32
1.  _____________________
2.  _____________________
3.  _____________________
4.  _____________________
Exercise 1.2: IPv6 subnetting
1.  Identify the first four /35 address blocks out of
2406:6400::/32
1.  _____________________
2.  _____________________
3.  _____________________
4.  _____________________
Questions
•  Please remember to fill out the
feedback form
–  <survey-link>
•  Slide handouts will be available
after you fill out the survey
IPv6@APNIC
APNIC Helpdesk Chat
Thank You!
End of Session

More Related Content

What's hot

Chapter 17 : static routing
Chapter 17 : static routingChapter 17 : static routing
Chapter 17 : static routingteknetir
 
Ccna ppt1
Ccna ppt1Ccna ppt1
Ccna ppt1AIRTEL
 
Cisco CCNA IP SLA with tracking configuration
Cisco CCNA IP SLA  with tracking  configurationCisco CCNA IP SLA  with tracking  configuration
Cisco CCNA IP SLA with tracking configurationHamed Moghaddam
 
Spanning Tree Protocol
Spanning Tree ProtocolSpanning Tree Protocol
Spanning Tree ProtocolManoj Gharate
 
CCNA Exploration 2 - Chapter 11
CCNA Exploration 2 - Chapter 11CCNA Exploration 2 - Chapter 11
CCNA Exploration 2 - Chapter 11Irsandi Hasan
 
CCNA v6.0 ITN - Chapter 07
CCNA v6.0 ITN - Chapter 07CCNA v6.0 ITN - Chapter 07
CCNA v6.0 ITN - Chapter 07Irsandi Hasan
 
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eChapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eadpeer
 
SR-IOV ixgbe Driver Limitations and Improvement
SR-IOV ixgbe Driver Limitations and ImprovementSR-IOV ixgbe Driver Limitations and Improvement
SR-IOV ixgbe Driver Limitations and ImprovementLF Events
 
Introduction to Segment Routing
Introduction to Segment RoutingIntroduction to Segment Routing
Introduction to Segment RoutingMyNOG
 
MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]
MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]
MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]APNIC
 
Cisco router basic
Cisco router basicCisco router basic
Cisco router basicTapan Khilar
 
Cisco ASA Firewall Lab WorkBook
Cisco ASA Firewall Lab WorkBookCisco ASA Firewall Lab WorkBook
Cisco ASA Firewall Lab WorkBookRHC Technologies
 
Unknown Unicast Traffic and Ping Pollers
Unknown Unicast Traffic and Ping PollersUnknown Unicast Traffic and Ping Pollers
Unknown Unicast Traffic and Ping PollersAPNIC
 

What's hot (20)

CCNA TCP/IP
CCNA TCP/IPCCNA TCP/IP
CCNA TCP/IP
 
Chapter 17 : static routing
Chapter 17 : static routingChapter 17 : static routing
Chapter 17 : static routing
 
Ccna ppt1
Ccna ppt1Ccna ppt1
Ccna ppt1
 
Ospf.ppt
Ospf.pptOspf.ppt
Ospf.ppt
 
Cisco CCNA IP SLA with tracking configuration
Cisco CCNA IP SLA  with tracking  configurationCisco CCNA IP SLA  with tracking  configuration
Cisco CCNA IP SLA with tracking configuration
 
CCNA IP Addressing
CCNA IP AddressingCCNA IP Addressing
CCNA IP Addressing
 
Spanning Tree Protocol
Spanning Tree ProtocolSpanning Tree Protocol
Spanning Tree Protocol
 
CCNA Exploration 2 - Chapter 11
CCNA Exploration 2 - Chapter 11CCNA Exploration 2 - Chapter 11
CCNA Exploration 2 - Chapter 11
 
CCNA v6.0 ITN - Chapter 07
CCNA v6.0 ITN - Chapter 07CCNA v6.0 ITN - Chapter 07
CCNA v6.0 ITN - Chapter 07
 
BGP protocol presentation
BGP protocol  presentationBGP protocol  presentation
BGP protocol presentation
 
Asa packet-flow-00
Asa packet-flow-00Asa packet-flow-00
Asa packet-flow-00
 
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eChapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
 
Ipv6
Ipv6Ipv6
Ipv6
 
SR-IOV ixgbe Driver Limitations and Improvement
SR-IOV ixgbe Driver Limitations and ImprovementSR-IOV ixgbe Driver Limitations and Improvement
SR-IOV ixgbe Driver Limitations and Improvement
 
Introduction to Segment Routing
Introduction to Segment RoutingIntroduction to Segment Routing
Introduction to Segment Routing
 
MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]
MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]
MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]
 
Cisco router basic
Cisco router basicCisco router basic
Cisco router basic
 
CCNA Lab Guide
CCNA Lab GuideCCNA Lab Guide
CCNA Lab Guide
 
Cisco ASA Firewall Lab WorkBook
Cisco ASA Firewall Lab WorkBookCisco ASA Firewall Lab WorkBook
Cisco ASA Firewall Lab WorkBook
 
Unknown Unicast Traffic and Ping Pollers
Unknown Unicast Traffic and Ping PollersUnknown Unicast Traffic and Ping Pollers
Unknown Unicast Traffic and Ping Pollers
 

Viewers also liked

Multicast for IPv6
Multicast for IPv6Multicast for IPv6
Multicast for IPv6Fred Bovy
 
IPv6 - Neighbour Discovery
IPv6 - Neighbour DiscoveryIPv6 - Neighbour Discovery
IPv6 - Neighbour DiscoveryHeba_a
 
IPv6 Autoconfig
IPv6 AutoconfigIPv6 Autoconfig
IPv6 AutoconfigFred Bovy
 
IPv6 Theory by Cisco
IPv6 Theory by CiscoIPv6 Theory by Cisco
IPv6 Theory by CiscoFebrian ‎
 
Dynamic weight transfer in vehicle
Dynamic weight transfer in vehicleDynamic weight transfer in vehicle
Dynamic weight transfer in vehicleRohan Sahdev
 

Viewers also liked (6)

Multicast for IPv6
Multicast for IPv6Multicast for IPv6
Multicast for IPv6
 
IPv6 - Neighbour Discovery
IPv6 - Neighbour DiscoveryIPv6 - Neighbour Discovery
IPv6 - Neighbour Discovery
 
IPv6 Autoconfig
IPv6 AutoconfigIPv6 Autoconfig
IPv6 Autoconfig
 
IPv6 Theory by Cisco
IPv6 Theory by CiscoIPv6 Theory by Cisco
IPv6 Theory by Cisco
 
IPv6 theoryfinalx
IPv6 theoryfinalxIPv6 theoryfinalx
IPv6 theoryfinalx
 
Dynamic weight transfer in vehicle
Dynamic weight transfer in vehicleDynamic weight transfer in vehicle
Dynamic weight transfer in vehicle
 

Similar to About IPv6

Similar to About IPv6 (20)

IPV6 TYPESghjgkhggggggdhfhgfjfjgjhggkgkg .pdf
IPV6 TYPESghjgkhggggggdhfhgfjfjgjhggkgkg .pdfIPV6 TYPESghjgkhggggggdhfhgfjfjgjhggkgkg .pdf
IPV6 TYPESghjgkhggggggdhfhgfjfjgjhggkgkg .pdf
 
Basic of IPv6
Basic of IPv6Basic of IPv6
Basic of IPv6
 
IPv6 Overview
IPv6 OverviewIPv6 Overview
IPv6 Overview
 
Lesson 3: IPv6 Fundamentals
Lesson 3: IPv6 FundamentalsLesson 3: IPv6 Fundamentals
Lesson 3: IPv6 Fundamentals
 
ipv6 introduction & environment buildup
ipv6 introduction & environment buildupipv6 introduction & environment buildup
ipv6 introduction & environment buildup
 
Apnic-Training-IPv6_workshop
Apnic-Training-IPv6_workshopApnic-Training-IPv6_workshop
Apnic-Training-IPv6_workshop
 
IPv6 networking training sduffy v3
IPv6 networking training   sduffy v3IPv6 networking training   sduffy v3
IPv6 networking training sduffy v3
 
I pv6 for cmu
I pv6 for cmuI pv6 for cmu
I pv6 for cmu
 
Ipv6 cheat sheet
Ipv6 cheat sheetIpv6 cheat sheet
Ipv6 cheat sheet
 
Cisco presentation2
Cisco presentation2Cisco presentation2
Cisco presentation2
 
Chap2. ipv4-arp-icmp
Chap2. ipv4-arp-icmpChap2. ipv4-arp-icmp
Chap2. ipv4-arp-icmp
 
IPv6
IPv6IPv6
IPv6
 
I Pv6 Addressing
I Pv6 AddressingI Pv6 Addressing
I Pv6 Addressing
 
I Pv6 Addressing
I Pv6 AddressingI Pv6 Addressing
I Pv6 Addressing
 
ipv6_cheat_sheet.pdf
ipv6_cheat_sheet.pdfipv6_cheat_sheet.pdf
ipv6_cheat_sheet.pdf
 
IPv6 Addressing Architecture
IPv6 Addressing ArchitectureIPv6 Addressing Architecture
IPv6 Addressing Architecture
 
IPv6
IPv6IPv6
IPv6
 
Ipv6 cheat sheet
Ipv6 cheat sheetIpv6 cheat sheet
Ipv6 cheat sheet
 
IPV6 IPv6 Routing Lab By Rob Hamm
IPV6 IPv6 Routing Lab  By Rob HammIPV6 IPv6 Routing Lab  By Rob Hamm
IPV6 IPv6 Routing Lab By Rob Hamm
 
IPV6 ADDRESSING
IPV6 ADDRESSING IPV6 ADDRESSING
IPV6 ADDRESSING
 

Recently uploaded

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 

Recently uploaded (20)

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 

About IPv6

  • 1. APNIC eLearning: IPv6 Addressing and Subnetting Contact: training@apnic.net eIP602_v1.0
  • 2. Overview •  IPv6 Address Text Representation •  IPv6 Addressing Structure •  IPv6 Address Management Hierarchy •  Local Addresses •  Global Addresses •  Interface ID •  IPv6 Autoconfiguration •  Subnetting
  • 3. IPv6 Addressing •  An IPv6 address is 128 bits long •  So the number of addresses are 2^128 = 340282366920938463463374607431768211455 •  In hex, 4 bits (also called a ‘nibble’) is represented by a hex digit •  So 128 bits is reduced down to 32 hex digits 2001:0DB8:D35D:B33F::/64 2001:DC0:A910:: 1010 1001 0001 0000 nibbles
  • 4. IPv6 Addressing •  Hexadecimal values of eight 16 bit fields –  X:X:X:X:X:X:X:X (X=16 bit number, ex: A2FE) –  16 bit number is converted to a 4 digit hexadecimal number •  Example: –  FE38:DCE3:124C:C1A2:BA03:6735:EF1C:683D –  Abbreviated form of address 4EED:0023:0000:0000:0000:036E:1250:2B00 →4EED:23:0:0:0:36E:1250:2B00 →4EED:23::36E:1250:2B00 (Null value can be used only once) Groups of zeroes Leading zeroes Double colons
  • 5. IPv6 Addressing 2001:0DB8:DEAD:BEEF:1AB6:503F:A804:71D9 0010 0000 0000 0001 0000 1101 1011 1000 1101 1110 1010 1101 1011 1110 1110 1111 0001 1010 1011 0110 1001 0000 0011 1111 1010 1000 0000 0100 0111 0001 1101 1001
  • 6. IPv6 addressing structure 1 128 ISP /32 32 128 bits Customer Site /48 16 End Site Subnet /64 16 64 Device 128 Bit Address Interface ID 65 Network Prefix 64
  • 8. IPv6 addressing model RFC 4291 •  Unicast –  Packet is sent to a single interface •  Anycast –  Packet is sent to the nearest of group interfaces (in terms of routing distance) •  Multicast –  Packet is sent to multiple interfaces
  • 9. Addresses Without a Network Prefix •  Loopback ::1/128 •  Unspecified Address ::/128 •  IPv4-mapped IPv6 address ::ffff/96 [a.b.c.d] •  IPv4-compatible IPv6 address ::/96 [a.b.c.d]
  • 10. IPv6 Address Range •  Unspecified Address ::/128 •  Loopback ::1/128 •  Global Unicast (0010) 2000::/3 •  Link Local (1111 1110 10) FE80::/10 •  Multicast Address (1111 1111) FF00::/8 •  Unique Local Address FC00::/7
  • 11. Local Addresses With Network Prefix •  Link Local Address –  A special address used to communicate within the local link of an interface –  i.e. anyone on the link as host or router –  This address in packet destination that packet would never pass through a router –  fe80::/10
  • 12. Local Addresses With Network Prefix •  Unique Local IPv6 Unicast Address –  Addresses similar to the RFC 1918 / private address like in IPv4 but will ensure uniqueness –  A part of the prefix (40 bits) are generated using a pseudo-random algorithm and it's improbable that two generated ones are equal –  fc00::/7 –  Example webtools to generate ULA prefix •  http://www.sixxs.net/tools/grh/ula/ •  http://www.goebel-consult.de/ipv6/createLULA
  • 13. Global Addresses With Network Prefix •  IPV6 Global Unicast Address –  Global Unicast Range: 0010 2000::/3 0011 3FFF:FFFF:…. :/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 NCC 2A00:0000::/12 •  6to4 Addresses –  2002::/16 –  Designed for a special tunneling mechanism [RFC 3056] to connect IPv6 Domains via IPv4 Clouds –  Need 6to4 relay routers in ISP network
  • 14. Examples and Documentation Prefix •  Two address ranges are reserved for examples and documentation purpose by RFC 3849 –  For examples, use 3fff:ffff::/32 –  For documentation, use 2001:0DB8::/32
  • 15. Interface ID •  The lowest-order 64-bit field addresses •  May be assigned in several different ways: –  auto-configured from a 48-bit MAC address expanded into a 64-bit EUI-64 –  assigned via DHCP –  manually configured –  auto-generated pseudo-random number –  possibly other methods in the future
  • 16. EUI-64 0 0 2 6 B 0 E 5 8 3 3 C 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 2 6 B 0 E 5 8 3 3 C F F F E 0 2 2 6 B 0 E 5 8 3 3 CF F Mac Address EUI-64 Address Interface Identifier U/L bit F E
  • 17. Zone IDs for Local-use Addresses •  In Windows XP for example: –  Host A: fe80::2abc:d0ff:fee9:4121%4 –  Host B: fe80::3123:e0ff:fe12:3001%3 •  Ping from Host A to Host B –  ping fe80::3123:e0ff:fe12:3001%4 (not %3) •  Identifies the interface zone ID on the host which is connected to that segment.
  • 18. IPv6 Autoconfiguration RFC 2462 •  Stateless mechanism –  For a site not concerned with the exact addresses –  No manual configuration required –  Minimal configuration of routers –  No additional servers •  Stateful mechanism –  For a site that requires tighter control over exact address assignments –  Needs a DHCP server –  DHCPv6
  • 19. IPv6 Autoconfiguration 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:1D) 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
  • 20. IPv6 Autoconfiguration FE80::310:BAFF:FE64:1D Send me Router Advertisement 1.  The new host will send Router Solicitation (RS) request to the all-routers multicast group (FF02::2). 2.  The router will reply Routing Advertisement (RA). 3.  The new host will learn the network prefix. E.g, 2001:1234:1:1::/64 4.  The new host will assigned a new address Network prefix+Interface ID E.g, 2001:1234:1:1:310:BAFF:FE64:1D Router Advertisement Assign 2001:1234:1:1:310:BAFF:FE64:1D 2001:1234:1:1/64 network
  • 21. Subnetting (Example) •  Provider A has been allocated an IPv6 block 2001:DB8::/32 •  Provider A will delegate /48 blocks to its customers •  Find the blocks provided to the first 4 customers
  • 22. Subnetting (Example) 2001:0DB8::/32 2001:0DB8:0000:/48 Original block: Rewrite as a /48 block: This is your network prefix! How many /48 blocks are there in a /32? /32 /48 = 2128−32 2128−48 = 296 280 = 216 Find only the first 4 /48 blocks…
  • 23. Subnetting (Example) 2001:0DB8:0000::/48 In bits 0000 0000 0000 00002001:0DB8: ::/48 0000 0000 0000 00012001:0DB8: ::/48 0000 0000 0000 00102001:0DB8: ::/48 0000 0000 0000 00112001:0DB8: ::/48 Start by manipulating the LSB of your network prefix – write in BITS 2001:0DB8:0000::/48 2001:0DB8:0001::/48 2001:0DB8:0002::/48 2001:0DB8:0003::/48 Then write back into hex digits
  • 25. Exercise 1.1: IPv6 subnetting 1.  Identify the first four /36 address blocks out of 2406:6400::/32 1.  _____________________ 2.  _____________________ 3.  _____________________ 4.  _____________________
  • 26. Exercise 1.2: IPv6 subnetting 1.  Identify the first four /35 address blocks out of 2406:6400::/32 1.  _____________________ 2.  _____________________ 3.  _____________________ 4.  _____________________
  • 27. Questions •  Please remember to fill out the feedback form –  <survey-link> •  Slide handouts will be available after you fill out the survey
  • 30. Thank You! End of Session