IPv6 For Cert Nuts
IPv6 For Cert Nuts
IPv6 For Cert Nuts
BRKCRT-9344
Tour Guide
Scott Morris, CCIEx4 #4713, CCDE #2009::13, JNCIEx2
CCIE Route & Switch, ISP/Dial, Security, Service Provider
Cisco Certified Design Expert
Juniper Networks JNCIE-M #153 and JNCIE-ER #102
CISSP, CCVP and several other random things!
Email: [email protected]
Twitting: @ScottMorrisCCIE
BRKCRT-9344
Cisco Public
Tour Guide
Keith Barker, CCIEx2 #6783, CCDP, CCSI
BRKCRT-9344
Cisco Public
Journey
BRKCRT-9344
Cisco Public
IPv6 Agenda
Setting the stage
Why the mastery of IPv6 skills is so important in the real world
What we knowor think we know, can be a factor in our mastery
BRKCRT-9344
Cisco Public
BRKCRT-9344
Cisco Public
Create a redistribution implementation plan based upon the results from a redistribution analysis
Create a redistribution verification plan
Configure a redistribution solution
Verify that a redistribution was implemented
Document results of a redistribution implementation and verification plan
Identify the differences between implementing an IPv4 and IPv6 redistribution solution
BRKCRT-9344
Cisco Public
BRKCRT-9344
Cisco Public
IPv6 Overview
Short History Of IP
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
BRKCRT-9344
Cisco Public
11
IPv6
BRKCRT-9344
Cisco Public
12
IPv6 Addressing
IPv4 32-bits
IPv6 128-bits
232 = 4,294,967,296
2128 =
340,282,366,920,938,463,463,374,607,431,768,211,456
(340 undecillion IPv6 addresses)
2128 = 232 * 296
296 = 79,228,162,514,264,337,593,543,950,336 times the
number of IPv4 addresses (79 octillion addresses, or 79
trillion trillion for the arithmophobes)
BRKCRT-9344
Cisco Public
13
340,282,366,920,938,463,374,607,432,768,211,456
(IPv6 Address Space 340 Undecillion)
vs.
4,294,967,296
An Atom
An 80 Tonne Whale
(Lots of Atoms)
Cisco Public
14
IPv6 Addressing
IPv6 Addresses
IPv6 addresses are 128 bits long
Interface ID
Network Portion
nnnn:nnnn:nnnn:ssss:xxxx:xxxx:xxxx:xxxx
Global Routing Prefix
n <= 48 bits
Subnet ID
64 n bits
Host
2001:1A6E:134A:00A1:0000:0000:0000:1E2A
2001:0:0: A1:::1E2A
BRKCRT-9344
Full Format
Abbreviated Format
Cisco Public
16
2001:0660:3003:0001:0000:0000:6543:210F
Compact Format:
2001:660:3003:1::6543:210F
2001:660:3003:1:0:0:6543:210F
2001:0660:3003:0001:0000:0000:6543:210F
Literal representation (e.g. used when browsing to IPv6 address directly
and not through the DNS name)
[2001:660:3003:2:a00:20ff:fe18:964c]
6DISS Courtesy Slide
BRKCRT-9344
Cisco Public
17
BRKCRT-9344
Cisco Public
18
IPv6 Address
HOST: 156.50.20.1
NET: 156.50.0.0/16
FE80::20B:60FF:FEA7:D81A
2001:0:0:A1::/64
BRKCRT-9344
Network Operator
Cisco Public
19
A link-local address
Loopback address
All-nodes multicast address
Any additional unicast and anycast addresses (configured automatically or manually)
Solicited-node multicast address for each of its unicast and anycast addresses
Multicast addresses of all other groups to which the host belongs
BRKCRT-9344
Cisco Public
20
BRKCRT-9344
Cisco Public
21
IPv6 Notation
Unspecified
00 0 (128 bits)
::/128
Loopback
00 1 (128 bits)
::1/128
Multicast
1111 1111
FF00::/8
1111 1110 10
FE80::/10
1111 110
FC00::/7
Everything else
Link-local unicast
Unique local unicast
Global unicast
BRKCRT-9344
Cisco Public
22
Cisco Public
23
IPv6 Addressing:
Formats
Provider Independent
2000::/3
/48
2000::/3
Registries
/12
/32
IANA
ISP
/12
Org
/48
Level Four
Enterprise
http://www.ripe.net/ripe/policies/proposals/2006-01.html
http://www.ripe.net/ripe/policies/proposals/2006-05.html
BRKCRT-9344
Cisco Public
25
Link-Local Addresses
128 bits
0
Interface ID
64 bits
1111 1110 10
FE80::/10
EUI-64 Format
10 bits
Link-local addresses:
Have a limited scope of the link
Are automatically configured with the interface ID
BRKCRT-9344
Cisco Public
26
00
90
90
27
27
17
FF
00
64 bits version
Uniqueness of the MAC
Eui-64 address
90
000000X0
X=1
02 90
27
FF
FF
0F
17
FC
0F
FE
FE
17
FC
0F
1 = unique
where X=
27
FC
0 = not unique
FE 17 FC 0F
Cisco Public
27
/32
/48
/64
Interface ID
2001
Cisco Public
RFC4941
28
Site-Local Addresses
128 bits
0
1111 1110 11
Interface ID
Subnet id
FEC0::/10
16 bits
10 bits
Site-local addresses:
Have a limited scope of the site
Contain the inside topology of the site with the subnet ID
Subnet ID may contain octets 2 & 3 of IPv4 address!
Cisco Public
29
BRKCRT-9344
Cisco Public
30
Unique-Local Addresses
128 bits
Global ID
1111 1100
FC00::/7
Interface ID
Subnet id
16 bits
8 bits
Unique-local addresses (RFC4193):
http://www.sixxs.net/tools/grh/ula/
BRKCRT-9344
Cisco Public
31
BRKCRT-9344
Cisco Public
32
13
TLA RES
001
Site
24 bits
NLAs
NLA1
NLA2
16 bits
SLA
Host
64 bits
Interface ID
NLAn
http://www.sixxs.net/tools/grh/dfp/
http://www.sixxs.net/tools/grh/dfp/arin/
BRKCRT-9344
Cisco Public
33
IPv6 Aggregation
Customer
no 1
2001:0410:0001:/48
ISP
Only
announces
the /35
prefix
2001:0410::/35
Customer
no 2
2001:0410:0002:/48
IPv6 Internet
2001::/16
BRKCRT-9344
Cisco Public
34
Allocation Strategies
We wish to allocate /48s out of the /35.
Which are available:
2001:0468:0000 through
2001:0468:1fff
BRKCRT-9344
Cisco Public
35
Thus there are 32 /40s in the /35 each of which has 256 /48s.
5 bits
8 bits
BRKCRT-9344
Cisco Public
36
BRKCRT-9344
Cisco Public
37
Mixed Allocations
The interesting case is how to handle mixed allocations.
Some sites need a /40 others a /42. How can you handle this case.
See
draft-ietf-ipngwg-ipaddressassign-02
A flexible method for managing the assignment of bits of an IPv6 address block
A perl script is included.
BRKCRT-9344
Cisco Public
38
Example
A TLA has been assigned the 3ffe:0b00/24 prefix and wants to assign prefixes
to its connected networks. Assume 8 bits for NLAs. NLA2, will use 10 bits for
subNLAs.
TLA assigning to NLAs using lefmost bits:
10000000 : assigned to NLA1
01000000 : assigned to NLA2
subNLAs use centermost bits and site nets assigned using rightmost bits.
BRKCRT-9344
<------->
<------>
Cisco Public
39
Mixed Allocations
Here is the assignment:
Take 3ffe:3700::/32. Out of that allocate
34 = 2
37 = 3
38 = 5
BRKCRT-9344
Cisco Public
40
IPv6 Multihoming
BRKCRT-9344
Cisco Public
41
Multicast
128 bits
0
Interface ID
1111 1111
F
8 bits
Flag
Scope
Flag =
8 bits
Scope =
BRKCRT-9344
0 if permanent
1 if temporary
1 = node
2 = link
5 = site
= organization
E= global
Cisco Public
42
33
33
FF
22
DE
AD
Multicast Prefix
for Ethernet
Multicast
BRKCRT-9344
Cisco Public
43
Multicast Addresses
112 Bits
Group ID
1111 1111
F
F
8 Bits
Flags
Scope
Flags =
8 Bits
Scope =
4 Bits = 0, R, P, T
1 = interface-local
2 = link-local
3 = subnet-local
4 = admin-local
5 = site-local
8 = organization
E = global
Cisco Public
44
Scope
FF02::1
All nodes
Link-local
FF02::2
All routers
Link-local
FF02::9
Link-local
FF02::1:FFXX:XXXX
Solicited-node
Link-local
FF05::101
Site-local
FF05::1:3
All-DHCP servers
Site-local
BRKCRT-9344
Cisco Public
45
Destination
Ethernet Address
Source Ethernet
Address
0x86DD
BRKCRT-9344
Cisco Public
46
Link-Local
Global
BRKCRT-9344
Cisco Public
47
BRKCRT-9344
Cisco Public
48
BRKCRT-9344
Cisco Public
49
Cisco Public
50
IPv6 Addressing:
Scoping
Types of Addresses
Unicast
Multicast
Anycast
BRKCRT-9344
Cisco Public
52
Unicast Addresses
Unicast addresses are used in a one-to-one context.
IPv6 unicast addresses:
Global unicast addresses
Unique local addresses
Link-local addresses
BRKCRT-9344
Cisco Public
53
FE80:0000:0000:0000:
xxxx:xxxx:xxxx:xxxx
Cisco Public
54
IPv6 Addressing:
Special Addresses
FF02:0:0:0:0:0:0:1
FF15:0:0:0:0:0:1:c001
0:0:0:0:0:0:0:1
0:0:0:0:0:0:0:0
BRKCRT-9344
=> FF02::1
=> FF15::1:c001
=> ::1
=> ::
Cisco Public
56
BRKCRT-9344
Cisco Public
57
BRKCRT-9344
Cisco Public
58
BRKCRT-9344
Cisco Public
59
IPv6 Addressing:
Anycast
Anycast Addresses
n Bits
Prefix
128-n Bits
Interface ID
Anycast:
Used in the context of one-to-nearest
Assigned to more than one interface
Allocated from the unicast address space
BRKCRT-9344
Cisco Public
61
R2
BGP Announces
2001:100:100:100::/64
R3
BGP Announces
2001:100:100:100::/64
SA = 2001:200:200:200::1
DA = 2001:100:100:100::1
BGP Announces
2001:100:100:100::/64
R4
R1
2001:100:100:100::1
Host 1
2001:200:200:200::1
BRKCRT-9344
Cisco Public
62
IPv6 Addressing:
Configuration
BRKCRT-9344
Cisco Public
64
L2 to L3 Mapping
Dont forget that this is another protocol!
BRKCRT-9344
Cisco Public
65
BRKCRT-9344
Cisco Public
66
IPv6 Headers:
Packet Headers
IPv6 Structure
The IPv6 header has the following improvements:
Version (4)
Traffic
Class
(8)
40
bytes
BRKCRT-9344
Cisco Public
68
IHL TOS
Identification
Time to
Live
Protocol
Total Length
Fragment
Flags
Offset
Header Checksum
Source Address
Destination Address
Options
IPv6 Header
Padding
Key
Fields the same in IPv4 and IPv6
Fields removed in IPv6
Name and position changed in IPv6
New field in IPv6
BRKCRT-9344
Version
Traffic
Class
Payload Length
Flow Label
Next Header
Hop Limit
Source Address
Destination Address
Cisco Public
69
IPv6 Headers:
Extension Headers
BRKCRT-9344
Cisco Public
71
Cisco Public
72
IPv6 hdr
HopByHop Routing
AH
TCP
IPv6 hdr
HopByHop Routing
AH
Unknown L4 ???
IPv6 hdr
BRKCRT-9344
TCP
Cisco Public
data
data
73
Basic Ideas
BRKCRT-9344
Cisco Public
75
IP address to
hostname
A record:
AAAA record:
www.abc.test. A 192.168.30.1
PTR record:
PTR record:
1.30.168.192.in-addr.arpa. PTR
2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.0.8.1.c.0.
8.b.d.0.1.0.0.2.ip6.arpa. PTR www.abc.test.
www.abc.test.
BRKCRT-9344
IPv6
Cisco Public
76
OR
Resp=NONE
DNS
server
Query=www.example.org TYPE=A
Resp=192.168.0.3 Type=A
Cisco Public
77
BRKCRT-9344
Cisco Public
78
Extensions include:
New record types for IPv6 addresses have been proposed (A6, AAAA)
New domain for reverse name resolution (IPv6.ARPA)
Hierarchical method to support easy network renumbering
BRKCRT-9344
Cisco Public
79
DNS Server
DNS Request (h.root-servers.net) (QTYPE=A)
IPv4 A Response (128.63.2.53)
H.ROOT-SERVERS.NET. 210892
IN
128.63.2.53
BRKCRT-9344
Cisco Public
80
DNS Server
DNS Request (h.root-servers.net) (QTYPE=AAAA)
IPv6 AAAA Response (2001:500:1::803f:235 )
H.ROOT-SERVERS.NET. 210892
IN
AAAA
2001:500:1::803f:235
BRKCRT-9344
Cisco Public
81
I prefer IPv6
addresses
H.ROOT-SERVERS.NET. 210892
H.ROOT-SERVERS.NET. 210892
IN
IN
AAAA
A
DNS
Server
2001:500:1::803f:235
128.63.2.53
BRKCRT-9344
Cisco Public
82
DNS Issues
Upgrade DNS servers to support IPv6
Adding AAAA record for a specific server to the DNS Server requires ALL
services to be IPv6 aware
LDAP or AD IPv6 Aware
All Services running on the Server
Interim solution is to use a temporary name (see Google IPv6 start in 2008)
ipv6.google.com vs. www.google.com
BRKCRT-9344
Cisco Public
83
Forward Lookups
Uses AAAA records for assign IPv6 addresses to names.
Multiple addresses possible for any given name for example, in a multihomed situation.
Can assign A records and AAAA records to a given name/domain.
Can also assign separate domains for IPv6 and IPv4.
Dont be afraid to experiment!
BRKCRT-9344
Cisco Public
84
BRKCRT-9344
Cisco Public
85
Reverse Lookups
Reverses should be put in for both ip6.int and ip6.arpa domains.
The ip6.int domains has been deprecated, but some hosts still use them.
Can use same file for both use the @ notation and point to the same file in
the named.conf file.
File uses nibble format see examples on next slide.
BRKCRT-9344
Cisco Public
86
BRKCRT-9344
Cisco Public
87
Auto-Configuration
Mac address:
00:2c:04:00:FE:56
Host autoconfigured
address is:
prefix received + linklayer address
Larger address space enables:
Sends network-type
information
(prefix, default route, )
BRKCRT-9344
Cisco Public
89
Renumbering
Mac address:
00:2c:04:00:FE:56
Host auto-configured
address is:
NEW prefix received +
SAME link-layer address
BRKCRT-9344
Cisco Public
90
Router advertisements
Default router
Autoconfiguring IPv6 hosts
BRKCRT-9344
Cisco Public
92
Types of Discovery
Router Discovery: How hosts locate routers that reside on an attached link.
Prefix Discovery: How hosts discover the set of address prefixes that define
which destinations are on-link for an attached link. (Nodes use prefixes to
distinguish destinations that reside on-link from those only reachable through a
router.)
Parameter Discovery: How a node learns such link parameters as the link MTU
or such Internet parameters as the hop limit value to place in outgoing packets.
BRKCRT-9344
Cisco Public
93
BRKCRT-9344
Cisco Public
94
BRKCRT-9344
Cisco Public
95
ND Summary
Neighbor Discovery defines five different ICMP packet types: A pair of Router
Solicitation and Router Advertisement messages, a pair of Neighbor
Solicitation and Neighbor Advertisements messages, and a Redirect message.
The messages serve the following purpose:
Router Solicitation: When an interface becomes enabled, hosts may send out
Router Solicitations that request routers to generate Router Advertisements
immediately rather than at their next scheduled time.
BRKCRT-9344
Cisco Public
96
Cisco Public
97
RA
43200 43200
interface FastEthernet0/0
ipv6 nd prefix 3000:b00:c18:1::/64 43200 43200
ipv6 nd ra-lifetime 0
RA
BRKCRT-9344
Fa0/0
interface FastEthernet0/1
R2
ipv6 nd prefix 3000:b00:c18:2::/64
Fa0/1
LAN2: 3000:b00:c18:2::/64
Cisco Public
43200 43200
98
Prefix Renumbering
Router configuration after renumbering:
interface FastEthernet0/0
ipv6 nd prefix 3ffe:b00:c18:1::/64 43200 0
ipv6 nd prefix 3ffe:b00:c18:2::/64 43200
OR:
interface FastEthernet0/0
ipv6 nd prefix 3ffe:b00:c18:1::/64 at Sep 1 2012 23:59 Sep 1 2012 23:59
ipv6 nd prefix 3ffe:b00:c18:2::/64 43200 43200
Hosts:
Router advertisements
with expiration dates
Autoconfigured
IPv6 hosts
BRKCRT-9344
Cisco Public
99
ICMP
Completely Changed note new header type
Now includes IGMP
Types organized as follows
1 4 Error messages
128 129 Ping
130 132 Group membership
133 137 Neighbor discovery
General Format
BRKCRT-9344
Cisco Public
101
ICMP
Type
Description
Destination Unreachable
Time Exceeded
Parameter Problem
128
Echo Request
129
Echo Reply
130
131
132
133
Router Solicitation
134
Router Advertisement
135
Neighbor Solicitation
136
Neighbor Advertisement
137
Redirect
BRKCRT-9344
Cisco Public
102
ICMPv6
Not compatible with IPv4 ICMP
Completely new protocol specification
BRKCRT-9344
Cisco Public
103
HSRP
Standby
GLBP for v6
GLBP
AVG,
AVF
GLBP
AVF,
SVF
BRKCRT-9344
Cisco Public
104
Neighbor Discovery
Neighbor Discovery Types
DAD
Router Discovery
Neighbor Discovery
NUD
Redirects
Address Resolution (~ARP)
BRKCRT-9344
Cisco Public
105
Neighbor Discovery
IPv4 uses ARP to resolve local addresses
Relies on broadcasts
Neighbor solicitation
Neighbor advertisement
Router solicitation
Router advertisement
BRKCRT-9344
Cisco Public
106
Neighbor Solicitation
Host 2
Host 1
I need to reach IPv6 address
FEC0::2003:210:A4FF:FEA6:69D0
Solicited node
multicast address
allows the host to
reach all nodes with
matching last 24 bits
(derived from DA)
I have that address!
Neighbor advertisement
(ICMP Type 136) to
neighbor solicitation
source address
BRKCRT-9344
Cisco Public
107
FEC0::2003:210:A4FF:FEA6:69D0
Solicited multicast
address
FF02:0:0:0:0:1:FFA6:69D0
All nodes with the same final 24 bits of their IPv6 addresses
Cisco Public
108
Host 2
Send NS
BRKCRT-9344
Cisco Public
109
Autoconfiguration
IPv6 hosts can configure their own addresses automatically
Similar in function to IPv4 DHCP
Two methods:
Stateless autoconfiguration
Stateful autoconfiguration
BRKCRT-9344
Cisco Public
110
Router Advertisement
Type=134
Code
Checksum
Hop Limit M O RSV
Router lifetime
Reachable Time
Retransmit Timer
Options
32 bits
BRKCRT-9344
Cisco Public
111
Length
Prefix Length L A
Valid Lifetime
Preferred Lifetime
Reserved
Reserved
Prefix
BRKCRT-9344
Cisco Public
112
Router Solicitation
Type=133
Code
Reserved
Options
Checksum
32 bits
Sent by hosts to locate on-link routers
Usually sent to the all-routers multicast group
Source address can be:
Unspecified
Local address
Cisco Public
113
Stateless Autoconfiguration
Basic host address configuration
IPv6 Stateless Address Autoconfiguration
RFC 4862September 2007
BRKCRT-9344
Cisco Public
114
Stateless Autoconfiguration
Generate a link local address
If no response
Assign the address to the
Interface. At this point the
Node can communicate
On-link.
Cisco Public
115
Stateless Autoconfiguration
Assign address to
Interface.
Cisco Public
116
Stateless Autoconfiguration
Look at the managed address
configuration" flag
If M= 0 proceed with
Stateless configuration
Look at "other stateful
configuration" flag
If O = 0 finish
BRKCRT-9344
Cisco Public
117
Stateless Autoconfiguration
Host 1
Cisco Public
118
Stateless Autoconfiguration
Build link-local address
Join all-nodes multicast group
Join solicited node multicast group
Send NS
My address is unique!
Send RS
Send RA
Build on-link addresses
BRKCRT-9344
Cisco Public
119
Preferred Lifetime
32-bit unsigned integer. The length of time in seconds before an address is
deprecated.
BRKCRT-9344
Cisco Public
120
Stateless autoconfig
Routers are to send out router advertisements at regular intervals at the all
hosts address.
This should update lifetimes.
BRKCRT-9344
Cisco Public
121
Stateful Autoconfiguration
IPv4 DHCP does more than manage addressing
Provides optional services:
DNS
WINS server
Boot server
NETBIOS node type
Many others
BRKCRT-9344
Cisco Public
122
Stateful Autoconfiguration (1 of 2)
Build link-local address
Join all-nodes multicast group
Join solicited node multicast group
Send NS
My address is unique!
Send RS
Send RA
(M bit = 0, O bit = 1)
Build on-link addresses
BRKCRT-9344
Cisco Public
123
Stateful Autoconfiguration (2 of 2)
Send DHCP request
to FF05::1:3 (All DHCP Servers)
Send DHCP reply
(Unicast)
Read options and configure
parameters
BRKCRT-9344
Cisco Public
124
Stateful Autoconfiguration (1 of 2)
Build link-local address
Join all-nodes multicast group
Join solicited node multicast group
Send NS
My address is unique!
Send RS
Send RA
(M bit = 1)
Cant build addresses!
BRKCRT-9344
Cisco Public
125
Stateful Autoconfiguration (2 of 2)
Send DHCP request
To FF02::1:2 (All DHCP Agents)
Send DHCP reply
(Unicastcan be relayed)
Read options and configure
addresses and parameters
BRKCRT-9344
Cisco Public
126
Router Advertisement
R2
fe-0/0/0
::1
fe-0/0/1
FEC0:0:0:2000::/
fe-0/0/1
64
::2
::1
fe-0/0/1
FEC0:0:0:2003::/
64
R3
::2
R1
Host
Host
BRKCRT-9344
Cisco Public
128
BRKCRT-9344
Cisco Public
130
Transition enablers
Vendors must provide IPv6 features and functionality comparable to IPv4
Application vendors must add support for IPv6
Customers must drive the transition
Cisco Public
131
Basic Transition Mechanisms for IPv6 Hosts and Routers (RFC 4213)
Suggested methods include:
Dual-stack approach
Tunneling
Static
Dynamic
(RFC 2766)
BRKCRT-9344
Cisco Public
132
IPv6 Deployments:
Dual Stack Deployment
Dual Stack
Cisco Public
134
IPv4
DNS
Server
2001:DB8:CAFE::1
10.1.1.1
IPv6
2001:DB8:CAFE::1
BRKCRT-9344
Cisco Public
135
CE
IPv6 + IPv4
Core
PE
PE
IPv4/IPv6
Core
IPv6
IPv4
CE
IPv4
Cisco Public
136
CE
IPv6
IPv4
IPv6 + IPv4
Core
PE
PE
CE
IPv4
IPv4/IPv6
Core
IPv6
ipv6 unicast-routing
interface Ethernet0
ip address 192.168.99.1 255.255.255.0
ipv6 address 2001:db8:213:1::1/64
BRKCRT-9344
Cisco Public
137
Dual-Stack Approach
Most devices are already configured with IPv4
As IPv6 is deployed:
IPv6 software will be installed as a second Network Layer stack
IPv6 addresses will be configured on all devices
BRKCRT-9344
Cisco Public
138
IPv6 Multicast
Routing
Forwarding
Group Management
Domain Control
Interdomain Solutions
IPv4 Solution
IPv6 Solution
32-bit, Class D
PIM-DM, PIM-SM,
PIM-SSM, PIM-bidir, PIM-BSR
PIM-SM, PIM-SSM,
PIM-bidir, PIM-BSR
IGMPv1, v2, v3
MLDv1, v2
Boundary, Border
Scope Identifier
Cisco Public
140
Quality of Service
IPv6 QoS
Same architectural models as IPv4
Differentiated Services (Traffic Class field)
Integrated Services (RSVP)
Version
Traffic Class
Payload Length
Flow Label
Next Header
Hop Limit
Source Address
Destination Address
Transition
Mapping between IPv6 DSCP & IPv4 ToS or MPLS EXP
BRKCRT-9344
Cisco Public
142
BRKCRT-9344
Cisco Public
143
IPv6 Security:
Differences to IPv4
IPv6 Security
IPv4 Vulnerabilities
IPv6 Vulnerabilities
SHARED ISSUES
BRKCRT-9344
Cisco Public
145
2 years
it will take almost 2 years for this light to reach the other end of the line
This line will be 1.2 million times longer than the distance from Earth to
Sun
BRKCRT-9344
Cisco Public
146
Reconnaissance in IPv6
Public servers will still need to be DNS reachable
More information collected by Google...
BRKCRT-9344
Cisco Public
147
Source: http://lists.cluenet.de/pipermail/ipv6-ops/2010-November/004367.html
BRKCRT-9344
Cisco Public
148
BRKCRT-9344
Cisco Public
149
Destination
Attacker
FF05::1:3
Payload
2001:db8:2::50
DHCP Attack
2001:db8:1::60
2001:db8:3::70
http://www.iana.org/assignments/ipv6-multicast-addresses/
BRKCRT-9344
Cisco Public
150
Organization B
Organization A
BRKCRT-9344
Cisco Public
151
BRKCRT-9344
Cisco Public
152
BRKCRT-9344
Cisco Public
153
BRKCRT-9344
Cisco Public
154
L3 Spoofing in IPv6
uRPF Remains the Primary Tool for Protecting Against L3 Spoofing
uRPF Loose Mode
Access
Layer
IPv6
Intranet/Internet
No Route to Src Addr prefix
=> Drop
Spoofed IPv6
Source Address
Access
Layer
Spoofed IPv6
Source Address
BRKCRT-9344
IPv6
Intranet/Internet
No Route to Src Addr prefix out the
packet inbound interface => Drop
Cisco Public
155
At the edge
With an ACL blocking routing header
BRKCRT-9344
Cisco Public
156
Attempt to
Overwhelm
Destination
172.18.1.2
Cisco Public
Belgian
Schtroumpf
157
http://iana.org/assignments/ipv6-multicast-addresses/
BRKCRT-9344
Cisco Public
158
Cisco Public
159
Rogue devices
Rogue devices will be as easy to insert into an IPv6 network as in IPv4
Flooding
Flooding attacks are identical between IPv4 and IPv6
BRKCRT-9344
Cisco Public
160
DoS Tools
6tunneldos
4to6ddos
Imps6-tools
Packet forgers
Scapy6
SendIP
Packit
Spak6
Complete tool
http://www.thc.org/thc-ipv6/
BRKCRT-9344
Cisco Public
161
/32
/48
/64
Interface ID
2001
Cisco Public
162
BRKCRT-9344
Cisco Public
163
Tunnels
Bypass firewalls (protocol 41 or UDP)
Can cause asymmetric traffic (hence breaking stateful firewalls)
BRKCRT-9344
Cisco Public
164
Host security controls should block and inspect traffic from both IP versions
Host intrusion prevention, personal firewalls, VPN
clients, etc.
IPv6 HDR
IPv6 Exploit
Cisco Public
165
Inject RA
IPv6
IPv4 Internet
IPv4-only segment
Dualstack
Server
BRKCRT-9344
Cisco Public
Client
166
BRKCRT-9344
Cisco Public
167
IPv4
IPv6
Public IPv4
Internet
IPv6 Network
IPv6 Network
IPv6 in IPv4
Tunnel
Server A
BRKCRT-9344
Tunnel
Termination
Tunnel
Termination
Cisco Public
Server B
168
IPv6 Security:
Access-List Filtering
Known extension headers (HbH, AH, RH, MH, destination, fragment) are scanned
until:
Layer 4 header found
Unknown extension header is found
Cat 6K (12.2(33)SXI4)
BRKCRT-9344
Cisco Public
170
Cisco Public
171
IPv6 Internet
interface Serial 0
ipv6 traffic-filter MY_ACL in
Serial 0
Prefix: 2001:db8:2c80:1000::/64
BRKCRT-9344
Cisco Public
172
BRKCRT-9344
Cisco Public
173
Cisco Public
174
Cisco Public
175
IPv6 Security:
Prefix-List Filtering
BRKCRT-9344
Cisco Public
177
OSPF
IS-IS
EIGRP
BGP
For all intents and purposes, IPv6 IGPs are similar to their IPv4 counterparts
IPv6 IGPs have additional features that could lead to new designs
BRKCRT-9344
Cisco Public
179
Routing Protocols
Static Routes
Multitopology IS-IS
Unicast
Multicast
BGP
Authentication
BGP peering to IPv6 endpoints
IPv6 routes over IPv4 peering
IPv6 Prefix Limits
Interface counters
Graceful Restart and NSR
Routing Policy
IPv6 multicast scoping
IPv6 address family
IPv6 prefixes
IPv6 route destination address
BFD
RIPng
OSPFv3
IPv6 EH authentication
Overloading
BFD (9.3)
IS-IS
Authentication
BRKCRT-9344
Cisco Public
180
Routing Protocols
IPv6 PIM
MPLS Protocols
IPv6 Tunneling over MPLS LSPs
RSVP-TE for IPv6 (not scheduled
yet)
LDP for IPv6 (not scheduled yet)
MPLS VPNs
6PE, 6VPE
VRF Table-label
L3VPN Multicast
NG MVPN: IPv6 multicast (2H2009)
BRKCRT-9344
Cisco Public
181
BRKCRT-9344
Cisco Public
183
Static Options
All static parameters are optional
Parameters are like any other static route
R1(config)#ipv6 route 2300:0106:aa23::/48 fa0/0 ?
<1-254>
Administrative distance
X:X:X:X::X
multicast
nexthop-vrf
tag
Tag value
unicast
<cr>
BRKCRT-9344
Cisco Public
184
Routing Policy
Configured in the same way as routing policy for IPv4
Similar match conditions and actions
Create policy first
then apply to inteface (PBR), neighbor (BGP), or routing protocol
BRKCRT-9344
Cisco Public
185
OSPFv3
Changes from OSPFv2
BRKCRT-9344
Cisco Public
187
OSPFv3
Per Link Processing
IPv6 uses the term link instead of network or subnet to indicate communication
Interfaces connect to links
Adjacencies are formed on link local addresses
BRKCRT-9344
Cisco Public
188
OSPFv3
Flooding Scope
Each LSA now contains two bits indicating the flooding scope
AS scope, LSA is flooded throughout the AS
Area scope, LSA is flooded only within an area
Link-local scope, LSA is flooded only on the local link
BRKCRT-9344
Cisco Public
189
OSPFv3
Flooding Scope
LSA Name
LS Type code
Flooding scope
Router LSA
0x2001
Area scope
Network LSA
0x2002
Area scope
Inter-Area-Prefix-LSA
0x2003
Area scope
Inter-Area-Router-LSA
0x2004
Area scope
AS-External-LSA
0x4005
AS scope
Group-membership-LSA
0x2006
Area scope
Type-7-LSA
0x2007
Area scope
Link-LSA
0x0008
Link-local scope
Intra-Area-Prefix-LSA
0x2009
Area scope
BRKCRT-9344
Cisco Public
190
OSPFv3
Link LSA
Announces the IPv6 link local address to all the router(s) attached to the link
This is needed for the next hop calculation
BRKCRT-9344
Cisco Public
191
OSPFv3
Link LSA
Generated for every link that has two or more routers
Not be originated for virtual links
May be suppressed
BRKCRT-9344
Cisco Public
192
OSPFv3
Handling Unknown LSA Types
Each LSA now contains an unknown LSA bit
0: Treat this LSA as a link local
1: Store and flood this LSA even if you dont understand it
BRKCRT-9344
Cisco Public
193
OSPFv3
Virtual Link Requirements
At least one global/unique local IPv6 address in the transit area
OSPFv3 normally sends LSAs with a link local source address
This wont work over a virtual link the packet needs to be forwarded through the intervening area
BRKCRT-9344
Cisco Public
194
OSPFv3
Authentication
OSPFv3 currently only supports IPsec for authentication
Group keying is painful for IPsec
There is current work in GDOI and other spaces to make group keying work better for this space
There is current work in the OSPF working group to allow HMAC-SHA and other forms
of in packet authentication
BRKCRT-9344
Cisco Public
195
OSPFv3
Configuration & Show Example
Router1#
interface POS1/1
ipv6 address 2001:410:FFFF:1::1/64
ipv6 enable
ipv6 ospf 100 area 0
Area 1
interface POS2/0
ipv6 address 2001:B00:FFFF:1::2/64
ipv6 enable
ipv6 ospf 100 area 1
B
POS 3/0
2001:b00:ffff:1::1/64
2001:b00:ffff:1::2/64
POS 2/0
POS 1/1
2001:410:ffff:1::1/64
Area 0
Cisco Public
196
OSPFv3
BRKCRT-9344
Area 1
POS 3/0
2001:b00:ffff:1::1/64
2001:b00:ffff:1::2/64
POS 2/0
POS 1/1
2001:410:ffff:1::1/64
Area 0
Cisco Public
197
OSPFv3
POS 3/0
2001:b00:ffff:1::1/64
2001:b00:ffff:1::2/64
POS 2/0
POS 1/1
2001:410:ffff:1::1/64
Area 0
BRKCRT-9344
Cisco Public
198
OSPFv3
BRKCRT-9344
POS 3/0
2001:b00:ffff:1::1/64
2001:b00:ffff:1::2/64
POS 2/0
POS 1/1
2001:410:ffff:1::1/64
Area 0
Cisco Public
199
OSPFv3
Routing Considerations
New Routing Protocol
New training, show commands, troubleshooting procedures
Must run dual stack in the control plane
BRKCRT-9344
Cisco Public
200
Differences to OSPFv2 (1 of 2)
Differences:
Protocol processing per link, not per subnet
Removal of addressing semantics
Router and network LSAs have no addressing
Uses intra-area-prefix LSA
BRKCRT-9344
Cisco Public
201
Differences to OSPFv2 (2 of 2)
Differences (contd.):
Use of link-local addresses
Used to originate packets
Authentication removed
Done at the IP (IPv6) layer
BRKCRT-9344
Cisco Public
202
S2
S1
LSA Function
LSA Function
LS type
0x2001
Router LSA
0x2002
Network LSA
0x2003
Inter-Area-Prefix LSA
0x2004
Inter-Area-Router LSA
Type 4 ASBR-Summary
0x4005
AS-External-LSA
0x2006
Type 6 Multicast
0x2007
Type-7 LSA
0x0008
Link LSA
None
0x2009
Intra-Area-Prefix LSA
Types 1 and 2
BRKCRT-9344
Description
Like OSPFv2
Cisco Public
203
Link LSA
BRKCRT-9344
Cisco Public
204
Area 1
Area 0
Inter-Area-Prefix
Inter-Area-Router
Router LSA
Network LSA
Intra-Area-Prefix LSA
BRKCRT-9344
ABR
Cisco Public
205
Area 0
Area 1
AS External LSA
ASBR
Cisco Public
RIP
206
Same As OSPFv2
Similarities:
BRKCRT-9344
Cisco Public
207
Enabled on an interface
R1(config-if)# ipv6 ospf (#) area-id (#)
R1(config-if)# ipv6 ospf (#) neighbor (addr)
BRKCRT-9344
Cisco Public
208
BRKCRT-9344
Cisco Public
209
BRKCRT-9344
Cisco Public
210
Router ID Selection
Router ID selection:
IPv6 networks preserve the 32-bit router ID
This is not an IPv4 address, it just looks like one!
You can set RID manually under routing-options, although an existing IPv4 address
can be used
The Junos OS uses the first non-127/8 address it finds as the RID
lo0 is the first interface activated, so a non-127/8 configured here serves as the RID
If the Junos software does not find a suitable address on lo0, it examines the next interface
activated (normally fxp0)
IPv6 functionality should not depend on another protocol being configured, so set RID
manually!
BRKCRT-9344
Cisco Public
211
MP-BGP Basics
Si
AS 101
Si
Peering
Si
AS 201
Si
Si
AS 301
Path Vector Protocol
Carries sequence of AS numbers indicating path
Cisco Public
213
Router ID
When no IPv4 is configured, an explicit bgp router-id needs to be configured
This is needed as a BGP Identifier, this is used as a tie breaker, and is send within the
OPEN message
BRKCRT-9344
Cisco Public
214
Router A
router bgp 1
no bgp default ipv4 unicast
bgp router-id 1.1.1.1
neighbor 2001:db8:ffff:2::2 remote-as 2
address-family ipv6
neighbor 2001:db8:ffff:2::2 activate
network 2003:3:2::/64
network 2003:3:3::/64
:1
2001:db8:ffff:2/64
:2
AS 2
B
BRKCRT-9344
Cisco Public
215
To make BGP-4 available for other network layer protocols, RFC 2858
(obsoletes RFC 2283) defines multi-protocol extensions for BGP-4
BRKCRT-9344
Cisco Public
216
BRKCRT-9344
Cisco Public
217
AS1 AS2
BRKCRT-9344
Cisco Public
218
BGP Overview
Path-vector EGP that uses multiple path attributes to select the active route
Originally designed for IPv4
Extended to carry additional information
Multicast
VPNs
IPv6
MBGP specifications
Multiprotocol extensions for BGP-4
RFC 4760January 2007
BRKCRT-9344
Cisco Public
219
IPv6-specific extensions:
Scoped addresses: NEXT_HOP contains a global IPv6 address and potentially a linklocal address (only when there is link-local reachability with the peer)
NEXT_HOP and NLRI are expressed as IPv6 addresses and prefixes in the
multiprotocol attributes
BRKCRT-9344
Cisco Public
220
BRKCRT-9344
Cisco Public
221
BRKCRT-9344
Cisco Public
222
[Connections]
Neighbor 10.1.1.4 remote-as 1001
Neighbor 10.1.1.4 update-source loopback 0
[address-family ipv4]
Neighbor 10.1.1.4 route-map Bob in
Neighbor 10.1.1.4 activate
Neighbor 10.1.1.4 send-community
Network 10.1.100.0 mask 255.255.255.0
Network 10.1.101.0 mask 255.255.255.0
Redistribute static
BRKCRT-9344
Cisco Public
223
BRKCRT-9344
Cisco Public
224
MBGP Configuration
Router1
Router2
AS 65001
AS 65002
3ffe:b00:c18:2:1::F
3ffe:b00:c18:2:1::1
Router1#
interface FastEthernet0/0
ipv6 address 3FFE:B00:C18:2:1::F/64
router bgp 65001
no bgp default ipv4-unicast
neighbor 3FFE:B00:C18:2:1::1 remote-as 65002
address-family ipv6
neighbor 3FFE:B00:C18:2:1::1 activate
neighbor 3FFE:B00:C18:2:1::1 prefix-list bgp65002in in
neighbor 3FFE:B00:C18:2:1::1 prefix-list bgp65002out out
exit-address-family
BRKCRT-9344
Cisco Public
225
3FFE:0B00:0001::/48
3FFE:0300::/32
3FFE:0B00::/24
Router2
3ffe:b00:c18:2:1::1
Router1#
router bgp 65001
no bgp default ipv4-unicast
neighbor 3FFE:B00:C18:2:1::1 remote-as 65002
address-family ipv6
neighbor 3FFE:B00:C18:2:1::1 activate
neighbor 3FFE:B00:C18:2:1::1 prefix-list bgp65002in in
neighbor 3FFE:B00:C18:2:1::1 prefix-list bgp65002out out
network 3FFE:B00::/24
exit-address-family
ipv6 prefix-list bgp65002in seq 5 permit 3FFE::/16 le 24
ipv6 prefix-list bgp65002out seq 5 permit 3FFE::/16 le 24
BRKCRT-9344
Cisco Public
226
3ffe:b00:c18:2:1::1
3ffe:b00:c18:2:1::f
AS
router bgp 65001
no bgp default ipv4-unicast
neighbor 3FFE:B00:C18:2:1::1 remote-as 65002
neighbor 3FFE:B00:C18:2:1::2 remote-as 65003
address-family ipv6
neighbor 3FFE:B00:C18:2:1::1 activate
neighbor 3FFE:B00:C18:2:1::2 activate
neighbor 3FFE:B00:C18:2:1::1 prefix-list Legal in
neighbor 3FFE:B00:C18:2:1::2 prefix-list Legal in
network 3FFE:B00::/24
exit-address-family
ipv6 prefix-list
ipv6 prefix-list
ipv6 prefix-list
ipv6 prefix-list
BRKCRT-9344
AS 65002
65001
AS 65003
3ffe:b00:c18:2:1::2
Cisco Public
227
Appendices:
Additional Pseudo-Useful, but not Required
Information
Fa0/0
Fa0/1
IPv4
NAT-PT
D
172.18.30.1
192.168.199.1
3000:b00:ffff:1::1
nat-pt#
ipv6 unicast-routing
interface FastEthernet0/1
ip address 192.168.199.1 255.255.255.0
ipv6 nat
172.18.30.1
192.168.199.2
interface FastEthernet0/0
ipv6 address 3000:b00:ffff:1::/64 eui-64
no ip address
ipv6 nat
ipv6 nat prefix 3ffe:b00:ffff:ffff::/96
ipv6 nat v4v6 source 172.18.30.1 3000:b00:ffff:ffff::a
ipv6 nat v6v4 source 3000:b00:ffff:1::1 192.168.199.2
BRKCRT-9344
Cisco Public
230
Fa0/0
IPv6
network
3000:b00:ffff:1::1
IPv4
NAT-PT
DNS
D
172.18.31.1
192.168.199.1
ipv6 unicast-routing
interface FastEthernet0/1
ip address 192.168.199.1 255.255.255.0
ipv6 nat
interface FastEthernet0/0
ipv6 address 3000:b00:ffff:1::/64 eui-64
no ip address
ipv6 nat
ipv6 nat prefix 3000:b00:ffff:ffff::/96
ipv6 nat translation timeout 3600
ipv6 prefix-list v6-list permit 3000:b00:ffff::/48
ipv6 nat v6v4 pool v4-pool 192.168.199.50 192.168.199.100 prefix-length 24
ipv6 nat v6v4 source list v6-list pool v4-pool
ipv6 nat v4v6 source 172.18.31.1 3000:b00:ffff:ffff::53
BRKCRT-9344
Cisco Public
231
BRKCRT-9344
Cisco Public
232
Recommended Reading
Continue your Networkers at Cisco Live
learning experience with further reading from
Cisco Press
Check the Recommended Reading flyer for
suggested books
BRKCRT-9344
Cisco Public
233
Final Thoughts
Get hands-on experience with the Walk-in Labs located in World of Solutions,
booth 1042
Come see demos of many key solutions and products in the main Cisco booth
2924
Visit www.ciscoLive365.com after the event for updated PDFs, on-demand
session videos, networking, and more!
Follow Cisco Live! using social media:
Facebook: https://www.facebook.com/ciscoliveus
Twitter: https://twitter.com/#!/CiscoLive
LinkedIn Group: http://linkd.in/CiscoLI
BRKCRT-9344
Cisco Public
234
Cisco Public
235