Presentation is loading. Please wait.

Presentation is loading. Please wait.

13: OSPFv3 Rick Graziani Cabrillo College Rick.Graziani@cabrillo.edu.

Similar presentations


Presentation on theme: "13: OSPFv3 Rick Graziani Cabrillo College Rick.Graziani@cabrillo.edu."— Presentation transcript:

1 13: OSPFv3 Rick Graziani Cabrillo College

2 For more information please check out my Cisco Press book and video series:
IPv6 Fundamentals: A Straightforward Approach to Understanding IPv6 By Rick Graziani ISBN-10: IPv6 Fundamentals LiveLessons: A Straightforward Approach to Understanding IPv6 By Rick Graziani ISBN-10:

3 13.1: Protocol and Concepts

4 IPv4 and IPv6 Routing Protocols
Exterior Gateway Protocols Interior Gateway Protocols Distance Vector Link State Path Vector Distance Vector Routing Protocols Link State Routing Protocols Path Vector RIPv2 EIGRP OSPFv2 IS-IS BGP-4 RIPng EIGRP for IPv6 OSPFv3 * IS-IS for IPv6 BGP-4 for IPv6 or MP-BGP IPv4 IPv6 * OSPFv3 supports routing both IPv4 and IPv6. The basic operations and algorithms you learned about OSPFv2 for IPv4 also apply to OSPFv3 for IPv6. BGP-4 Multiprotocol Extensions for IPv6 There are some changes, but the basics remain the same.

5 Comparing Flavors of OSPF
OSPFv2 for IPv4 Traditional OSPFv3 for IPv6 OSPFv3 Address Families OSPF version OSPFv2 OSPFv3 Advertised routes IPv4 networks IPv6 prefixes IPv4 networks and IPv6 prefixes Link-state Yes Metric Cost (Cisco: BW) Support multiple areas Router-ID 32-bit DR and BDR “Traditional OSPFv3”

6 OSPFv2 for IPv4 Traditional OSPFv3 for IPv6 OSPFv3 Address Families Layer 3 encapsulation IPv4 IPv6 Source address IPv4 address IPv6 link-local address Destination - All OSPF Routers FF02::5 Destination – ALL DR/BDR FF02::6 Destination - Neighbor IPv6 Unicast Routing N/A (IP unicast routing default) Required Required (Even if only using IPv4 address family) Authentication Plain text and MD5 IPsec LSAs OSPFv3 renames two LSA types and defines two additional LSA types that do not exist in OSPFv2.

7 Comparing OSPFv2 and OSPFv3 LSAs
Type Name LS Type Code 1 Router LSA 0x2001 2 Network LSA 0x2002 3 Network Summary LSA 0x2003 Inter-Area Prefix LSA 4 ASBR Summary LSA 0x2004 Inter-Area Router LSA 5 AS-External LSA 0x4005 6 Group Membership LSA 0x2006 7 NSSA External LSA 0x2007 Type-7 LSA 0x2008 Link LSA 0x2009 Intra-Area Prefix LSA Note: Intra-Area Prefix LSA is a new LSA in OSPFv3 and used in order to advertise one or more IPv6 prefixes. In OSPFv2 the intera-area prefix information was carried in the router and network LSA's (Type 1 & 2). OSPFv3 does also change the info that is carried in type 1 and type 2 LSAs. There is no IPv6 specific info in them which is different from OSPFv2 The LS type of an AS-external-LSA is set to the value 0x AS- external-LSAs have AS flooding scope. Link LSAs (Type 8)--Have local-link flooding scope and are never flooded beyond the link with which they are associated. Link LSAs provide the link-local address of the router to all other routers attached to the link, inform other routers attached to the link of a list of prefixes to associate with the link, and allow the router to assert a collection of Options bits to associate with the network LSA that will be originated for the link. Intra-Area-Prefix LSAs (Type 9)--A router can originate multiple intra-area-prefix LSAs for each router or transit network, each with a unique link-state ID. The link-state ID for each intra-area-prefix LSA describes its association to either the router LSA or the network LSA and contains prefixes for stub and transit networks.

8 13.2: OSPFv2 and Traditional OSPFv3

9 Comparing OSPFv2 and Traditional OSPFv3
IPv4 OSPFv2 OSPFv2 IPv4 Neighbor Table LSDB Routing Table Neighbor Table LSDB Routing Table IPv4 Network R1 R2 IPv6 Network OSPFv3 OSPFv3 IPv6 OSPFv3 OSPFv3 IPv6 R2 Neighbor Table LSDB Routing Table Neighbor Table LSDB Routing Table

10 Dual-stack Topology Area 0 ISP R1 R2 R3
2001:DB8:CAFE:1::/64 Dual-stack Topology Area 0 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R2# show ip interface brief Interface IP-Address OK? Method Status Protocol Serial0/0/ YES manual up up Serial0/0/ YES manual up up R2# show ipv6 interface brief Serial0/0/ [up/up] FE80::2 2001:DB8:CAFE:2::2 Serial0/0/ [up/up] 2001:DB8:CAFE:3::1 Note: Although perhaps uncommon, serial links are used in this topology to more easily differentiate from LANs. Same link-local address Statically configured P = OSPF passive interface R3 – not passive Using IOS 15.4 on 1941s /30 typical for point-to-point serial

