Professional Documents
Culture Documents
13: Ospfv3: Rick Graziani Cabrillo College Rick - Graziani@Cabrillo - Edu
13: Ospfv3: Rick Graziani Cabrillo College Rick - Graziani@Cabrillo - Edu
Rick Graziani
Cabrillo College
Rick.Graziani@cabrillo.edu
For more information please check out my Cisco Press book and video series:
©
13.1: Protocol and Concepts
IPv4 and IPv6 Routing Protocols
Exterior
Gateway
Interior Gateway Protocols Protocols
Distance Vector Link State Path Vector
Distance Vector Routing Link State Routing Path Vector
Protocols Protocols
IPv4 RIPv2 EIGRP OSPFv2 IS-IS BGP-4
RIPng EIGRP for OSPFv3 * IS-IS for BGP-4 for
IPv6 IPv6 IPv6 IPv6 or
MP-BGP
* OSPFv3 supports routing both IPv4 and IPv6.
Advertised IPv4 networks IPv6 prefixes IPv4 networks and IPv6 prefixes
routes
Link-state Yes Yes Yes
Metric Cost (Cisco: BW) Cost (Cisco: BW) Cost (Cisco: BW)
Support Yes Yes Yes
multiple areas
Router-ID 32-bit 32-bit 32-bit
©
Traditional
OSPFv2 for IPv4 OSPFv3 for IPv6 OSPFv3 Address Families
Layer 3 IPv4 IPv6 IPv6
encapsulation
Source address IPv4 address IPv6 link-local address IPv6 link-local address
LSAs OSPFv3 renames two LSA types and defines two additional LSA types that do
not exist in OSPFv2. ©
Comparing OSPFv2 and OSPFv3 LSAs
OSPFv2 LSAs OSPFv3 LSAs
Type Name LS Type Code Name
1 Router LSA 0x2001 Router LSA
2 Network LSA 0x2002 Network LSA
3 Network Summary LSA 0x2003 Inter-Area Prefix LSA
4 ASBR Summary LSA 0x2004 Inter-Area Router LSA
5 AS-External LSA 0x4005 AS-External LSA
6 Group Membership LSA 0x2006 Group Membership LSA
7 NSSA External LSA 0x2007 Type-7 LSA
0x2008 Link LSA
0x2009 Intra-Area Prefix LSA
©
13.2: OSPFv2 and Traditional OSPFv3
Comparing OSPFv2 and Traditional OSPFv3
OSPFv2 OSPFv2 IPv4 OSPFv2 OSPFv2 IPv4
IPv4 Network
R1 IPv6 Network
R2
©
2001:DB8:CAFE:1::/64 Area 0
192.168.1.0/24 Dual-stack Topology
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
©
2001:DB8:CAFE:1::/64 Area 0
192.168.1.0/24 OSPFv2 Neighbor Adjacencies
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
©
2001:DB8:CAFE:1::/64 Area 0
192.168.1.0/24 OSPFv2 LSDB
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
R3# show ip ospf data
©
2001:DB8:CAFE:1::/64 Area 0
192.168.1.0/24 OSPFv3 Routes
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
©
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 Configure ABR
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
R2(config)# interface serial 0/0/0 R2(config)# router ospf 1
R2(config-if)# ip ospf 1 area 0 R2(config-router)# area 51 stub no-summary
R2(config-if)# ipv6 ospf 2 area 0 R2(config-router)# exit
R2(config-if)# exit R2(config)# ipv6 router ospf 2
R2(config)# interface serial 0/0/1 R2(config-rtr)# area 51 stub no-summary
R2(config-if)# ip ospf 1 area 51 R2(config-rtr)#
R2(config-if)# ipv6 ospf 2 area 51
R2(config-if)# exit
©
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 R1’s IPv4 Routing Table
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
©
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 R1’s IPv6 Routing Table
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
©
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 OSPFv3 Router Commands
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
R2(config)# interface serial 0/0/0
R2(config-if)# ipv6 ospf ?
<1-65535> 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>
©
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 OSPFv2 and OSPFv3
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
ipv6 unicast-routing router ospf 1
interface Serial0/0/0 router-id 2.2.2.2
ip address 192.168.2.2 255.255.255.0 area 51 stub no-summary
ip ospf 1 area 0 !
ipv6 address FE80::2 link-local ipv6 router ospf 2
ipv6 address 2001:DB8:CAFE:2::2/64 router-id 2.2.2.6
ipv6 ospf 2 area 0 area 51 stub no-summary
!
interface Serial0/0/1
ip address 192.168.3.1 255.255.255.0
ip ospf 1 area 51
ipv6 address FE80::2 link-local
ipv6 address 2001:DB8:CAFE:3::1/64
ipv6 ospf 2 area 51
©
13.3: OSPFv3 Address Families
OSPFv3 with Address Families
OSPFv3 OSPFv3 IPv6 OSPFv3 OSPFv3 IPv6
IPv4 IPv4
Routing Routing
Table Table
©
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 OSPFv3 Address Families
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 Default FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
R1(config)# ip route 0.0.0.0 0.0.0.0 192.168.77.1
R1(config)# ipv6 route ::/0 2001:db8:77::1
R1(config)# ipv6 unicast-routing Required
R1(config)# router ospfv3 1 OSPF process-id does not need to must
R1(config-router)# address-family ? match other routers
ipv4 Address family
ipv6 Address family
©
OSPFv3 Address Families
R1(config-router)# address-family ipv4 unicast Commands previously configured in
R1(config-router-af)# ?
traditional router mode:
Router Address Family configuration commands:
R1(config)# router ospf 1
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>
©
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)#
©
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 Configuring OSPFv3 AFs
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
R1(config)# ipv6 unicast-routing
R1(config)# router ospfv3 1
R1(config-router)# address-family ipv4 unicast
R1(config-router-af)# router-id 1.1.1.1
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 1.1.1.6
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)#
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 Configuring OSPFv3 AFs
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
©
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 R2’s AF Configuration
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
R2(config)# ipv6 unicast-routing R2(config)# interface serial 0/0/0
R2(config)# router ospfv3 1 R2(config-if)# ospfv3 1 ipv4 area 0
R2(config-router)# address-family ipv4 unicast R2(config-if)# ospfv3 1 ipv6 area 0
R2(config-router-af)# router-id 2.2.2.2 R2(config-if)# exit
R2(config-router-af)# area 51 stub no-summary R2(config)# interface serial 0/0/1
R2(config-router-af)# exit-address-family R2(config-if)# ospfv3 1 ipv4 area 51
R2(config-router)# address-family ipv6 unicast R2(config-if)# ospfv3 1 ipv6 area 51
R2(config-router-af)# router-id 2.2.2.6 R2(config-if)#
R2(config-router-af)# area 51 stub no-summary
R2(config-router-af)# exit-address-family
R2(config-router)# exit
©
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 R3’s AF Configuration
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
R3(config)# ipv6 unicast-routing R3(config)# interface serial 0/0/1
R3(config)# router ospfv3 1 R3(config-if)# ospfv3 1 ipv4 area 51
R3(config-router)# address-family ipv4 unicast R3(config-if)# ospfv3 1 ipv6 area 51
R3(config-router-af)# router-id 3.3.3.3 R3(config-if)# exit
R3(config-router-af)# area 51 stub R3(config)# interface gigabitethernet 0/0
R3(config-router-af)# passive-interface gig0/0 R3(config-if)# ospfv3 1 ipv4 area 51
R3(config-router-af)# exit R3(config-if)# ospfv3 1 ipv6 area 51
R3(config-router)# address-family ipv6 unicast R3(config-if)#
R3(config-router-af)# router-id 3.3.3.6
R3(config-router-af)# area 51 stub
R3(config-router-af)# passive-interface gig0/0
R3(config-router-af)# exit-address-family
R3(config-router)# exit
©
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 OSPFv3 IPv4 Routes
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/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>
©
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 OSPFv3 IPv6 Routes
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/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]
via FE80::2, Serial0/0/0
R1#
©
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 IPv4 AF Totally Stubby
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 ABR Default S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/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>
©
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 IPv6 AF Totally Stubby
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 ABR Default S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/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] Default route injected by ABR
via FE80::2, Serial0/0/1
R3#
©
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 OSPFv3 Neighbor Adjacencies
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
R1# show ip ospf neighbor
R1#
R1# show ospfv3 neighbor
©
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
©
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 OSPFv3 LSDB
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
R1# show ip ospf database
R1#
R1# show ospfv3 database
©
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 R1’s OSPFv3 AF Configuration
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
ipv6 unicast-routing router ospfv3 1
interface GigabitEthernet0/0 !
ip address 192.168.1.1 255.255.255.0 address-family ipv4 unicast
ipv6 address FE80::1 link-local passive-interface GigabitEthernet0/0
ipv6 address 2001:DB8:CAFE:1::1/64 default-information originate
ospfv3 1 ipv6 area 0 router-id 1.1.1.1
ospfv3 1 ipv4 area 0 exit-address-family
! !
interface Serial0/0/0 address-family ipv6 unicast
ip address 192.168.2.1 255.255.255.0 passive-interface GigabitEthernet0/0
ipv6 address FE80::1 link-local default-information originate
ipv6 address 2001:DB8:CAFE:2::1/64 router-id 1.1.1.6
ospfv3 1 ipv6 area 0 exit-address-family
ospfv3 1 ipv4 area 0 !
©
13.4: OSPFv3 Address Families
– IPv4 Island
R3’s Current Configuration Area 51
2001:DB8:CAFE:3::/64 G0/0 2001:DB8:CAFE:4::/64
FE80::2 192.168.3.0/24 :1/.1 192.168.4.0/24 IPv4 only
S0/0/1 S0/0/0
S0/0/1 S0/1/0 .2 G0/0
:2/.2 .1 .1
R2 :1/.1 R3 R4
FE80::3 172.16.1.0/24 172.16.2.0/24
ipv6 unicast-routing router ospfv3 1
interface GigabitEthernet0/0 ! • Add R4 (IPv4
ip address 192.168.4.1 255.255.255.0 address-family ipv4 unicast
ipv6 address FE80::3 link-local router-id 3.3.3.3
only)
ipv6 address 2001:DB8:CAFE:4::1/64 area 51 stub • R4 only has an
ospfv3 1 ipv6 area 51 exit-address-family IPv4 connection
ospfv3 1 ipv4 area 51 !
! address-family ipv6 unicast with R3
interface Serial0/0/1 router-id 3.3.3.6 • We will configure
ip address 192.168.3.2 255.255.255.0 area 51 stub
R3 and R4 to use
ipv6 address FE80::3 link-local exit-address-family
ipv6 address 2001:DB8:CAFE:3::2/64 ! OSPFv3 with AF.
ospfv3 1 ipv6 area 51
ospfv3 1 ipv4 area 51
©
R3 - Configuring OSPFv3 for IPv4 Area 51
2001:DB8:CAFE:3::/64 G0/0 2001:DB8:CAFE:4::/64
FE80::2 192.168.3.0/24 :1/.1 192.168.4.0/24 IPv4 only
S0/0/1 S0/0/0
S0/0/1 S0/1/0 G0/0
:2/.2 IPv6 Network: All OSPFv3 AF.2
R2 :1/.1 R3 .1
messages R4
(IPv4/IPv6) and IPv6 packets .1
FE80::3 172.16.1.0/24 172.16.2.0/24
©
Added Configuration for R3 Area 51
2001:DB8:CAFE:3::/64 G0/0 2001:DB8:CAFE:4::/64
FE80::2 192.168.3.0/24 :1/.1 192.168.4.0/24 IPv4 only
S0/0/1 S0/0/0
S0/0/1 S0/1/0 .2 G0/0
:2/.2 .1 .1
R2 :1/.1 R3 R4
FE80::3 172.16.1.0/24 172.16.2.0/24
ipv6 unicast-routing interface Serial0/1/0
interface GigabitEthernet0/0 ip address 172.16.1.1 255.255.255.0
ip address 192.168.4.1 255.255.255.0 ipv6 enable
ipv6 address FE80::3 link-local ospfv3 1 ipv4 area 51
ipv6 address 2001:DB8:CAFE:4::1/64 !
ospfv3 1 ipv6 area 51 router ospfv3 1
Added for an OSPFv3
ospfv3 1 ipv4 area 51 ! IPv4 adjacency to R4
! address-family ipv4 unicast
interface Serial0/0/1 router-id 3.3.3.3
ip address 192.168.3.2 255.255.255.0 area 51 stub
ipv6 address FE80::3 link-local exit-address-family
ipv6 address 2001:DB8:CAFE:3::2/64 !
ospfv3 1 ipv6 area 51 address-family ipv6 unicast
ospfv3 1 ipv4 area 51 router-id 3.3.3.6
area 51 stub
©
exit-address-family
R4’s OSPFv3 IPv4 Island Configuration Area 51
2001:DB8:CAFE:3::/64 G0/0 2001:DB8:CAFE:4::/64
FE80::2 192.168.3.0/24 :1/.1 192.168.4.0/24 IPv4 only
S0/0/1 S0/0/0
S0/0/1 S0/1/0 .2 G0/0
:2/.2 .1 .1
R2 :1/.1 R3 R4
FE80::3 172.16.1.0/24 172.16.2.0/24
ipv6 unicast-routing router ospfv3 1
interface GigabitEthernet0/0 !
ip address 172.16.2.1 255.255.255.0 address-family ipv4 unicast
ipv6 enable router-id 4.4.4.4
ospfv3 1 ipv4 area 51 area 51 stub
! exit-address-family
interface Serial0/0/0 !
ip address 172.16.1.2 255.255.255.0
ipv6 enable
ospfv3 1 ipv4 area 51
©
12.4: OSPF Configurations at a Glance
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 OSPFv2 & Traditional OSPFv3
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
ipv6 unicast-routing router ospf 1
interface Serial0/0/0 router-id 2.2.2.2
ip address 192.168.2.2 255.255.255.0 area 51 stub no-summary
ip ospf 1 area 0 !
ipv6 address FE80::2 link-local ipv6 router ospf 2
ipv6 address 2001:DB8:CAFE:2::2/64 router-id 2.2.2.6
ipv6 ospf 2 area 0 area 51 stub no-summary
!
interface Serial0/0/1
ip address 192.168.3.1 255.255.255.0
ip ospf 1 area 51 Optional configuration for OSPFv2:
ipv6 address FE80::2 link-local router ospf 1
ipv6 address 2001:DB8:CAFE:3::1/64 network 192.168.2.0 0.0.0.255 area 0
ipv6 ospf 2 area 51 network 192.168.3.0 0.0.0.255 area
©
Area 0 2001:DB8:CAFE:1::/64 Area 51
192.168.1.0/24 R2’s OSPFv3 AF Configuration
2001:DB8:77:: G0/0 2001:DB8:CAFE:2::/64 2001:DB8:CAFE:3::/64 2001:DB8:CAFE:4::/64
/64 FE80::1 :1/.1 FE80::2 FE80::3
S0/0/1 S0/0/0 S0/0/1
S0/0/0 S0/0/1 G0/0
:2/.2 :2/.2 :2/.2
ISP R1 :1/.1 R2 :1/.1 R3 :1/.1
192.168.77.0/24 192.168.2.0/24 192.168.3.0/24 192.168.4.0/24
ipv6 unicast-routing router ospfv3 1
interface Serial0/0/0 !
ip address 192.168.2.2 255.255.255.0 address-family ipv4 unicast
ipv6 address FE80::2 link-local router-id 2.2.2.2
ipv6 address 2001:DB8:CAFE:2::2/64 area 51 stub no-summary
ospfv3 1 ipv4 area 0 exit-address-family
ospfv3 1 ipv6 area 0 !
! address-family ipv6 unicast
interface Serial0/0/1 router-id 2.2.2.6
ip address 192.168.3.1 255.255.255.0 area 51 stub no-summary
ipv6 address FE80::2 link-local exit-address-family
ipv6 address 2001:DB8:CAFE:3::1/64 !
ospfv3 1 ipv4 area 51
ospfv3 1 ipv6 area 51
©
For more information please check out my Cisco Press book and video series:
©
13: OSPFv3
Rick Graziani
Cabrillo College
Rick.Graziani@cabrillo.edu