IPv6 Foundations-Basic IPv6 Config -Live Session 1-20-09-24
IPv6 Foundations-Basic IPv6 Config -Live Session 1-20-09-24
IPv6 Foundations-Basic IPv6 Config -Live Session 1-20-09-24
| @perfexcellent
AGENDA
IPv4 Exhaustion
and its implications 1
2 IPv6 Address Basics
notation, shortening rules
Neighbor Discovery
and it’s applications 7
8 Provisioning
SLAAC, DHCPv6, DHCP-PD
Basic IPv6 Routing
static & OSPFv3 9
10 Transition Techniques
usage scenarios
11
Transition Techniques
dual stack, tunnels, NAT64
END
Mukom Akong T. | @perfexcellent
Mukom Akong T. | @perfexcellent
IPv4 EXHAUSTION
Timelines, Implications, Consequences
Central IPv4 pool as at 31.01.2011
Used
Free
Unusable
learn.afrinic.net | slide 9
Global IPv4 address distribution is unbalanced
Network complexity
$50
Increase in OPEX
/address
NAT Breaks end-to-end
Cripples innovation
learn.afrinic.net | slide 12
Implications for Africa: ‘Scramble for Africa’
TRANSPORT
TCP UDP
NETWORK
IPv4 ICMP IGMP IPSec NAT OSPF IS-IS mob. IP
DATA LINK
Ethernet et al NBMA ATM 3GPP
learn.afrinic.net | slide 19
TCP/IP model (IPv6 – 128 bits)
APPLICATION
DNS HTTP IMAP SMTP POP NFS
TRANSPORT
TCP UDP
NETWORK
IPv6 ICMPv6 MLD IPSec ND OSPFv3 IS-IS mob. IP
DATA LINK
Ethernet et al NBMA ATM 3GPP
learn.afrinic.net | slide 20
How to write IPv6 addresses (1/2)
0010000000000001 0100001010010000
0000000000010000 0000001001001001
1011101011101000 0101011011111111
1111111001001010 1110110011111110
128 bits
learn.afrinic.net | slide 21
How to write IPv6 addresses (2/2)
128 bits
32 nibbles
hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh/n
▪ h = hexadecimal digit (hexit) [0 – 9, a – f]
▪ n = prefix length: decimal value
learn.afrinic.net | slide 22
Full IPv6 address example
0010000000000001 0100001010010000 0000000000010000 0000001001001001
2001:4290:0010:0249:bae8:56ff:fe4a:ecfe
learn.afrinic.net | slide 23
Rules for shortening IPv6 addresses
1
The Zero Suppression rule
learn.afrinic.net | slide 24
Example: shortening an IPv6 address
2001:0000:0000:0249:0000:0000:0000:ecfe
2001::249:0:0:0:ecfe
learn.afrinic.net | slide 25
Example: shortening an IPv6 address
2001:0000:0000:0249:0000:0000:0000:ecfe
2001:0:0:249::ecfe
learn.afrinic.net | slide 26
WRONG! IPv6 address shortening
2001:0000:0000:0249:0000:0000:0000:ecfe
2001::249::ecfe
learn.afrinic.net | slide 27
Mukom Akong T. | @perfexcellent
Mukom Akong T. | @perfexcellent
Mukom Akong T. | @perfexcellent
Mukom Akong T. | @perfexcellent
Questions?
IPv6 ADDRESS TYPES
Types, Structure, Scope
IPv4 Exhaustion
and its implications 1
2 IPv6 Address Basics
notation, shortening rules
Tx
Rx Rx Rx Rx Rx Rx
2000::/3
Ex: 2001:4290:10:249:bae8:56ff:fe4a:ecfe
learn.afrinic.net | slide 40
Link-local addresses (LLA)
1111111010 0 InterfaceID
fe80
Ex: fe80:0000:0000:0000:bae8:56ff:fe4a:ecfe
learn.afrinic.net | slide 41
Mukom Akong T. | @perfexcellent
Mukom Akong T. | @perfexcellent
Mukom Akong T. | @perfexcellent
Mukom Akong T. | @perfexcellent
Link-local reachability and scopeID
fe80::1 fe80::3
fe80::1a fe80::1b
Fe 0/0 Fe 0/1
fe80::2 fe80::4
ping fe80::1
▪ Which interface does the router send out the packet?
▪ You must additionally specify the egress interface
learn.afrinic.net | slide 46
Resolving LLA ambiguity with zoneIDs
fe80::hhhh:hhhh:hhhh:hhhh%zoneID
▪ E.g on Mac OS X: fe80::bae8:56ff:fe4a:ecfe%en0
▪ E.g on Windows: fe80::bae8:56ff:fe4a:ecfe%10
learn.afrinic.net | slide 47
Mukom Akong T. | @perfexcellent
Mukom Akong T. | @perfexcellent
Mukom Akong T. | @perfexcellent
Mukom Akong T. | @perfexcellent
Unique Local Addresses (ULA)
fc00::/7
64 bits 64 bits
Servers
Router interfaces Automatically configured hosts
learn.afrinic.net | slide 57
Reserved InterfaceIDs (RFC 5453)
learn.afrinic.net | slide 60
How EUI-64 interfaceIDs are generated
00 90 27 17 FC 0F Start with MAC address (48 bits)
:: •
•
•
Means host doesn’t have an IPv6 address
Never used as destination address
Link-local scope
4 4
8 bits bits bits 8 bits 8 bits 64 bits 32 bits
learn.afrinic.net | slide 74
The Solicited-Node multicast address (SNMA)
hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh
24 bits
ff02::1:ffhh:hhhh/104
▪ Computed for each unicast/anycast address
▪ Different addresses with same lower 24 bits have same SNMA
learn.afrinic.net | slide 75
Example of a Solicited-Node multicast address
2000::01:800:200e:8c6c
24 bits
ff02::1:ff0e:8f6c/104
learn.afrinic.net | slide 76
Example of Solicited-Node multicast addresses
#show ipv6 interface g0/0
GigabitEthernet0/0 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::CA9C:1DFF:FE6B:B6A0
Description: [Link to R1]
Global unicast address(es):
2001:43F8:90:C0::2, subnet is 2001:43F8:90:C0::/64
Joined group address(es):
FF02::1
FF02::2
FF02::1:FF00:2
FF02::1:FF6B:B6A0
learn.afrinic.net | slide 77
Mapping multicast to Ethernet addresses
ffhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh
32 bits
33-33-hh-hh-hh-hh
Multicast MAC address
learn.afrinic.net | slide 78
Multicast MAC address examples
ff02::1 33-33-00-00-00-01
ff02::2 33-33-00-00-00-02
ff02::1:ff3f:21ac 33-33-ff-3f-21-ac
learn.afrinic.net | slide 79
Questions?
Understanding
Neighbor Discovery
and it’s applications 7
8 Provisioning
SLAAC, DHCPv6, DHCP-PD
The IPv6 packet structure
4 bits 8 bits 20 bits
Source Address 40
bytes
Destination Address
learn.afrinic.net | slide 90
IPv6 packet with no extension header
Variable
Upper Layer (e.g. TCP, UDP, ICMPv6, OSPFv3, tunnel etc.) Header
length
Data
learn.afrinic.net | slide 91
IPv6 packet with extension headers
Version Traffic Class Flow Label
Payload Length Next Header = EH1 Hop Limit
40
Source Address bytes
Destination Address
Next Header = UL
EH2 Header
Upper Layer (e.g. TCP, UDP, ICMPv6, OSPFv3, tunnel etc) Header
Data
learn.afrinic.net | slide 92
List and order of IPv6 extension headers
learn.afrinic.net | slide 93
Packet header structure changes from IPv4
Source Address
Destination Address
Options Padding
Field eliminated from IPv6 Field removed from IPv6 base header
Field renamed in IPv6 header Field maintained
learn.afrinic.net | slide 96
IPv4 vs IPv6 key functionality comparison
IPv4 IPv6
Automatic configuration of hosts & CPEs
▪ DHCP ▪ DHCPv6
▪ Stateless Address configuration
learn.afrinic.net | slide 97
IPv4 vs IPv6 key functionality comparison
IPv4 IPv6
Domain name to address resolution
▪ DNS ▪ DNS
▪ A resource records ▪ AAAA resource records
▪ in-addr-arpa reverse zone ▪ ip6.arpa reverse zone
Joining a multicast group
▪ IGMPv1, IGMPv2, IGMPv3 ▪ MLDv1 and MLDv2
Default gateway auto-provisioning
▪ DHCP , IRD or Passive RIP ▪ RA (ICMPv6)
learn.afrinic.net | slide 98
IPv4 vs IPv6 key functionality comparison
IPv4 IPv6
Supported Open Dynamic Routing Protocols
▪ RIPv1 , RIPv2 ▪ RIPng
▪ OSPFv2, IS-IS ▪ OSPFv3 , IS-IS
▪ BGPv4 (IPv4 Address Family) ▪ BGPv4 (IPv6 Address Family)
Minimum Supported MTU size
▪ 576 bytes ▪ 1280 bytes
Supported Communication Modes
▪ Unicast, multicast, broadcast ▪ Unicast, multicast
learn.afrinic.net | slide 99
Mukom Akong T. | @perfexcellent
Mukom Akong T. | @perfexcellent
Questions?
Performing
http://j.mp/OSv6-support
learn.afrinic.net | slide 105
Host Configuration: Windows Vista/7
network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp6: yes
addresses:
- <v6address>/<prefix>
nameservers:
addresses:
- <dns_resolver_1_v6_address>
- <dns_resolver_2_v6_address>
learn.afrinic.net | slide 109
Configuring basic IPv6 on Cisco IOS
Enable IPv6 on an Interface
(config)#ipv6 enable