11 OSPFv2 Configuration and Routes
2001:DB8:CAFE:1::/64 OSPFv2 Configuration and Routes Area 0 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 Static (Default) S0/0/0 :1/.1 S0/0/1 :1/.1 ISP Default R1 R2 R3 /24 /24 /24 /24 R1 ip route router ospf 1 router-id passive-interface GigabitEthernet0/0 network area 0 network area 0 default-information originate R2 router ospf 1 router-id interface Serial0/0/0 ip ospf 1 area 0 interface Serial0/0/1 R3 router ospf 1 router-id passive-interface GigabitEth0/0 interface Gig 0/0 ip ospf 1 area 0 interface Serial0/0/1 Review of OSPFv2 configurations

12 OSPFv2 Configuration and Routes
2001:DB8:CAFE:1::/64 OSPFv2 Configuration and Routes Area 0 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R3# show ip route ospf Gateway of last resort is to network O*E /0 [110/1] via , 00:00:33, Serial0/0/1 O /24 [110/129] via , 00:01:57, Serial0/0/1 O /24 [110/128] via , 00:01:57, Serial0/0/1 R3#

13 OSPFv2 Neighbor Adjacencies
2001:DB8:CAFE:1::/64 OSPFv2 Neighbor Adjacencies Area 0 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R1# show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface FULL/ :00: Serial0/0/0 R1# R2’s OSPFv2 32-bit router-id FD and RD using R2 as the successor

14 OSPFv2 LSDB Area 0 ISP R1 R2 R3 2001:DB8:CAFE:1::/64 192.168.1.0/24
G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R3# show ip ospf data OSPF Router with ID ( ) (Process ID 1) Router Link States (Area 0) Link ID ADV Router Age Seq# Checksum Link count x x00DF5B 3 x x00260A 4 x x00B275 3 Type-5 AS External Link States Link ID ADV Router Age Seq# Checksum Tag x x001D91 1 FD and RD using R2 as the successor

15 Traditional OSPFv3 Configuration
2001:DB8:CAFE:1::/64 Traditional OSPFv3 Configuration Area 0 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R1(config)# ipv6 route ::/0 2001:db8:77::1 R1(config)# ipv6 unicast-routing R1(config)# ipv6 router ospf 2 R1(config-rtr)# router-id R1(config-rtr)# passive-interface gig 0/0 R1(config-rtr)# default-information originate R1(config-rtr)# exit R1(config)# interface gigabitethernet 0/0 R1(config-if)# ipv6 ospf 2 area 0 R1(config-if)# exit R1(config)# interface serial 0/0/0 Required OSPF process-id does not need to must match other routers Uses same process as OSPFv2 for determining the 32-bit router-id; required command if there is no IPv4 address OSPF for IPv6 is enabled on the interface, no network command Criteria for deriving the router ID: Configured router ID: Configured with eigrp router-id router-id command Note: Some versions of IOS will accept router-id. Highest Loopback IPv4 address: Highest active interface IPv4 address: EIGRP (IPv4 and IPv6) requires a 32-bit router ID. If there is no 32-bit IPv4 address configured on the router, then a router-id command is required. This is used to uniquely identify the router in EIGRP messages.

16 Traditional OSPFv3 Configuration
2001:DB8:CAFE:1::/64 Traditional OSPFv3 Configuration Area 0 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R2(config)# ipv6 unicast-routing R2(config)# ipv6 router ospf 2 R2(config-rtr)# router-id R2(config-rtr)# exit R2(config)# interface serial 0/0/0 R2(config-if)# ipv6 ospf 2 area 0 R2(config-if)# exit *Aug 1 02:42:29.015: %OSPFv3-5-ADJCHG: Process 2, Nbr on Serial0/0/0 from LOADING to FULL, Loading Done R2(config)# interface serial 0/0/1 R2(config-if)# Criteria for deriving the router ID: Configured router ID: Configured with eigrp router-id router-id command Note: Some versions of IOS will accept router-id. Highest Loopback IPv4 address: Highest active interface IPv4 address: EIGRP (IPv4 and IPv6) requires a 32-bit router ID. If there is no 32-bit IPv4 address configured on the router, then a router-id command is required. This is used to uniquely identify the router in EIGRP messages.

17 Traditional OSPFv3 Configuration
2001:DB8:CAFE:1::/64 Traditional OSPFv3 Configuration Area 0 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R3(config)# ipv6 unicast-routing R3(config)# ipv6 router ospf 2 R3(config-rtr)# router-id R3(config-rtr)# passive-interface gigabitethernet 0/0 R3(config-rtr)# exit R3(config)# interface serial 0/0/1 R3(config-if)# ipv6 ospf 2 area 0 *Jul 2 19:17:36.335: %OSPFv3-5-ADJCHG: Process 2, Nbr on Serial0/0/1 from LOADING to FULL, Loading Done R3(config-if)# exit R3(config)# interface gigabitethernet 0/0 Criteria for deriving the router ID: Configured router ID: Configured with eigrp router-id router-id command Note: Some versions of IOS will accept router-id. Highest Loopback IPv4 address: Highest active interface IPv4 address: EIGRP (IPv4 and IPv6) requires a 32-bit router ID. If there is no 32-bit IPv4 address configured on the router, then a router-id command is required. This is used to uniquely identify the router in EIGRP messages.

18 OSPFv3 Neighbor Adjacencies
2001:DB8:CAFE:1::/64 OSPFv3 Neighbor Adjacencies Area 0 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R1# show ipv6 ospf neighbor OSPFv3 Router with ID ( ) (Process ID 2) Neighbor ID Pri State Dead Time Interface ID Interface FULL/ :00: Serial0/0/0 R1# R2’s OSPFv3 32-bit router-id

