Configuring OSPFv3 Bogdan Doinea & Eric Kwok Technical Manager Cisco Networking Academy Neighbor Table Topology Table Routing Table Neighbor Table Topology Table Routing Table Neighbor Table Topology Table Routing Table IPv4 IPv6 Neighbor Table Topology Table Routing Table • With the OPSFv3 Address Families features, the protocol supports both IPv4 and IPv6 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2 Similarities between OSPFv2 and OSPFv3 Link-State Yes Routing Algorithm SPF Metric Cost Areas Same multi-area hierarchy and relationship Packet Types Hello, DBD, LSR, LSU, LSAck Neighbor Discovery Same states of transition in building an adjacency DR and BDR Function and election process is the same Router ID 32-bit router ID: determined by the same process in both protocols © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3 Differences between OSPFv2 and OSPFv3 Advertises IPv4 Networks IPv6 prefixes Source Address IPv4 global source address IPv6 link-local address Destination Address • Neighbor IPv4 addresses • 224.0.0.5/6 • Neighbor IPv6 linklocal addresses • FF02::5/6 Advertise Networks Configured using the network command in router mode Configured using the ipv6 ospf process-id area-id command. IP Unicast Routing IPv4 unicast routing is enabled IPv6 unicast-routing not enabled by default Authentication Plaint text and MD5 Based on IPSec in IPv6 © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4 OSPFv2 OSPFv3 Router and Network LSAs contain addressing information Neither LSA 1 or 2 contain any prefix or address information! 1. Router LSA – describe directly-attached networks in the area 1. Router LSA – describe the state&cost of the router’s interfaces in the area 2. Network LSA – generated by the DR to describe all the routers connected to the segment 3. OSPFv3 Introduces 2 new LSAs • Link LSA • Intra-area Prefix LSA 2. Network LSA – generated by DR to describe the neighbors connected to the segment © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5 Neighbor Table Topology Table Routing Table Link-Local Address Neighbor Table Topology Table Routing Table Link-Local Address • The source address is always the link-local address of the router • The destination is either link-local or IPv6 multicast © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6 • In which of the below 3 options is: unicast routing enabled by default? IPSec used for authentication? the protocol a Link-State Routing Protocol? OSPF v2 © 2012 Cisco and/or its affiliates. All rights reserved. OSPF v3 Both protocols Cisco Confidential 7 • In which of the below 3 does the protocol: use cost as a metric? elects a DR and BDR? uses FF02::6 for DR and BDR multicasts? uses 224.0.0.6 for DR and BDR multicasts? OSPF v2 © 2012 Cisco and/or its affiliates. All rights reserved. OSPF v3 Both protocols Cisco Confidential 8 Basic Configuration (config)# ipv6 router ospf process-id (config-rtr)# router-id 1.1.1.1 (config-rtr)# auto-cost reference-bandwidth 1000 (config)# interface fa0/0 (config-if)# ipv6 ospf 1 area 0 Reset OSPF process #clear ipv6 ospf process © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9 #show ipv6 route ospf #show ipv6 protocol © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10 #show ipv6 ospf #show ipv6 ospf neighbor © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11 #show ipv6 ospf database #show ipv6 ospf interface © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12 #debug ipv6 ospf adj #debug ipv6 ospf event © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13 A:: RID: 1.1.1.1 AB:: A Area 0 Prefix Length /64 C C:: RID: 3.3.3.3 B RID: 2.2.2.2 B:: Command: show ipv6 ospf neighbor show ipv6 ospf interface show ipv6 ospf database show ipv6 route ospf show ipv6 protocol debug ipv6 ospf adj debug ipv6 ospf event © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14 • Ipv6 unicast must be enabled for OSPFv3 (config)#ipv6 router ospf 1 C % IPv6 routing not enabled • OSPFv3 router-id follows the same rule as OSPFv2 (IPv4). You might need to configure it manually if not IPv4 address presented (config-if)#ipv6 ospf 1 area 0 C %OSPFv3-4-NORTRID: OSPFv3 process 1 could not pick a routerid,please configure manually • OSPFv3 is enabled by the interface sub command not the network statement • The next-hop address is link-local address, not global unicast address © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15 Implementing OSPF for IPv6 http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6ospf.html Implementing IPsec in IPv6 Security http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6ipsec.html © 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 16
© Copyright 2026 Paperzz