Professional Documents
Culture Documents
Cisco Confidential 11
• Overview
• Static Routing
• Dynamic Routing
• RIPng
• OSPFv3
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3
• Main motivation for IPv6 is lack of IPv4 address space
• IPv4 uses 32-bits
2^32 = 4,294,967,296 max addresses
• IPv6 uses 128-bits
2^128 = 34,028,236,6 92,938,463,463,374,607,431,770,000,000+
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4
• IPv4 Dotted Decimal
1.2.3.4
Each place denotes 1 byte
• IPv6 Hexadecimal
XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX
Two characters = one byte
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5
• 2.4 Address Type Representation
• The specific type of an IPv6 address is indicated by the leading bits in the address. The variable-
length field comprising these leading bits is called the Format Prefix (FP). The initial allocation of
these prefixes is as follows:
• Allocation Prefix Fraction of
(binary) Address Space
• ----------------------------------- -------- -------------
• Aggregatable Global Unicast Addresses 001 1/8
• Link-Local Unicast Addresses 1111 1110 10 1/1024
• Site-Local Unicast Addresses 1111 1110 11 1/1024
• Multicast Addresses 1111 1111 1/256
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6
• • Four main address types
• Global Unicast
2000… – 3FFF…
• Unique Local
FC00…
Deprecates Site Local (FEC0)
• Link Local
FE80…
• Multicast
FF…
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7
• IPv6 host addresses are generated from interface MAC address
• MAC address is 48-bits
• IPv6 host address is 64-bits
• Extra 16 bits derived as follows:
MAC 1234.5678.9012
Invert 7th most significant bit
12 = 0001 0010
0001 0000
1034.5678.9012
• Insert “FFFE” in middle
1034:56FF:FE78:9012
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8
• ICMPv6 ND
Replaces IPv4 ARP
• NS – Neighbor Solicitation
Ask for information about neighbor
• NA – Neighbor Advertisement
Advertise yourself to other neighbors
• RS – Router Solicitation
Ask for information about local routers
• RA – Router Advertisement
Advertise yourself as an active router
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9
• IPv6 unicast routing off by default
ipv6 unicast-routing
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11
• Similar to IPv4
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12
Router 2
IPv6 Internet
:e LAN1: 2001:db8:c18:1::/64
:a Ethernet0
Router 1
:a Ethernet1
LAN2: 2001:db8:c18:2::/64
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14
• Routing in IPv6 is unchanged from IPv4
Still has two families of routing protocols: IGP and EGP
Still uses the longest-prefix match routing algorithm
• IGP
RIPng (RFC 2080)
Cisco EIGRP for IPv6
Integrated IS-IS for IPv6 (RFC 5308)
OSPFv3 (RFC 5340)
• EGP
MP-BGP4 (RFC 4760) and Using MP-BGP for IPv6 (RFC 2545)
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15
• Dynamic routing protocols require a router-id
Router-id is a 32 bit integer in dotted decimal notation (a.b.c.d)
Auto-generated from IPv4 loopback interface address if configured,
Otherwise highest IPv4 address on the router
Many networks will deploy IPv6 dual stack – so router-id will be automatically created
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 16
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 17
• Referred to as RIP Next Generation, distance vector protocol
• ISPs do not use RIP in any form unless there is absolutely no alternative
• RIPng was used in the early days of the IPv6 test network
Superior routing protocols such as ISIS, OSPF and BGP rapidly replaced RIPng
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 18
Field’s Name kept from IPv4 to IPv6
Legend
Fields not kept in IPv6
Name and/or position changed in IPv6
• Similar to RIPv2 New Field in IPv6
Distance-vector, Hop limit of 15, split-horizon, All RIP routers is FF02::9, UDP port (521)
IPv4 Prefix
Routing Table Entry (RTE)
Subnet Mask IPv6 prefix
for prefixes (1 .. N) sharing
Next Hop same next hop
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 19
::/0 Router 2
2001:db8:c18:1:260:3eff:fe47:1530
Default route from R2
Ethernet0 LAN1: 2001:db8:c18:1::/64
Ethernet0 Router2#config term
ipv6 router rip RT0
Router 1
Ethernet1 interface Ethernet0
ipv6 address 2001:db8:c18:1::/64 eui-64
LAN2: 2001:db8:c18:2::/64 ipv6 rip RT0 enable
ipv6 rip RT0 default-information originate
Router1#config term
ipv6 router rip RT0 Enable RIP routing
!
interface Ethernet0 Router2# debug ipv6 rip Show RIP update
ipv6 address 2001:db8:c18:1::/64 eui-64 RIPng: Sending multicast update on Ethernet0 for RT0
ipv6 rip RT0 enable src=FE80::260:3eff:fe47:1530 Use link-local as source
! dst=FF02::9 (Ethernet0) Destination is All RIPng routers
interface Ethernet1 sport=521, dport=521, length=32
ipv6 address 2001:db8:c18:2::/64 eui-64 command=2, version=1, mbz=0, #rte=1
ipv6 rip RT0 enable tag=0, metric=1, prefix=::/0
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 20
R1# show ipv6 route
IPv6 Routing Table - 10 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
D - EIGRP, EX - EIGRP external
C 2001:DB8:1::/64 [0/0]
via ::, Loopback1
L 2001:DB8:1:0:A8BB:CCFF:FE00:100/128 [0/0]
via ::, Loopback1
R 2001:DB8:2::/64 [120/2] Note all RIP next hops are link-local addresses (FE80::)
via FE80::A8BB:CCFF:FE00:200, Serial2/0
R 2001:DB8:3::/64 [120/3]
via FE80::A8BB:CCFF:FE00:200, Serial2/0
C 2001:DB8:12::/64 [0/0]
via ::, Serial2/0
L 2001:DB8:12:0:A8BB:CCFF:FE00:100/128 [0/0]
via ::, Serial2/0
R 2001:DB8:23::/64 [120/2]
via FE80::A8BB:CCFF:FE00:200, Serial2/0
L FF00::/8 [0/0]
via ::, Null0
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 21
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 22
• Three new TLVs:
0X0401 - Internal Prefix
0X0402 - External Prefix
0X0403 - Unused
• Hello messages use the link-local address as the src and dst of FF02::A (all EIGRP
routers).
Neighbors do not have to share the same global prefix (with the exception of explicitly specified neighbors)
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 23
Router 2 2001:db8:c18:1:260:3eff:fe47:1530
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 24
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 25
• OSPFv3 is OSPF for IPv6 (RFC 5340)
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 26
• OSPFv3 has same 5 packet types some fields have been changed
• OSPFv3 packets have a 16 byte header verses the 24 byte header in OSPFv2
Packet Type Description
1 Hello
Field’s Name kept from IPv4 to IPv6
Legend
2 Database description
Fields not kept in IPv6
3 Link state request
Name and/or position changed in IPv6
4 Link state update
New Field in IPv6
5 Link state acknowledgement
OSPFv2 OSPFv3
Version Type Packet Length Version Type Packet Length
Router ID Router ID
Area ID Area ID
Authentication
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 27
• Uses link local addresses
To identify the OSPFv3 adjacency neighbors
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 28
• Multicast Addresses
FF02::5 – Represents all SPF routers on the link local scope, Equivalent to 224.0.0.5 in OSPFv2
FF02::6 – Represents all DR routers on the link local scope, Equivalent to 224.0.0.6 in OSPFv2
• Security
OSPFv3 uses IPv6 AH & ESP extension headers instead of variety of mechanisms defined in OSPFv2
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 29
LSA Description LSA Code LSA Type Bits Set=1
U Bit LSA Handling
Router LSA 1 0x2001 S1
0 Treat the LSA as if it had link-local flooding scope
Network LSA 2 0x2002 S1 1 Store and flood the LSA as if the type is understood
Inter-Area-Prefix-LSA 3 0x2003 S1
Inter-Area-Router-LSA 4 0x2004 S1
S2 S1 Flooding Scope
AS-External-LSA 5 0x4005 S2 0 0 Link-Local Scoping - Flooded only on originating link
0 1 Area Scoping - Flooded only in originating area
Deprecated 6 0x2006 S1
1 0 AS Scoping - Flooded throughout AS
NSSA-LSA 7 0x2007 S1 1 1 Reserved
Link-LSA 8 0x0008
Intra-Area-Prefix-LSA 9 0x2009 S1
LSA Type Format
1Bit 1Bit 1Bit 13 Bits
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 30
Router1#
interface POS1/1
Area 1 ipv6 address 2001:410:FFFF:1::1/64
ipv6 ospf 100 area 0 Enables IPv6 facing Area 0
!
interface POS2/0
Interlink connection (could use link-local)
Router 2 ipv6 address 2001:db8:FFFF:1::2/64
ipv6 ospf 100 area 0
POS3/0 2001:db8:ffff:1::1/64 !
ipv6 router ospf 100
router-id 10.1.1.3
POS 2/0 2001:db8:ffff:1::2/64
Router2#
interface POS3/0
Router 1 ipv6 address 2001:db8:FFFF:1::1/64 Interlink connection (could use link-local)
POS1/1 ipv6 ospf 100 area 0
!
ipv6 router ospf 100
router-id 10.1.1.4 32 bit ID specified in dotted decimal notation
Area 0
2001:410:ffff:1::1/64
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 31
Router1#
interface POS1/1
Area 1 ipv6 address 2001:410:FFFF:1::1/64
ospfv3 100 area 0 ipv6 Enables IPv6 facing Area 0
!
interface POS2/0
Interlink connection (could use link-local)
Router 2 ipv6 address 2001:db8:FFFF:1::2/64
ospfv3 100 area 1 ipv6
POS3/0 2001:db8:ffff:1::1/64 !
router ospfv3 100
router-id 10.1.1.3
POS 2/0 2001:db8:ffff:1::2/64
Router2#
interface POS3/0
Router 1 ipv6 address 2001:db8:FFFF:1::1/64 Interlink connection (could use link-local)
POS1/1 ospfv3 100 area 1 ipv6
!
router ospfv3 100
router-id 10.1.1.4 32 bit ID specified in dotted decimal notation
Area 0
2001:410:ffff:1::1/64
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 32