19 OSPFv3 LSDB IPv6 LSAs Area 0 ISP R1 R2 R3 2001:DB8:CAFE:1::/64
/24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R1# show ipv6 ospf database OSPFv3 Router with ID ( ) (Process ID 2) Router Link States (Area 0) ADV Router Age Seq# Fragment ID Link count Bits x E x None x None <continued next slide> IPv6 LSAs Both router IDs – but only one has IPv6 link states associated with its process ID R1# show ipv6 ospf database OSPFv3 Router with ID ( ) (Process ID 1) OSPFv3 Router with ID ( ) (Process ID 2) Router Link States (Area 0) ADV Router Age Seq# Fragment ID Link count Bits x None x None x None <continued next slide>

20 OSPFv3 LSDB (continued)
2001:DB8:CAFE:1::/64 OSPFv3 LSDB (continued) Area 0 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R1# show ipv6 ospf database <continued> Link (Type-8) Link States (Area 0) ADV Router Age Seq# Link ID Interface x Se0/0/0 x Se0/0/0 x Gi0/0 Intra Area Prefix Link States (Area 0) ADV Router Age Seq# Link ID Ref-lstype Ref-LSID x x x x x x <continued> New LSA type New LSA type Single area ospf

21 OSPFv3 LSDB (continued)
2001:DB8:CAFE:1::/64 OSPFv3 LSDB (continued) Area 0 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R1# show ipv6 ospf database <continued> Type-5 AS External Link States ADV Router Age Seq# Prefix x ::/0 R1# Single area ospf

22 OSPFv3 Routes Area 0 ISP R1 R2 R3 2001:DB8:CAFE:1::/64 192.168.1.0/24
G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R3# show ipv6 route ospf IPv6 Routing Table - default - 8 entries <output omitted> OE2 ::/0 [110/1], tag 2 via FE80::2, Serial0/0/1 O :DB8:CAFE:1::/64 [110/129] O :DB8:CAFE:2::/64 [110/128] R3# Default route originated by R1 Administrative distance of OSPF and OSPF metric Single area ospf Link-local address of R2

23 OSPFv3 Multi-area Area 0 Area 51 ISP R1 R2 R3
2001:DB8:CAFE:1::/64 OSPFv3 Multi-area Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 Area 51 – Totally Stubby Area for OSPFv2 and OSPFv3 Multi area ospf for both ospfv2 and ospfv3 so we can be consistent and make it easier to compare configs

24 Configure ABR Serial 0/0/0 configuration does not change
Area 0 2001:DB8:CAFE:1::/64 Configure ABR Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R2(config)# interface serial 0/0/0 R2(config-if)# ip ospf 1 area 0 R2(config-if)# ipv6 ospf 2 area 0 R2(config-if)# exit R2(config)# interface serial 0/0/1 R2(config-if)# ip ospf 1 area 51 R2(config-if)# ipv6 ospf 2 area 51 R2(config)# router ospf 1 R2(config-router)# area 51 stub no-summary R2(config-router)# exit R2(config)# ipv6 router ospf 2 R2(config-rtr)# area 51 stub no-summary R2(config-rtr)# Serial 0/0/0 configuration does not change Router IDs already configured Different router prompt for ospfv2 and ospfv3

25 Configure R3 Area 51 Area 0 Area 51 ISP R1 R2 R3 2001:DB8:CAFE:1::/64
/24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R3(config)# interface serial 0/0/1 R3(config-if)# ip ospf 1 area 51 R3(config-if)# ipv6 ospf 2 area 51 R3(config-if)# exit R3(config)# interface gigabitethernet 0/0 R3(config)# router ospf 1 R3(config-router)# area 51 stub R3(config-router)# exit R3(config)# ipv6 router ospf 2 R3(config-rtr)# area 51 stub R3(config-rtr)# Multi area ospf f

26 R1’s IPv4 Routing Table Area 0 Area 51 ISP R1 R2 R3
2001:DB8:CAFE:1::/64 R1’s IPv4 Routing Table Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R1# show ip route ospf Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 <output omitted> O IA /24 [110/128] via , 00:04:26, Serial0/0/0 O IA /24 [110/129] via , 00:02:13, Serial0/0/0 R1# Single area ospf

27 R1’s IPv6 Routing Table Area 0 Area 51 ISP R1 R2 R3
2001:DB8:CAFE:1::/64 R1’s IPv6 Routing Table Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R1# show ipv6 route ospf IPv6 Routing Table - default - 7 entries Codes: C - Connected, L - Local, S - Static, U - Per-user Static route <output omitted> O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, a - Application OI 2001:DB8:CAFE:3::/64 [110/128] via FE80::2, Serial0/0/0 OI 2001:DB8:CAFE:4::/64 [110/129] R1# Single area ospf

28 OSPFv2 Totally Stubby Area 0 Area 51 ISP R1 R2 R3
2001:DB8:CAFE:1::/64 OSPFv2 Totally Stubby Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 ABR Default FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R3# show ip route ospf Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 <output omitted> Gateway of last resort is to network O*IA /0 [110/65] via , 00:14:55, Serial0/0/1 R3# Default route injected by ABR (Not default originated by ASBR R1) Default route injected by ABR

29 OSPFv3 Totally Stubby Area 0 Area 51 ISP R1 R2 R3
2001:DB8:CAFE:1::/64 OSPFv3 Totally Stubby Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 ABR Default FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R3# show ipv6 route ospf IPv6 Routing Table - default - 6 entries Codes: C - Connected, L - Local, S - Static, U - Per-user Static route B - BGP, R - RIP, I1 - ISIS L1, I2 - ISIS L2 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 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, a - Application OI ::/0 [110/65] via FE80::2, Serial0/0/1 R3# Default route injected by ABR (Not originated by ASBR R1) Single area ospf

