7 SLAAC RickGraziani
7 SLAAC RickGraziani
7 SLAAC RickGraziani
Rick.Graziani@cabrillo.edu
For more information please check out my Cisco Press book and video series:
©
7.1: Introduction to SLAAC and ICMPv6 ND
Dynamic IPv6 Address Allocation
Global Unicast
Manual Dynamic
Stateless Stateful
IPv6
Static SLAAC DHCPv6
unnumbered
Similar to IPv4 unnumbered
SLAAC +
Static + EUI 64 DHCPv6-PD
DHCPv6
©
Dynamic IPv4 Address Allocation
I need an IPv4 addressing
DHCP Server
information from a DHCP server.
DHCP Client
Here is your IPv4
address, subnet mask,
default gateway and
DNS server addresses.
©
ICMPv6
Internet Control Message
Protocol for IPv6
• Described in RFC 4443
• Much more robust than ICMP for IPv4
• Contains new functionality and
improvements.
• More than just “messaging” but “how
IPv6 conducts business”.
• Including ICMPv6 Neighbor Discovery
(RFC 4861) – used in dynamic
address allocation.
• Note: ICMPv6 is discussed in detail in
Lesson 9, ICMPv6 ND in Lesson 10.
©
“Introducing” ICMPv6 Neighbor Discovery
ICMPv6 informational messages used by Neighbor
Discovery (RFC 4861):
Router-Device
• Router Solicitation Message Messaging
• Router Advertisement Message
• Used for dynamic address allocation.
Device-Device
• Neighbor Solicitation Message Messaging
• Neighbor Advertisement Message
• Used with address resolution (IPv4 ARP)
and with DAD
DHCPv6
Router(config)# ipv6 unicast-routing Server
©
Option 1 and 2: Stateless Address Autoconfiguration
Router Advertisement: 3 Options
• DHCPv6 Server does not maintain state of addresses
Option 3: Stateful Address Configuration
• Address received from DHCPv6 Server
DHCPv6
Router(config)# ipv6 unicast-routing
Option 1: SLAAC – No DHCPv6 (Default on Cisco routers) DHCPv6 Server
“I’m everything you need (Prefix, Prefix-length, Default Gateway)”
Option 2: SLAAC + Stateless DHCPv6 for DNS address
“Here is my information but you need to get other information such RA
as DNS addresses from a DHCPv6 server.” (DNS can be in RA)
Option 3: All addressing except default gateway use DHCPv6
“I can’t help you. Ask a DHCPv6 server for all your information.”
2001:DB8:CAFE:1::/64
Link-local address
ICMPv6 Router
DHCPv6
Advertisement
DHCPv6 Server
• The ICMPv6 Router Advertisement suggests to the host how to get
its address automatically.
• Can a host ignore an ICMPv6 Router Advertisement?
• Host operating systems can include the option of ignoring the
Router Advertisement from the router and only use the stateful
services of a DHCPv6 server (or what ever it wants to do).
• However, hosts can’t ignore the default gateway (source of RA)
unless manually configured.
©
7.2: Creating the Interface ID: EUI-64 or Random Value
Obtaining an IPv6 Address Automatically
©
SLAAC: Stateless Address Autoconfiguration
2001:DB8:CAFE:1::/64 MAC: 00-19-D2-8C-E0-4C
1
SLAAC Option 1 – RA Message
To: FF02::1 (All-IPv6 devices) 2
From: FE80::1 (Link-local address) Prefix: 2001:DB8:CAFE:1::
Prefix: 2001:DB8:CAFE:1::
RA Prefix-length: /64
Prefix-length: /64 Default Gateway: FE80::1
Global Unicast Address:
Note: Domain name and DNS server list
may be included if router (and end system) 2001:DB8:CAFE:1: + Interface ID
support RFC 6106 IPv6 RA Options for
DNS Configuration.
3 EUI-64 Process or
DHCPv6 Server Random 64-bit value
©
SLAAC: Interface ID
DHCPv6 Server
/48 /64
16-bit
Global Routing Prefix 64-bit Interface ID
Subnet ID
Operating EUI-64 Random
System 64-bit SLAAC
Windows XP,
Server 2003
✔
EUI-64 Process Randomly Generated Number
Windows Vista
and newer ✔ (Privacy Extension)
MAC OSX
✔
Linux
✔
Default OS behavior can be changed.
©
Known instead of unknown © Copyright DOC RABE Media Man in paper bag on head © Copyright binik
SLAAC: EUI-64 Option
2001:DB8:CAFE:1::/64 MAC: 00-19-D2-8C-E0-4C
1
SLAAC Option 1 – RA Message
To: FF02::1 (All-IPv6 devices) 2
From: FE80::1 (Link-local address) Prefix: 2001:DB8:CAFE:1::
Prefix: 2001:DB8:CAFE:1::
RA Prefix-length: /64
Prefix-length: /64 Default Gateway: FE80::1
Global Unicast Address:
Note: Domain name and DNS server list
may be included if router (and end system) 2001:DB8:CAFE:1: + Interface ID
support RFC 6106 IPv6 RA Options for
DNS Configuration.
3 EUI-64 Process or
DHCPv6 Server Random 64-bit value
©
Modified EUI-64 Format (Extended Unique Identifier–64)
OUI (24 bits) Device Identifier (24 bits)
00 19 D2 8C E0 4C
Insert FF-FE
00 19 D2 FF FE 8C E0 4C
00
0000 0010
0000 19 D2 FF FE 8C E0 4C
U/L bit flipped
02 19 D2 FF FE 8C E0 4C
©
Verifying SLAAC
on the PC Using
EUI-64 Router Advertisement EUI-64
PC> ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
IPv6 Address. . . . . . . . : 2001:db8:cafe:1:0219:d2ff:fe8c:e04c
Link-local IPv6 Address . . : fe80::0219:d2ff:fe8c:e04c
Default Gateway . . . . . : fe80::1
DHCPv6 Server
/48 /64
16-bit
Global Routing Prefix 64-bit Interface ID
Subnet ID
PC-Windows7> ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection: No FF-FE
IPv6 Address. . . . . . . . : 2001:db8:cafe:1:50a5:8a35:a5bb:66e1
Link-local IPv6 Address . . : fe80::50a5:8a35:a5bb:66e1
Default Gateway . . . . . : fe80::1
©
SLAAC: Including the DNS Server in the RA *
Router(config)# ipv6 unicast-routing
G0/1
2001:DB8:CAFE:1::/64
©
Ensuring Unique Unicast Addresses
Global Unicast - 2001:db8:cafe:1:0219:d2ff:fe8c:e04c
Link-local - fe80::50a5:8a35:a5bb:66e1
Neighbor Solicitation
• ICMPv6 Router
A router (not enabled as an IPv6 router):
Advertisement
• Configure IPv6 addresses
• Member of All-IPv6 devices multicast group
• An IPv6 router: RIPng OSPFv3
• Same as a non-IPv6 router EIGRP for IPv6
• Member of All-IPv6 routers multicast group
• Sends ICMPv6 Router Advertisement messages
• Can enable IPv6 routing protocols Forward IPv6 Packets
• Forward IPv6 packets (transiting the router)
©
Configuring the Router as a Client
“IPv6 Router” Link-local address
2001:DB8:CAFE:1::/64
created
ICMPv6 Router Advertisement
R1 Gig 0/1 Gig 0/1 Client
©
Verifying the RA Message
2001:DB8:CAFE:1::/64
FE80::1
ICMPv6 Router Advertisement
R1 Gig 0/1 Gig 0/1 Client
::1
R1# show ipv6 interface gigabitethernet 0/1 Partial output
GigabitEthernet0/1 is up, line protocol is up
IPv6 is enabled, link-local address is FE80::1
Global unicast address(es):
2001:DB8:CAFE:1::1, subnet is 2001:DB8:CAFE:1::/64
Joined group address(es):
FF02::1
FF02::2
FF02::FB
FF02::1:FF00:1
ND router advertisements are sent every 200 seconds
Hosts use stateless autoconfig for addresses.
©
Verifying the Client (Router) Is Using SLAAC/EUI-64
2001:DB8:CAFE:1::/64
FE80::1
ICMPv6 Router Advertisement
R1 Gig 0/1 Gig 0/1 Client
::1
Client# show ipv6 interface brief
GigabitEthernet0/1 [up/up]
FE80::8A5A:92FF:FE3B:29E1
2001:DB8:CAFE:1:8A5A:92FF:FE3B:29E1
<Rest of output omitted>
EUI-64
Client# show interface gigabitethernet 0/1
GigabitEthernet0/1 is up, line protocol is up
Hardware is CN Gigabit Ethernet, address is 885a.923b.29e1 (bia
885a.923b.29e1)
<Rest of output omitted>
©
Router versus “IPv6 Router”
2001:DB8:CAFE:1::/64
FE80::1
ICMPv6 Router Advertisement
R1 Gig 0/1 Gig 0/1 Client
::1
Client# show ipv6 route
Partial output
IPv6 Routing Table - default - 4 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
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
ND ::/0 [2/0] Default route learned via Neighbor
via FE80::1, GigabitEthernet0/1 Discovery (SLAAC)
NDp 2001:DB8:CAFE:1::/64 [2/0]
via GigabitEthernet0/1, directly connected Prefix learned via Neighbor
<Rest of output omitted> Discovery (SLAAC)
©
7.4: IPv6 Enabled Clients and Your Network
You Are Probably Already Running IPv6
RS
IPv4
IPv4 IPv6
IPv6
R1
Rogue
Here is an RA
IPv6 prefix I need an
IPv4
and IPv6
IPv6 prefix
gateway
• Windows Vista or later, Mac OSX, Linux already running IPv6
• Potential DoS or MITM attack, even if the router is not IPv6 enabled.
• Even if the router is not IPv6 enabled, your clients are mostly like are!
• I can still do a DoS attack on clients or perhaps even still to a MITM
attack.
• There are mitigation techniques such as RA Guard.
People Icon: Occupations set 5 © Copyright Fredy Sujono
©
SLAAC with DHCPv6
Global Unicast
Manual Dynamic
Stateless Stateful
IPv6
Static SLAAC DHCPv6
unnumbered
Similar to IPv4 unnumbered
SLAAC +
Static + EUI 64 DHCPv6-PD
DHCPv6
Lesson 8
©
For more information please check out my Cisco Press book and video series:
©
7: SLAAC
(Stateless Address Autoconfiguration)
Rick Graziani
Cabrillo College
Rick.Graziani@cabrillo.edu