IPv6 Addressing and Subnetting



Similar documents
IPv6 Addressing. Awareness Objective. IPv6 Address Format & Basic Rules. Understanding the IPv6 Address Components

IPv6 Address Planning

IPv6 Addressing. John Rullan Cisco Certified Instructor Trainer Thomas A. Edison CTE HS

Implementing DHCPv6 on an IPv6 network

IPv6 Fundamentals: A Straightforward Approach

IPv6 Protocols & Standards. ISP/IXP Workshops

Introduction to IP v6

IPv6 Addressing. How is an IPv6 address represented. Classifications of IPv6 addresses Reserved Multicast addresses. represented in Hexadecimal

IPv6 in Axis Video Products

IPv6 Trace Analysis using Wireshark Nalini Elkins, CEO Inside Products, Inc.

Joe Davies. Principal Writer Windows Server Information Experience. Presented at: Seattle Windows Networking User Group June 1, 2011

Types of IPv4 addresses in Internet

Are You Ready to Teach IPv6?

Chapter 3 Configuring Basic IPv6 Connectivity

- IPv6 Addressing - (References:

Technology Brief IPv6 White Paper.

IPv6 Functionality. Jeff Doyle IPv6 Solutions Manager

APNIC Tutorial: IPv6 Essentials

IPv6 Associated Protocols

APNIC IPv6 Deployment

Learn About Differences in Addressing Between IPv4 and IPv6

CloudEngine Series Switches. IPv6 Technical White Paper. Issue 01 Date HUAWEI TECHNOLOGIES CO., LTD.

IPv6 Infrastructure Security

TCP/IP Basis. OSI Model

Neighbour Discovery in IPv6

IPV6 TECHNOLOGY AND DNS SETUP

IPv6 Virtual Labs: How to & Lessons s Learned. IPv6 Virtual Labs:

IPv6 for SMB s: Easy or Hard?

Dedication Preface 1. The Age of IPv6 1.1 INTRODUCTION 1.2 PROTOCOL STACK 1.3 CONCLUSIONS 2. Protocol Architecture 2.1 INTRODUCTION 2.

Step-by-Step Guide for Setting Up IPv6 in a Test Lab

About Me. Work at Jumping Bean. Developer & Trainer Contact Info: mark@jumpingbean.co.za

Telematics. 9th Tutorial - IP Model, IPv6, Routing

Subnetting IPv4 and IPv6

Industry Automation White Paper Januar 2013 IPv6 in automation technology

This tutorial will help you in understanding IPv6 and its associated terminologies along with appropriate references and examples.

IPv6. Plan d'adressage. Objectif: Comprendre pourquoi une interface a plusieurs adresses

Guide to Network Defense and Countermeasures Third Edition. Chapter 2 TCP/IP

Firewalls und IPv6 worauf Sie achten müssen!

IPv6 for Cisco IOS Software, File 2 of 3: Configuring

IPv6 Network Security.

Windows 7 Resource Kit

IPv6.marceln.org.

Corresponding Auto Names for IPv6 Addresses <draft-kitamura-ipv6-auto-name-02.txt> Hiroshi KITAMURA NEC Corporation

IPv6 Infrastructure Security Jeffrey L Carrell Network Conversions Network Security Consultant, IPv6 SME/Trainer

Discovering IPv6 with Wireshark. presented by Rolf Leutert

Domain Name Auto-Registration for Plugged-in IPv6 Nodes. <draft-kitamura-ipv6-name-auto-reg-00.txt>

Getting started with IPv6 on Linux

IPv6 Addressing. ISP Training Workshops

ERserver. iseries. Networking TCP/IP setup

Linux as an IPv6 dual stack Firewall

ICS 351: Today's plan

Security Assessment of Neighbor Discovery for IPv6

Implementation IPV6 in Mikrotik RouterOS. by Teddy Yuliswar

IPv6 Technology Overview Tutorial- Part I. Speaker: Byju Pularikkal Customer Solutions Architect, Cisco Systems Inc.

IPv6 Hands-on Lab. Faraz Shamim, Technical Leader Harold Ritter, Technical Leader. Toronto, Canada May 30, 2013

Internet Protocol Version 6 (IPv6)

Deploying IPv6 for Service Providers. Benoit Lourdelet IPv6 Product Manager, NSSTG

Basic IPv6 WAN and LAN Configuration

Addresses, Protocols, and Ports

Configure DHCP features benefits Differences BOOTP DHCP operation configuring verifying troubleshooting Configure N AT NAT features operation

IPv6 Autoconfiguration Best Practice Document

About the Technical Reviewers

IPv6 for AT&T Broadband

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on

Vicenza.linux.it\LinuxCafe 1

APNIC elearning: BGP Attributes

Recent advances in IPv6 insecurities Marc van Hauser Heuse Deepsec 2010, Vienna Marc Heuse

Computer Networks. Introduc)on to Naming, Addressing, and Rou)ng. Week 09. College of Information Science and Engineering Ritsumeikan University