30 OSPFv3 Router Commands Area 0 Area 51 ISP R1 R2 R3
2001:DB8:CAFE:1::/64 OSPFv3 Router Commands Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R2(config)# ipv6 router ospf 2 R2(config-rtr)# ? area OSPF area parameters auto-cost Calculate OSPF interface cost according to bandwidth compatible Compatibility list default Set a command to its defaults default-information Distribution of default information default-metric Set metric of redistributed routes discard-route Enable or disable discard-route installation distance Administrative distance distribute-list Filter networks in routing updates event-log Event Logging <output omitted> Multi area ospf

31 OSPFv3 Router Commands Area 0 Area 51 ISP R1 R2 R3
2001:DB8:CAFE:1::/64 OSPFv3 Router Commands Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R2(config)# interface serial 0/0/0 R2(config-if)# ipv6 ospf ? < > Process ID cost Route cost of this interface database-filter Filter OSPF LSA during synchronization and flooding dead-interval Interval after which a neighbor is declared dead demand-circuit OSPF demand circuit flood-reduction OSPF Flood Reduction hello-interval Time between HELLO packets mtu-ignore Ignores the MTU in DBD packets neighbor OSPF neighbor network Network type <output omitted> Multi area ospf

32 OSPFv2 and OSPFv3 Area 0 Area 51 ISP R1 R2 R3 2001:DB8:CAFE:1::/64
/24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 ipv6 unicast-routing interface Serial0/0/0 ip address ip ospf 1 area 0 ipv6 address FE80::2 link-local ipv6 address 2001:DB8:CAFE:2::2/64 ipv6 ospf 2 area 0 ! interface Serial0/0/1 ip address ip ospf 1 area 51 ipv6 address 2001:DB8:CAFE:3::1/64 ipv6 ospf 2 area 51 router ospf 1 router-id area 51 stub no-summary ! ipv6 router ospf 2 router-id No automatic summarization for IPv6 because classful addressing does not exist.

33 13.3: OSPFv3 Address Families

34 OSPFv3 with Address Families
IPv6 OSPFv3 OSPFv3 IPv6 Neighbor Table LSDB Routing Table Neighbor Table LSDB Routing Table IPv4 IPv4 Routing Table Routing Table IPv6 Network: All OSPFv3 AF messages (IPv4/IPv6) and IPv6 packets R1 R2 OSPFv3 messages, IPv4 and IPv6, are carried over IPv6 Single process supports IPv4 and IPv6 Single LSDB for both IPv4 and IPv6 information Adjacencies are established for each address family IPv4 Network: IPv4 packets

35 OSPFv3 with Address Families
Area 0 2001:DB8:CAFE:1::/64 Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 IPv4 and IPv6 addresses have been configured on all interfaces No routing protocols configured

36 OSPFv3 Address Families
Area 0 2001:DB8:CAFE:1::/64 OSPFv3 Address Families Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 Default FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R1(config)# ip route R1(config)# ipv6 route ::/0 2001:db8:77::1 R1(config)# ipv6 unicast-routing R1(config)# router ospfv3 1 R1(config-router)# address-family ? ipv4 Address family ipv6 Address family R1(config-router)# address-family ipv4 unicast R1(config-router-af)# Required OSPF process-id does not need to must match other routers

37 OSPFv3 Address Families
R1(config-router)# address-family ipv4 unicast R1(config-router-af)# ? Router Address Family configuration commands: area OSPF area parameters auto-cost Calculate OSPF interface cost according to bandwidth compatible Compatibility list default Set a command to its defaults default-information Control distribution of default information default-metric Set metric of redistributed routes discard-route Enable or disable discard-route installation distance Define an administrative distance distribute-list Filter networks in routing updates event-log Event Logging exit-address-family Exit from Address Family configuration mode graceful-restart Graceful-restart options help Description of the interactive help system interface-id Source of the interface ID limit Limit a specific OSPF feature <continued next slide> Commands previously configured in traditional router mode: R1(config)# router ospf 1

38 OSPFv3 Address Families
R1(config-router)# address-family ipv4 unicast R1(config-router-af)# ? <continued?> Limit a specific OSPF feature log-adjacency-changes Log changes in adjacency state max-lsa Maximum number of non self-generated LSAs to accept max-metric Set maximum metric maximum-paths Forward packets over multiple paths no Negate a command or set its defaults passive-interface Suppress routing updates on an interface prefix-suppression Enable prefix suppression queue-depth Hello/Router process queue depth redistribute Redistribute information from another routing protocol router-id router-id for this OSPF process shutdown Shutdown the router process snmp Modify snmp parameters summary-prefix Configure IP address summaries timers Adjust routing timers R1(config-router-af)#

39 Configuring OSPFv3 AFs Area 0 Area 51 ISP R1 R2 R3
2001:DB8:CAFE:1::/64 Configuring OSPFv3 AFs Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R1(config)# ipv6 unicast-routing R1(config)# router ospfv3 1 R1(config-router)# address-family ipv4 unicast R1(config-router-af)# router-id R1(config-router-af)# default-information originate R1(config-router-af)# passive-interface gigabitethernet 0/0 R1(config-router-af)# exit-address-family R1(config-router)# address-family ipv6 unicast R1(config-router-af)# router-id R1(config-router)# Walk through a complete configuration on R1 from the beginning

40 Configuring OSPFv3 AFs Area 0 Area 51 ISP R1 R2 R3
2001:DB8:CAFE:1::/64 Configuring OSPFv3 AFs Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R1(config)# interface gigabitethernet 0/0 R1(config-if)# ospfv3 1 ipv4 area 0 R1(config-if)# ospfv3 1 ipv6 area 0 R1(config-if)# exit R1(config)# interface serial 0/0/0 R1(config-if)# Note: For IPv6, OSPFv3 will also accept the traditional IPv6 interface command: R1(config-if)# ipv6 ospf area 0

