IPv6 - Address Assignment Considerations
Jens Link
jenslink@quux.de
PLNOG4 2010, Warsaw
Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 1 / 16
Overview
1 Static Configuration
2 Stateless Auto Configuration
3 DCHPv6
Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 2 / 16
Warning
This talk is not on how to split your
/32, /48, /56
Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 3 / 16
Static Configuration (I)
Necessary for Router Interfaces
Recommended for Servers, Switches, Printers as well
Do you want your important services to change addresses when
you replace the hardware and restoring the backup?
Yes there is DNS, but you’ll have to update this.
Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 4 / 16
Static Configuration (II)
IOS
interface FastEthernet0
!...
ipv6 address 2001:DB8:FFFF:FFFF::1/64
Linux (Debian)
root#cat /etc/network/interfaces
...
iface eth0 inet6 static
address 2001:DB8:FFFF:FFFF:0002:B387:786F:2
netmask 64
gateway 2001:DB8:FFFF:FFFF:0002:B387:786F:1
Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 5 / 16
Stateless Auto Configuration (I)
With SLAC the Client
selects an interface ID, e.g. it’s Ethernet MAC
generates a link-local address
checks via DAD if Address is unique
asks routers for prefix (via multicast)
listens to prefix announcements during runtime
Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 6 / 16
Stateless Auto Configuration (I)
SLAC is great for
Client only networks
Guest networks, e.g. in conferences, ...
Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 7 / 16
DAD?
Duplicate Address Detection
Client send a ICMP Message Type 135 to ’::’
If address is already in use there will be an answer to FF02::1
Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 8 / 16
Stateless Auto Configuration (II)
Problems with SLAC:
No automatic entry into DNS
Announcing a DNS Server to the client via RA (RFC5007) is
relatively new (read: might not be supported by your OS)
Everybody gets an IPv6 address
Answers to DAD request can be faked (e.g.
http://freeworld.thc.org/thc-ipv6/)
Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 9 / 16
Stateless Auto Configuration (III)
Why “Everybody gets an IPv6 address” might be a bad idea:
Consider a large Server hosting company
Many Servers, many different Administrators
Most of these Administrators don’t no what they are doing
They might have a packet filter for IPv4
They most probably will have a default Linux setup with IPv6
enabled
Congratulations: You just created a nice back door into your
customers setup
Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 10 / 16
Stateless Auto Configuration (IV)
There are some ways to influence SLAC
IOS
router(config-if)#ipv6 nd ?
advertisement-interval Send an advertisement interval option in RA’s
dad Duplicate Address Detection
managed-config-flag Hosts should use DHCP for address config
ns-interval Set advertised NS retransmission interval
nud Neighbor Unreachability Detection
other-config-flag Hosts should use DHCP for non-address config
prefix Configure IPv6 Routing Prefix Advertisement
ra Router Advertisement control
reachable-time Set advertised reachability time
To disable SLAC on the router you must use something like this:
ipv6 nd prefix 2001:db8::/64 no-autoconfig
Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 11 / 16
DHCPv6 (I)
The same as in IPv4 but:
different ports (Client: 546/UDP, Server/Relay: 547/UDP)
no routing informations to the client
can be used to only transfer additional informations to clients
(read: no addresses)
There is no default way to create a MAC - IPv6 binding (AFAIK)
“Static” assignment is done by a setting a cookie on the client
Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 12 / 16
DHCPv6 (II)
Client Config (ISC DHCP)
# Client configuration file example for DHCPv6
# The client side command to enable rapid-commit (2 packet
##send dhcp6.rapid-commit;
# name-servers and domain-search are requested by default.
# here is the way to request sip-servers-addresses too
also request dhcp6.sip-servers-addresses;
# Likely to be useful: the script path
script "/usr/local/etc/dhclient-script";
Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 13 / 16
DHCPv6 (III)
Server Config (ISC DHCP)
default-lease-time 2592000;
preferred-lifetime 604800;
option dhcp6.name-servers 2001:db8:ffff:100:200:ff:fe00:3f3
option dhcp6.domain-search "test.example.com","example.com"
Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 14 / 16
Literatur
Benedikt Stockebrand
IPv6 in Practice
A Unixer’s Guide to the Next Generation Internet
ISBN 978-3540245247
Ciprian Popoviciu, Eric Levy-Abegnoli, Patrick Grossetete
Deploying IPv6 Networks
1-58-705210-5
UpTimes 03/2007 (Proceedings ECAI6 2007)
ISBN 978-3865412287
Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 15 / 16
Contact
eMail jenslink@quux.de
Jabber jenslink@guug.de
PGP Fingerprint D9FF E215 6686 6194 FFC8
A135 19CF A676 DB85 EF91
Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 16 / 16

More Related Content

PDF
Keeping DNS server up-and-running with “runit
PDF
RIPE 71 and IETF 94 reports webinar
PDF
What is new in BIND 9.11?
PDF
Building Linux IPv6 DNS Server (Complete Soft Copy)
PDF
DNSTap Webinar
PPTX
7 understanding DNS
DOC
Dns server
PPTX
15 Setup BIND 9
Keeping DNS server up-and-running with “runit
RIPE 71 and IETF 94 reports webinar
What is new in BIND 9.11?
Building Linux IPv6 DNS Server (Complete Soft Copy)
DNSTap Webinar
7 understanding DNS
Dns server
15 Setup BIND 9

What's hot (20)

PDF
Meeting 13. web server i
PPTX
Web server
PPT
Screen Shots of Building Linux IPv6 DNS Server
PPTX
File Transfer Protocol
PDF
BIND 9 logging best practices
PDF
HTTP/2 standard for video streaming
PPT
PDF
DNS High-Availability Tools - Open-Source Load Balancing Solutions
PPTX
Introduction to HTTP/2
PPT
File Transfer protocols
PDF
Percona Server 5.7: Key Performance Algorithms
PPTX
File transfer protocol (ftp)
PDF
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOS
PDF
Ftp server linux
PPTX
Dns server setup on ubuntu vps (master+slave)
PPTX
SUN Network File system - Design, Implementation and Experience
PDF
Yeti DNS - Experimenting at the root
PDF
Part 2 - Local Name Resolution in Windows Networks
PPTX
File transfer protocol
PPTX
Meeting 13. web server i
Web server
Screen Shots of Building Linux IPv6 DNS Server
File Transfer Protocol
BIND 9 logging best practices
HTTP/2 standard for video streaming
DNS High-Availability Tools - Open-Source Load Balancing Solutions
Introduction to HTTP/2
File Transfer protocols
Percona Server 5.7: Key Performance Algorithms
File transfer protocol (ftp)
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOS
Ftp server linux
Dns server setup on ubuntu vps (master+slave)
SUN Network File system - Design, Implementation and Experience
Yeti DNS - Experimenting at the root
Part 2 - Local Name Resolution in Windows Networks
File transfer protocol
Ad

Similar to PLNOG 4: Jens Link - IPv6 Address Assignment Considerations (20)

PDF
PLNOG 3: Jens Link - IPv6 - Migration Planning
PDF
To setup the simplest IPv6 network you just have to boot up a host o.pdf
PPTX
Hdfs 2016-hadoop-summit-san-jose-v4
PDF
Installation Of An Iso Image Dvd
DOC
Building Linux IPv6 DNS Server (Draft Copy)
PDF
Analyzing dhc pv6 stateful and stateless
PPTX
Module (8) DHCP Server.pptx
PDF
IPv6 In z/VSE:IBM z/VSE Live Virtual Class 2012
PDF
Configurar dhcp en router cisco
PDF
PLNOG 3: Fredy Kunzler - IPv6. Now!
PDF
Successes and Challenges of IPv6 Transition at APNIC
PPTX
IPv6 DHCP
PDF
Short Introduction to IPv6
PDF
7 2.5 3 Lab - Identifying IPv6 Addresses.pdf
PPTX
Windows Server 2012 Seminar 4 - De mogelijkheden van Direct Access
PDF
DHCP concept
PPTX
Group-7-DHCPv4.pptx
PDF
Swiss IPv6 Council: Konfusion um die Router Flags
DOCX
Linux ProposalLinux Implementation ProposalHACKD, LLC. has a.docx
PPT
PLNOG15: Practical deployments of Kea, a high performance scalable DHCP - Tom...
PLNOG 3: Jens Link - IPv6 - Migration Planning
To setup the simplest IPv6 network you just have to boot up a host o.pdf
Hdfs 2016-hadoop-summit-san-jose-v4
Installation Of An Iso Image Dvd
Building Linux IPv6 DNS Server (Draft Copy)
Analyzing dhc pv6 stateful and stateless
Module (8) DHCP Server.pptx
IPv6 In z/VSE:IBM z/VSE Live Virtual Class 2012
Configurar dhcp en router cisco
PLNOG 3: Fredy Kunzler - IPv6. Now!
Successes and Challenges of IPv6 Transition at APNIC
IPv6 DHCP
Short Introduction to IPv6
7 2.5 3 Lab - Identifying IPv6 Addresses.pdf
Windows Server 2012 Seminar 4 - De mogelijkheden van Direct Access
DHCP concept
Group-7-DHCPv4.pptx
Swiss IPv6 Council: Konfusion um die Router Flags
Linux ProposalLinux Implementation ProposalHACKD, LLC. has a.docx
PLNOG15: Practical deployments of Kea, a high performance scalable DHCP - Tom...
Ad

Recently uploaded (20)

PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPTX
The various Industrial Revolutions .pptx
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
DOCX
search engine optimization ppt fir known well about this
PDF
STKI Israel Market Study 2025 version august
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Five Habits of High-Impact Board Members
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
Architecture types and enterprise applications.pdf
PDF
CloudStack 4.21: First Look Webinar slides
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Hybrid model detection and classification of lung cancer
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Getting started with AI Agents and Multi-Agent Systems
PPT
What is a Computer? Input Devices /output devices
PPT
Geologic Time for studying geology for geologist
PPTX
O2C Customer Invoices to Receipt V15A.pptx
Group 1 Presentation -Planning and Decision Making .pptx
The various Industrial Revolutions .pptx
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
search engine optimization ppt fir known well about this
STKI Israel Market Study 2025 version august
observCloud-Native Containerability and monitoring.pptx
1 - Historical Antecedents, Social Consideration.pdf
Five Habits of High-Impact Board Members
A novel scalable deep ensemble learning framework for big data classification...
Architecture types and enterprise applications.pdf
CloudStack 4.21: First Look Webinar slides
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Hybrid model detection and classification of lung cancer
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Enhancing emotion recognition model for a student engagement use case through...
Getting started with AI Agents and Multi-Agent Systems
What is a Computer? Input Devices /output devices
Geologic Time for studying geology for geologist
O2C Customer Invoices to Receipt V15A.pptx

PLNOG 4: Jens Link - IPv6 Address Assignment Considerations

  • 1. IPv6 - Address Assignment Considerations Jens Link jenslink@quux.de PLNOG4 2010, Warsaw Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 1 / 16
  • 2. Overview 1 Static Configuration 2 Stateless Auto Configuration 3 DCHPv6 Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 2 / 16
  • 3. Warning This talk is not on how to split your /32, /48, /56 Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 3 / 16
  • 4. Static Configuration (I) Necessary for Router Interfaces Recommended for Servers, Switches, Printers as well Do you want your important services to change addresses when you replace the hardware and restoring the backup? Yes there is DNS, but you’ll have to update this. Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 4 / 16
  • 5. Static Configuration (II) IOS interface FastEthernet0 !... ipv6 address 2001:DB8:FFFF:FFFF::1/64 Linux (Debian) root#cat /etc/network/interfaces ... iface eth0 inet6 static address 2001:DB8:FFFF:FFFF:0002:B387:786F:2 netmask 64 gateway 2001:DB8:FFFF:FFFF:0002:B387:786F:1 Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 5 / 16
  • 6. Stateless Auto Configuration (I) With SLAC the Client selects an interface ID, e.g. it’s Ethernet MAC generates a link-local address checks via DAD if Address is unique asks routers for prefix (via multicast) listens to prefix announcements during runtime Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 6 / 16
  • 7. Stateless Auto Configuration (I) SLAC is great for Client only networks Guest networks, e.g. in conferences, ... Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 7 / 16
  • 8. DAD? Duplicate Address Detection Client send a ICMP Message Type 135 to ’::’ If address is already in use there will be an answer to FF02::1 Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 8 / 16
  • 9. Stateless Auto Configuration (II) Problems with SLAC: No automatic entry into DNS Announcing a DNS Server to the client via RA (RFC5007) is relatively new (read: might not be supported by your OS) Everybody gets an IPv6 address Answers to DAD request can be faked (e.g. http://freeworld.thc.org/thc-ipv6/) Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 9 / 16
  • 10. Stateless Auto Configuration (III) Why “Everybody gets an IPv6 address” might be a bad idea: Consider a large Server hosting company Many Servers, many different Administrators Most of these Administrators don’t no what they are doing They might have a packet filter for IPv4 They most probably will have a default Linux setup with IPv6 enabled Congratulations: You just created a nice back door into your customers setup Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 10 / 16
  • 11. Stateless Auto Configuration (IV) There are some ways to influence SLAC IOS router(config-if)#ipv6 nd ? advertisement-interval Send an advertisement interval option in RA’s dad Duplicate Address Detection managed-config-flag Hosts should use DHCP for address config ns-interval Set advertised NS retransmission interval nud Neighbor Unreachability Detection other-config-flag Hosts should use DHCP for non-address config prefix Configure IPv6 Routing Prefix Advertisement ra Router Advertisement control reachable-time Set advertised reachability time To disable SLAC on the router you must use something like this: ipv6 nd prefix 2001:db8::/64 no-autoconfig Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 11 / 16
  • 12. DHCPv6 (I) The same as in IPv4 but: different ports (Client: 546/UDP, Server/Relay: 547/UDP) no routing informations to the client can be used to only transfer additional informations to clients (read: no addresses) There is no default way to create a MAC - IPv6 binding (AFAIK) “Static” assignment is done by a setting a cookie on the client Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 12 / 16
  • 13. DHCPv6 (II) Client Config (ISC DHCP) # Client configuration file example for DHCPv6 # The client side command to enable rapid-commit (2 packet ##send dhcp6.rapid-commit; # name-servers and domain-search are requested by default. # here is the way to request sip-servers-addresses too also request dhcp6.sip-servers-addresses; # Likely to be useful: the script path script "/usr/local/etc/dhclient-script"; Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 13 / 16
  • 14. DHCPv6 (III) Server Config (ISC DHCP) default-lease-time 2592000; preferred-lifetime 604800; option dhcp6.name-servers 2001:db8:ffff:100:200:ff:fe00:3f3 option dhcp6.domain-search "test.example.com","example.com" Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 14 / 16
  • 15. Literatur Benedikt Stockebrand IPv6 in Practice A Unixer’s Guide to the Next Generation Internet ISBN 978-3540245247 Ciprian Popoviciu, Eric Levy-Abegnoli, Patrick Grossetete Deploying IPv6 Networks 1-58-705210-5 UpTimes 03/2007 (Proceedings ECAI6 2007) ISBN 978-3865412287 Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 15 / 16
  • 16. Contact eMail jenslink@quux.de Jabber jenslink@guug.de PGP Fingerprint D9FF E215 6686 6194 FFC8 A135 19CF A676 DB85 EF91 Jens Link (jenslink@quux.de) IPv6 - Address Assignment Considerations 16 / 16