Internet Protocol version 4 Part I

IP Next Generation (IPv6)

Developing an IPv6 Addressing Plan Guidelines, Rules, Best Practice

Chapter 19 Network Layer: Logical Addressing 19.1

Personal Firewall Default Rules and Components

IPv6 Packet Filtering

Campus IPv6 connection Campus IPv6 deployment

TESTING IPV6 ROUTERS WITH THE NEIGHBOR DISCOVERY PROTOCOL

IP Version 6 (IPv6) Slides adapted from a slide-set generously provided by Jeroen Massar, formerly at the IBM Zurich Research Laboratory

APNIC elearning: BGP Basics. Contact: erou03_v1.0

Interconnecting Cisco Networking Devices Part 2

Tomás P. de Miguel DIT-UPM. dit UPM

Central America Workshop - Guatemala City Guatemala 30 January - 1 February 07. IPv6 Router s Configuration

IPv6 Security ::/0. Poland MUM Warsaw March, 2012 Eng. Wardner Maia Brazil

Efficient IPv6 Neighbor Discovery Optimizations for Wired and Wireless Networks

APPENDIX B. Routers route based on the network number. The router that delivers the data packet to the correct destination host uses the host ID.

Chapter 36 Dynamic Host Configuration Protocol for IPv6 (DHCP6)

IP Addressing and Subnetting. 2002, Cisco Systems, Inc. All rights reserved.

Section #6: Addressing

IP Address Classes (Some are Obsolete) Computer Networking. Important Concepts. Subnetting Lecture 8 IP Addressing & Packets

Domain Name System (1)! gethostbyname (2)! gethostbyaddr (2)!

CE363 Data Communications & Networking. Chapter 6 Network Layer: Logical Addressing

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

Transcription:

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:DC0:A910:: nibbles 1010 1001 0001 0000 2001:0DB8:D35D:B33F::/64

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) Leading zeroes Groups of 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 128 bits 1 64 65 Network Prefix Interface ID 128 32 16 16 64 ISP /32 Customer Site /48 End Site Subnet /64 Device 128 Bit Address

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 Mac Address 0 0 2 6 B 0 E 5 8 3 3 C EUI-64 Address 0 0 2 6 B 0 E 5 8 3 3 C 0 0 0 0 0 0 0 0 U/L bit F F F E 0 0 0 0 0 0 1 0 Interface Identifier 0 2 2 6 B 0 F F F E E 5 8 3 3 C

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 Is this address unique? 2001:1234:1:1/64 network Assign FE80::310:BAFF:FE64:1D Tentative address (link-local address) Well-known link local prefix +Interface ID (EUI-64) Ex: FE80::310:BAFF:FE64:1D 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.

IPv6 Autoconfiguration Send me Router Advertisement 2001:1234:1:1/64 network Router Advertisement FE80::310:BAFF:FE64:1D Assign 2001:1234:1:1:310:BAFF:FE64:1D 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

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) Original block: Rewrite as a /48 block: 2001:0DB8::/32 2001:0DB8:0000:/48 This is your network prefix! How many /48 blocks are there in a /32? /32 /48 = 2128 32 2 Find only the first 4 /48 blocks 2 296 = = 216 128 48 80

Subnetting (Example) 2001:0DB8:0000::/48 Start by manipulating the LSB of your network prefix write in BITS In bits 2001:0DB8: 0000 0000 0000 0000 ::/48 2001:0DB8: 0000 0000 0000 0001 ::/48 2001:0DB8: 0000 0000 0000 0010 ::/48 2001:0DB8: 0000 0000 0000 0011 ::/48 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