41 R2’s AF Configuration Area 0 Area 51 ISP R1 R2 R3 2001:DB8:CAFE:1::/64
/24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R2(config)# ipv6 unicast-routing R2(config)# router ospfv3 1 R2(config-router)# address-family ipv4 unicast R2(config-router-af)# router-id R2(config-router-af)# area 51 stub no-summary R2(config-router-af)# exit-address-family R2(config-router)# address-family ipv6 unicast R2(config-router-af)# router-id R2(config-router)# exit R2(config)# interface serial 0/0/0 R2(config-if)# ospfv3 1 ipv4 area 0 R2(config-if)# ospfv3 1 ipv6 area 0 R2(config-if)# exit R2(config)# interface serial 0/0/1 R2(config-if)# ospfv3 1 ipv4 area 51 R2(config-if)# ospfv3 1 ipv6 area 51 R2(config-if)#

42 R3’s AF Configuration Area 0 Area 51 ISP R1 R2 R3 2001:DB8:CAFE:1::/64
/24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R3(config)# ipv6 unicast-routing R3(config)# router ospfv3 1 R3(config-router)# address-family ipv4 unicast R3(config-router-af)# router-id R3(config-router-af)# area 51 stub R3(config-router-af)# passive-interface gig0/0 R3(config-router-af)# exit R3(config-router)# address-family ipv6 unicast R3(config-router-af)# router-id R3(config-router-af)# exit-address-family R3(config-router)# exit R3(config)# interface serial 0/0/1 R3(config-if)# ospfv3 1 ipv4 area 51 R3(config-if)# ospfv3 1 ipv6 area 51 R3(config-if)# exit R3(config)# interface gigabitethernet 0/0 R3(config-if)#

43 OSPFv3 IPv4 Routes Area 0 Area 51 ISP R1 R2 R3 2001:DB8:CAFE:1::/64
/24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R1# show ip route ospf R1# R1# show ip route ospfv3 Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 <output omitted> Gateway of last resort is not set O IA /24 [110/128] via , 00:06:40, Serial0/0/0 O IA /24 [110/129] via , 00:04:23, Serial0/0/0 Show ip route is fine…. Shows all IPv4 routes Show ipv6 route is fine…. Shows all IPv6 routes

44 OSPFv3 IPv6 Routes Area 0 Area 51 ISP R1 R2 R3 2001:DB8:CAFE:1::/64
/24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R1# show ipv6 route ospf IPv6 Routing Table - default - 7 entries Codes: C - Connected, L - Local, S - Static, U - Per-user Static route B - BGP, R - RIP, I1 - ISIS L1, I2 - ISIS L2 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 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, a - Application OI 2001:DB8:CAFE:3::/64 [110/128] via FE80::2, Serial0/0/0 OI 2001:DB8:CAFE:4::/64 [110/129] R1#

45 IPv4 AF Totally Stubby Area 0 Area 51 ISP R1 R2 R3
2001:DB8:CAFE:1::/64 IPv4 AF Totally Stubby Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 ABR Default FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R3# show ip route ospfv3 Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 <output omitted> Gateway of last resort is to network O*IA /0 [110/65] via , 00:26:42, Serial0/0/1 R3# Default route injected by ABR

46 IPv6 AF Totally Stubby Area 0 Area 51 ISP R1 R2 R3
2001:DB8:CAFE:1::/64 IPv6 AF Totally Stubby Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 ABR Default FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R3# show ipv6 route ospf IPv6 Routing Table - default - 6 entries Codes: C - Connected, L - Local, S - Static, U - Per-user Static route B - BGP, R - RIP, I1 - ISIS L1, I2 - ISIS L2 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 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, a - Application OI ::/0 [110/65] via FE80::2, Serial0/0/1 R3# Default route injected by ABR

47 OSPFv3 Neighbor Adjacencies
Area 0 2001:DB8:CAFE:1::/64 OSPFv3 Neighbor Adjacencies Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R1# show ip ospf neighbor R1# R1# show ospfv3 neighbor OSPFv3 1 address-family ipv4 (router-id ) Neighbor ID Pri State Dead Time Interface ID Interface FULL/ :00: Serial0/0/0 OSPFv3 1 address-family ipv6 (router-id ) FULL/ :00: Serial0/0/0

48 IPv6 Neighbor Adjacencies
Area 0 2001:DB8:CAFE:1::/64 IPv6 Neighbor Adjacencies Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R1# show ipv6 ospf neighbor OSPFv3 Router with ID ( ) (Process ID 1) Neighbor ID Pri State Dead Time Interface ID Interface FULL/ :00: Serial0/0/0 R1# Traditional OSPF command showing only IPv6 neighbors

49 Making Sense of the OSPF Keywords
R1# show ip ospf neighbor Refers to OSPFv2 IPv4 process information Only IPv4 neighbors will be displayed that were configured using OSPFv2 R1# show ipv6 ospf neighbor Refers to OSPFv3 IPv6 process information Only IPv6 neighbors will be displayed configured using OSPFv3 R1# show ospfv3 neighbor Refers to OSPFv3 IPv4 and IPv6 process information Both IPv4 and IPv6 neighbors will be displayed, but both must have been configured using OSPFv3

