bogdan doinea & eric kwok configuring ospfv3 technical manager cisco networking academy

17
Bogdan Doinea & Eric Kwok Configuring OSPFv3 Technical Manager Cisco Networking Academy

Upload: alexys-allan

Post on 14-Dec-2015

225 views

Category:

Documents


2 download

TRANSCRIPT

Bogdan Doinea & Eric Kwok

Configuring OSPFv3

Technical Manager

Cisco Networking Academy

© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2

What is OSPFv3?

Neighbor Table

Topology Table

Routing Table

Neighbor Table

Topology Table

Routing Table

Neighbor Table

Topology Table

Routing Table

Neighbor Table

Topology Table

Routing Table

IPv4

IPv6

• With the OPSFv3 Address Families features, the protocol supports both IPv4 and IPv6

© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3

OSPFv2 vs. OSPFv3 - SimilaritiesSimilarities 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 4

OSPFv2 vs. OSPFv3 - DifferencesDifferences 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 link-local 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 5

Difference in LSAsOSPFv2 OSPFv3

Router and Network LSAs contain addressing information

1. Router LSA – describe directly-attached networks in the area

2. Network LSA – generated by DR to describe the neighbors connected to the segment

Neither LSA 1 or 2 contain any prefix or address information!

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

© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6

Link-Local Addresses

• The source address is always the link-local address of the router

• The destination is either link-local or IPv6 multicast

Neighbor Table

Topology Table

Routing Table

Neighbor Table

Topology Table

Routing Table

Link-Local Address Link-Local Address

© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7

Quiz – OSPFv2 vs v3• 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 OSPF v3 Both protocols

© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8

Quiz – OSPFv2 vs v3• 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 OSPF v3 Both protocols

© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9

Configuring OSPFv3Basic 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 10

Verifying OSPF ConfigurationBasic IPv6 Routing#show ipv6 route ospf

#show ipv6 protocol

© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11

Verifying OSPF ConfigurationBasic OSPF Information#show ipv6 ospf

#show ipv6 ospf neighbor

© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12

Verifying OSPF ConfigurationBasic OSPF Information#show ipv6 ospf database

#show ipv6 ospf interface

© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13

Debugging OSPFv3

#debug ipv6 ospf adj#debug ipv6 ospf event

© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14

Live Demo

A

B

C

A::

B::

C::Area 0Prefix Length /64

AC::

AB

::

BC::

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

RID: 1.1.1.1

RID: 2.2.2.2

RID: 3.3.3.3

© 2012 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15

Key Highlight• Ipv6 unicast must be enabled for OSPFv3

C(config)#ipv6 router ospf 1% 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 presentedC(config-if)#ipv6 ospf 1 area 0%OSPFv3-4-NORTRID: OSPFv3 process 1 could not pick a router-id,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 16

ReferenceImplementing OSPF for IPv6

http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-ospf.html

Implementing IPsec in IPv6 Security

http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-ipsec.html