50 OSPFv3 LSDB Area 0 Area 51 ISP R1 R2 R3 2001:DB8:CAFE:1::/64
/24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R1# show ip ospf database R1# R1# show ospfv3 database OSPFv3 1 address-family ipv4 (router-id ) Router Link States (Area 0) ADV Router Age Seq# Fragment ID Link count Bits x None x B <output omitted> <continued on next slide> R1#show ospfv3 database OSPFv3 1 address-family ipv4 (router-id ) Router Link States (Area 0) ADV Router Age Seq# Fragment ID Link count Bits x None x B Inter Area Prefix Link States (Area 0) ADV Router Age Seq# Prefix x /24 x /24 x /24 x /24 Link (Type-8) Link States (Area 0) ADV Router Age Seq# Link ID Interface x Se0/0/0 x Se0/0/0 x Gi0/0 Intra Area Prefix Link States (Area 0) ADV Router Age Seq# Link ID Ref-lstype Ref-LSID x x x x OSPFv3 1 address-family ipv6 (router-id ) x None x B x :DB8:CAFE:3::/64 x :DB8:CAFE:4::/64 x Se0/0/0 x Se0/0/0 x Gi0/0 x x x x R1#

51 OSPFv3 LSDB Area 0 Area 51 ISP R1 R2 R3 2001:DB8:CAFE:1::/64
/24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 R1# show ospfv3 database <continued> OSPFv3 1 address-family ipv6 (router-id ) Router Link States (Area 0) ADV Router Age Seq# Fragment ID Link count Bits x None x B Inter Area Prefix Link States (Area 0) ADV Router Age Seq# Prefix x :DB8:CAFE:3::/64 x :DB8:CAFE:4::/64 <output omitted> R1#show ipv6 ospf database OSPFv3 Router with ID ( ) (Process ID 1) Router Link States (Area 0) ADV Router Age Seq# Fragment ID Link count Bits x None x B Inter Area Prefix Link States (Area 0) ADV Router Age Seq# Prefix x :DB8:CAFE:3::/64 x :DB8:CAFE:4::/64 Link (Type-8) Link States (Area 0) ADV Router Age Seq# Link ID Interface x Se0/0/0 x Se0/0/0 x Gi0/0 Intra Area Prefix Link States (Area 0) ADV Router Age Seq# Link ID Ref-lstype Ref-LSID x x x x R1#

52 R1’s OSPFv3 AF Configuration
Area 0 2001:DB8:CAFE:1::/64 R1’s OSPFv3 AF Configuration Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 ipv6 unicast-routing interface GigabitEthernet0/0 ip address ipv6 address FE80::1 link-local ipv6 address 2001:DB8:CAFE:1::1/64 ospfv3 1 ipv6 area 0 ospfv3 1 ipv4 area 0 ! interface Serial0/0/0 ip address ipv6 address 2001:DB8:CAFE:2::1/64 router ospfv3 1 ! address-family ipv4 unicast passive-interface GigabitEthernet0/0 default-information originate router-id exit-address-family address-family ipv6 unicast router-id

53 13.4: OSPFv3 Address Families – IPv4 Island

54 R3’s Current Configuration
Area 51 2001:DB8:CAFE:3::/64 G0/0 :1/.1 2001:DB8:CAFE:4::/64 IPv4 only FE80::2 /24 /24 S0/0/0 .2 S0/0/1 :2/.2 S0/1/0 .1 G0/0 .1 S0/0/1 :1/.1 R2 R3 R4 FE80::3 /24 /24 ipv6 unicast-routing interface GigabitEthernet0/0 ip address ipv6 address FE80::3 link-local ipv6 address 2001:DB8:CAFE:4::1/64 ospfv3 1 ipv6 area 51 ospfv3 1 ipv4 area 51 ! interface Serial0/0/1 ip address ipv6 address 2001:DB8:CAFE:3::2/64 router ospfv3 1 ! address-family ipv4 unicast router-id area 51 stub exit-address-family address-family ipv6 unicast router-id Add R4 (IPv4 only) R4 only has an IPv4 connection with R3 We will configure R3 and R4 to use OSPFv3 with AF.

55 R3 - Configuring OSPFv3 for IPv4
Area 51 2001:DB8:CAFE:3::/64 G0/0 :1/.1 2001:DB8:CAFE:4::/64 IPv4 only FE80::2 /24 /24 S0/0/0 .2 S0/0/1 :2/.2 S0/1/0 .1 G0/0 .1 S0/0/1 :1/.1 IPv6 Network: All OSPFv3 AF messages (IPv4/IPv6) and IPv6 packets R2 R3 R4 FE80::3 /24 /24 R3(config)# interface serial 0/1/0 R3(config-if)# ip address R3(config-if)# ospfv3 1 ipv4 area 51 % OSPFv3: IPV6 is not enabled on this interface R3(config-if)# ipv6 enable R3(config-if)# no shutdown R3(config-if)# Alternatively – static link-local address: ipv6 address FE80::2 link-local ipv6 enable command automatically creates an IPv6 link-local address on the interface using EUI-64, without needing an IPv6 global unicast address.

56 R4 - Configuring OSPFv3 for IPv4
Area 51 2001:DB8:CAFE:3::/64 G0/0 :1/.1 2001:DB8:CAFE:4::/64 IPv4 only FE80::2 /24 /24 S0/0/0 .2 S0/0/1 :2/.2 S0/1/0 .1 G0/0 .1 S0/0/1 :1/.1 R2 R3 R4 FE80::3 /24 /24 R4(config)# router ospfv3 1 %OSPFv3: IPv6 routing not enabled R4(config)# ipv6 unicast-routing R4(config-router)# address-family ipv4 unicast *Sep 19 03:46:44.866: %OSPFv3-4-NORTRID: Process OSPFv3-1-IPv4 could not pick a router-id, please configure manually R4(config-router-af)# router-id R4(config-router-af)# area 51 stub R4(config-router-af)# exit-address-family R4(config-router)# exit R4(config)# Still need to configure IPv4 addresses on the interfaces

57 R4 - Configuring OSPFv3 for IPv4
Area 51 2001:DB8:CAFE:3::/64 G0/0 :1/.1 2001:DB8:CAFE:4::/64 IPv4 only FE80::2 /24 /24 S0/0/0 .2 S0/0/1 :2/.2 S0/1/0 .1 G0/0 .1 S0/0/1 :1/.1 R2 R3 R4 FE80::3 /24 /24 R4(config)# interface serial 0/0/0 R4(config-if)# ip address R4(config-if)# ipv6 enable R4(config-if)# ospfv3 1 ipv4 area 51 R4(config-if)# no shutdown R4(config-if)# exit R4(config)# interface gigabitethernet 0/0 R4(config-if)# ip address

58 R4’s IPv4 Routing Table Area 51 R2 R3 R4 R4’s IPv4 routing table.
2001:DB8:CAFE:3::/64 G0/0 :1/.1 2001:DB8:CAFE:4::/64 IPv4 only FE80::2 /24 /24 S0/0/0 .2 S0/0/1 :2/.2 S0/1/0 .1 G0/0 .1 S0/0/1 :1/.1 R2 R3 R4 FE80::3 /24 /24 R4# show ip route <output omitted> Gateway of last resort is to network O*IA /0 [110/129] via , 00:03:44, Serial0/0/0 /16 is variably subnetted, 4 subnets, 2 masks C /24 is directly connected, Serial0/0/0 L /32 is directly connected, Serial0/0/0 C /24 is directly connected, GigabitEthernet0/0 L /32 is directly connected, GigabitEthernet0/0 O /24 [110/128] via , 00:03:44, Serial0/0/0 O /24 [110/65] via , 00:03:44, Serial0/0/0 R4# R4’s IPv4 routing table. We will examine just the OSPF routes next…

59 R4’s OSPFv3 IPv4 Routes Area 51 R2 R3 R4 Default route injected by ABR
2001:DB8:CAFE:3::/64 G0/0 :1/.1 2001:DB8:CAFE:4::/64 IPv4 only FE80::2 /24 ABR Default /24 S0/0/0 .2 S0/0/1 :2/.2 S0/1/0 .1 G0/0 .1 S0/0/1 :1/.1 R2 R3 R4 FE80::3 /24 /24 R4# show ip route ospf R4# R4# show ip route ospfv3 Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area <output omitted> Gateway of last resort is to network O*IA /0 [110/129] via , 00:16:20, Serial0/0/0 O /24 [110/128] via , 00:16:20, Serial0/0/0 O /24 [110/65] via , 00:16:20, Serial0/0/0 Default route injected by ABR Internal OSPFv3 R4#show ip route Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP a - application route + - replicated route, % - next hop override Gateway of last resort is to network O*IA /0 [110/129] via , 00:18:02, Serial0/0/0 /16 is variably subnetted, 4 subnets, 2 masks C /24 is directly connected, Serial0/0/0 L /32 is directly connected, Serial0/0/0 C /24 is directly connected, GigabitEthernet0/0 L /32 is directly connected, GigabitEthernet0/0 O /24 [110/128] via , 00:18:02, Serial0/0/0 O /24 [110/65] via , 00:18:02, Serial0/0/0 R4#show ipv6 route IPv6 Routing Table - default - 1 entries Codes: C - Connected, L - Local, S - Static, U - Per-user Static route B - BGP, R - RIP, I1 - ISIS L1, I2 - ISIS L2 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 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, a - Application L FF00::/8 [0/0] via Null0, receive R4#

60 R1’s OSPFv3 IPv4 Routes Area 51 Area 0 R2 R4 R1 IPv4 only
2001:DB8:CAFE:1::/64 R1’s OSPFv3 IPv4 Routes Area 51 Area 0 /24 G0/0 :1/.1 2001:DB8:CAFE:2::/64 IPv4 only FE80::1 S0/0/0 .2 S0/0/0 :2/.2 G0/0 .1 S0/0/0 :1/.1 R2 R4 R1 /24 /24 /24 R1# show ip route ospfv3 Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 <output omitted> /24 is subnetted, 2 subnets O IA [110/192] via , 00:27:50, Serial0/0/0 O IA [110/193] via , 00:01:34, Serial0/0/0 O IA /24 [110/128] via , 01:51:39, Serial0/0/0 O IA /24 [110/129] via , 01:42:46, Serial0/0/0 R1#

61 OSPFv3 Sent over IPv6 Area 51 R2 R3 R4
2001:DB8:CAFE:3::/64 G0/0 :1/.1 2001:DB8:CAFE:4::/64 IPv4 only FE80::2 /24 /24 S0/0/0 .2 S0/0/1 :2/.2 S0/1/0 .1 G0/0 .1 S0/0/1 :1/.1 R2 R3 R4 FE80::3 /24 /24 R4# debug ospfv3 hello detail OSPFv3 hello detailed debugging is on for process 1, IPv4, Default vrf *Sep 19 04:16:31.010: OSPFv3-1-IPv4 HELLO Se0/0/0: Send hello to FF02::5 area 51 from FE80::8A5A:92FF:FE38:3C40 interface ID 6 *Sep 19 04:16:39.210: OSPFv3-1-IPv4 HELLO Se0/0/0: Rcv hello from area 51 from FE80::8A5A:92FF:FE3B:8D40 interface ID 8 *Sep 19 04:16:39.598: OSPFv3-1-IPv4 HELLO Gi0/0: Send hello to FF02::5 area 51 from FE80::8A5A:92FF:FE38:3C40 interface ID 3 R4# un all OSPFv3 messages sent over IPv6 – notice EUI-64 derived link-local  Hello’s sent from IPv6 link-local address to FF02::5 All OSPF routers

62 Verifying R4’s OSPFv3 Neighbor Adjacencies
Area 51 2001:DB8:CAFE:3::/64 G0/0 :1/.1 2001:DB8:CAFE:4::/64 IPv4 only FE80::2 /24 /24 S0/0/0 .2 S0/0/1 :2/.2 S0/1/0 .1 G0/0 .1 S0/0/1 :1/.1 R2 R3 R4 FE80::3 /24 /24 R4# show ip ospf neighbor R4# R4# show ipv6 ospf neighbor R4# show ospfv3 neighbor OSPFv3 1 address-family ipv4 (router-id ) Neighbor ID Pri State Dead Time Interface ID Interface FULL/ :00: Serial0/0/0 Displays OSPFv2 information, R4 is using OSPFv3 Displays OSPFv3 information, but IPv6 only. Although sent over IPv6, adjacencies are established separately for each address family. Displays OSPFv3 information for both IPv4 and IPv6. Adjacencies are established for each address family

63 Added Configuration for R3
Area 51 2001:DB8:CAFE:3::/64 G0/0 :1/.1 2001:DB8:CAFE:4::/64 IPv4 only FE80::2 /24 /24 S0/0/0 .2 S0/0/1 :2/.2 S0/1/0 .1 G0/0 .1 S0/0/1 :1/.1 R2 R3 R4 FE80::3 /24 /24 ipv6 unicast-routing interface GigabitEthernet0/0 ip address ipv6 address FE80::3 link-local ipv6 address 2001:DB8:CAFE:4::1/64 ospfv3 1 ipv6 area 51 ospfv3 1 ipv4 area 51 ! interface Serial0/0/1 ip address ipv6 address 2001:DB8:CAFE:3::2/64 interface Serial0/1/0 ip address ipv6 enable ospfv3 1 ipv4 area 51 ! router ospfv3 1 address-family ipv4 unicast router-id area 51 stub exit-address-family address-family ipv6 unicast router-id Added for an OSPFv3 IPv4 adjacency to R4

64 R4’s OSPFv3 IPv4 Island Configuration
Area 51 2001:DB8:CAFE:3::/64 G0/0 :1/.1 2001:DB8:CAFE:4::/64 IPv4 only FE80::2 /24 /24 S0/0/0 .2 S0/0/1 :2/.2 S0/1/0 .1 G0/0 .1 S0/0/1 :1/.1 R2 R3 R4 FE80::3 /24 /24 ipv6 unicast-routing interface GigabitEthernet0/0 ip address ipv6 enable ospfv3 1 ipv4 area 51 ! interface Serial0/0/0 ip address router ospfv3 1 ! address-family ipv4 unicast router-id area 51 stub exit-address-family

65 12.4: OSPF Configurations at a Glance

66 OSPFv2 & Traditional OSPFv3
Area 0 2001:DB8:CAFE:1::/64 OSPFv2 & Traditional OSPFv3 Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 ipv6 unicast-routing interface Serial0/0/0 ip address ip ospf 1 area 0 ipv6 address FE80::2 link-local ipv6 address 2001:DB8:CAFE:2::2/64 ipv6 ospf 2 area 0 ! interface Serial0/0/1 ip address ip ospf 1 area 51 ipv6 address 2001:DB8:CAFE:3::1/64 ipv6 ospf 2 area 51 router ospf 1 router-id area 51 stub no-summary ! ipv6 router ospf 2 router-id Optional configuration for OSPFv2: router ospf 1 network area 0 network area No automatic summarization for IPv6 because classful addressing does not exist.

67 R2’s OSPFv3 AF Configuration
Area 0 2001:DB8:CAFE:1::/64 R2’s OSPFv3 AF Configuration Area 51 /24 2001:DB8:77::/64 G0/0 :1/.1 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64 FE80::1 FE80::2 FE80::3 S0/0/1 :2/.2 S0/0/0 :2/.2 S0/0/1 :2/.2 G0/0 :1/.1 S0/0/0 :1/.1 S0/0/1 :1/.1 ISP R1 R2 R3 /24 /24 /24 /24 ipv6 unicast-routing interface Serial0/0/0 ip address ipv6 address FE80::2 link-local ipv6 address 2001:DB8:CAFE:2::2/64 ospfv3 1 ipv4 area 0 ospfv3 1 ipv6 area 0 ! interface Serial0/0/1 ip address ipv6 address 2001:DB8:CAFE:3::1/64 ospfv3 1 ipv4 area 51 ospfv3 1 ipv6 area 51 router ospfv3 1 ! address-family ipv4 unicast router-id area 51 stub no-summary exit-address-family address-family ipv6 unicast router-id

68 For more information please check out my Cisco Press book and video series:
IPv6 Fundamentals: A Straightforward Approach to Understanding IPv6 By Rick Graziani ISBN-10: IPv6 Fundamentals LiveLessons: A Straightforward Approach to Understanding IPv6 By Rick Graziani ISBN-10:

69 13: OSPFv3 Rick Graziani Cabrillo College


Download ppt "13: OSPFv3 Rick Graziani Cabrillo College Rick.Graziani@cabrillo.edu."

Similar presentations


Ads by Google