OSPFv3 Address Families

advertisement
13: OSPFv3
Rick Graziani
Cabrillo College
Rick.Graziani@cabrillo.edu
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: 1-58714-313-5
IPv6 Fundamentals LiveLessons: A
Straightforward Approach to Understanding IPv6
•
By Rick Graziani
•
ISBN-10: 1-58720-457-6
©
13.1: Protocol and Concepts
IPv4 and IPv6 Routing Protocols
Exterior
Gateway
Protocols
Interior Gateway Protocols
IPv4
Distance Vector
Distance Vector Routing
Protocols
RIPv2
EIGRP
RIPng
IPv6
EIGRP for
IPv6
Link State
Link State Routing
Protocols
OSPFv2
IS-IS
OSPFv3 *
IS-IS for
IPv6
Path Vector
Path Vector
BGP-4
BGP-4 for
IPv6 or
MP-BGP
* OSPFv3 supports routing both IPv4 and IPv6.
• The basic operations and algorithms you learned about
OSPFv2 for IPv4 also apply to OSPFv3 for IPv6.
©
Comparing Flavors of OSPF
OSPFv2 for IPv4
Traditional
OSPFv3 for IPv6
OSPFv3 Address Families
OSPF version
OSPFv2
OSPFv3
OSPFv3
Advertised
routes
IPv4 networks
IPv6 prefixes
IPv4 networks and IPv6 prefixes
Link-state
Yes
Yes
Yes
Metric
Cost (Cisco: BW)
Cost (Cisco: BW)
Cost (Cisco: BW)
Support
multiple areas
Yes
Yes
Yes
Router-ID
32-bit
32-bit
32-bit
DR and BDR
Yes
Yes
Yes
©
OSPFv2 for IPv4
Traditional
OSPFv3 for IPv6
OSPFv3 Address Families
IPv4
IPv6
IPv6
Source address IPv4 address
IPv6 link-local address
IPv6 link-local address
Destination All OSPF
Routers
224.0.0.5
FF02::5
FF02::5
Destination –
ALL DR/BDR
224.0.0.6
FF02::6
FF02::6
Destination Neighbor
IPv4 address
IPv6 link-local address
IPv6 link-local address
IPv6 Unicast
Routing
N/A (IP unicast
routing default)
Required
Required (Even if only using
IPv4 address family)
Authentication
Plain text and MD5
IPsec
IPsec
LSAs
OSPFv3 renames two LSA types and defines two additional LSA types that do
not exist in OSPFv2.
©
Layer 3
encapsulation
Comparing OSPFv2 and OSPFv3 LSAs
OSPFv2 LSAs
Type
OSPFv3 LSAs
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
Neighbor
Table
OSPFv2
LSDB
IPv4
OSPFv2
Routing
Table
Neighbor
Table
OSPFv2
LSDB
IPv4
Routing
Table
IPv4 Network
R1
OSPFv3
Neighbor
Table
OSPFv3
LSDB
R2
IPv6 Network
IPv6
Routing
Table
R2
OSPFv3
Neighbor
Table
OSPFv3
LSDB
IPv6
Routing
Table
©
2001:DB8:CAFE:1::/64
Area 0
192.168.1.0/24
2001:DB8:77::
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
/64
FE80::3
FE80::2
Dual-stack Topology
ISP
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
R2# show ip interface brief
Interface
IP-Address
OK? Method Status
Protocol
Serial0/0/0
192.168.2.2
YES manual up
up
Serial0/0/1
192.168.3.1
YES manual up
up
R2# show ipv6 interface brief
Note: Although perhaps uncommon, serial links are used
Serial0/0/0
[up/up] in this topology to more easily differentiate from LANs.
FE80::2
2001:DB8:CAFE:2::2
Same link-local address
Statically configured
Serial0/0/1
[up/up]
FE80::2
2001:DB8:CAFE:3::1
©
2001:DB8:CAFE:1::/64
Area 0
192.168.1.0/24
2001:DB8:77::
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
/64
FE80::3
FE80::2
OSPFv2 Configuration and Routes
ISP
S0/0/1
:2/.2
Default
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
Static (Default)
:1/.1
192.168.2.0/24
R1
ip route 0.0.0.0 0.0.0.0 192.168.77.1
router ospf 1
router-id 1.1.1.1
passive-interface GigabitEthernet0/0
network 192.168.1.0 0.0.0.255 area 0
network 192.168.2.0 0.0.0.255 area 0
default-information originate
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R2
router ospf 1
router-id 2.2.2.2
interface
ip ospf
interface
ip ospf
Serial0/0/0
1 area 0
Serial0/0/1
1 area 0
R3
G0/0
:1/.1
192.168.4.0/24
R3
router ospf 1
router-id 3.3.3.3
passive-interface
GigabitEth0/0
interface
ip ospf
interface
ip ospf
Gig 0/0
1 area 0
Serial0/0/1
1 area 0
Review of OSPFv2 configurations
©
2001:DB8:CAFE:1::/64
Area 0
192.168.1.0/24
2001:DB8:77::
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
/64
FE80::3
FE80::2
OSPFv2 Configuration and Routes
ISP
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
R3# show ip route ospf
Gateway of last resort is 192.168.3.1 to network 0.0.0.0
O*E2
O
O
R3#
0.0.0.0/0 [110/1] via 192.168.3.1, 00:00:33, Serial0/0/1
192.168.1.0/24 [110/129] via 192.168.3.1, 00:01:57, Serial0/0/1
192.168.2.0/24 [110/128] via 192.168.3.1, 00:01:57, Serial0/0/1
©
2001:DB8:CAFE:1::/64
Area 0
192.168.1.0/24
2001:DB8:77::
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
/64
FE80::3
FE80::2
OSPFv2 Neighbor Adjacencies
ISP
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
R1# show ip ospf neighbor
Neighbor ID
Pri
State
2.2.2.2
0
FULL/ R2’s OSPFv2 32-bit router-id
R1#
Dead Time
00:00:34
Address
192.168.2.2
Interface
Serial0/0/0
©
2001:DB8:CAFE:1::/64
Area 0
192.168.1.0/24
2001:DB8:77::
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
/64
FE80::3
FE80::2
OSPFv2 LSDB
ISP
S0/0/1
:2/.2
R1
192.168.77.0/24
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
R3# show ip ospf data
OSPF Router with ID (3.3.3.3) (Process ID 1)
Link ID
1.1.1.1
2.2.2.2
3.3.3.3
Router Link States (Area 0)
ADV Router
Age
Seq#
1.1.1.1
683
0x80000005
2.2.2.2
682
0x80000004
3.3.3.3
681
0x80000004
Link ID
0.0.0.0
Type-5 AS External Link States
ADV Router
Age
Seq#
Checksum Tag
1.1.1.1
594
0x80000001 0x001D91 1
Checksum
0x00DF5B
0x00260A
0x00B275
Link count
3
4
3
©
2001:DB8:CAFE:1::/64
Area 0
192.168.1.0/24
2001:DB8:77::
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
/64
FE80::3
FE80::2
Traditional OSPFv3 Configuration
ISP
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
R1(config)# ipv6 route ::/0 2001:db8:77::1
R1(config)# ipv6 unicast-routing
Required
R1(config)# ipv6 router ospf 2
OSPF process-id does not need to must match other routers
R1(config-rtr)# router-id 1.1.1.6
Uses same process as OSPFv2 for
R1(config-rtr)# passive-interface gig 0/0
determining the 32-bit router-id; required
R1(config-rtr)# default-information originate command if there is no IPv4 address
R1(config-rtr)# exit
R1(config)# interface gigabitethernet 0/0
R1(config-if)# ipv6 ospf 2 area 0
OSPF for IPv6 is enabled on the interface,
R1(config-if)# exit
no network command
R1(config)# interface serial 0/0/0
R1(config-if)# ipv6 ospf 2 area 0
©
2001:DB8:CAFE:1::/64
Area 0
192.168.1.0/24
2001:DB8:77::
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
/64
FE80::3
FE80::2
Traditional OSPFv3 Configuration
ISP
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
R2(config)# ipv6 unicast-routing
R2(config)# ipv6 router ospf 2
R2(config-rtr)# router-id 2.2.2.6
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 1.1.1.6 on Serial0/0/0
from LOADING to FULL, Loading Done
R2(config)# interface serial 0/0/1
R2(config-if)# ipv6 ospf 2 area 0
R2(config-if)#
©
2001:DB8:CAFE:1::/64
Area 0
192.168.1.0/24
2001:DB8:77::
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
/64
FE80::3
FE80::2
Traditional OSPFv3 Configuration
ISP
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
R3(config)# ipv6 unicast-routing
R3(config)# ipv6 router ospf 2
R3(config-rtr)# router-id 3.3.3.6
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 2.2.2.6 on Serial0/0/1
from LOADING to FULL, Loading Done
R3(config-if)# exit
R3(config)# interface gigabitethernet 0/0
R3(config-if)# ipv6 ospf 2 area 0
©
2001:DB8:CAFE:1::/64
Area 0
192.168.1.0/24
2001:DB8:77::
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
/64
FE80::3
FE80::2
OSPFv3 Neighbor Adjacencies
ISP
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
R1# show ipv6 ospf neighbor
OSPFv3 Router with ID (1.1.1.6) (Process ID 2)
Neighbor ID
Pri
State
2.2.2.6
0
FULL/ R1#
R2’s OSPFv3 32-bit router-id
Dead Time
00:00:31
Interface ID
5
Interface
Serial0/0/0
©
2001:DB8:CAFE:1::/64
Area 0
192.168.1.0/24
2001:DB8:77::
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
/64
FE80::3
FE80::2
OSPFv3 Routes
ISP
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
R3# show ipv6 route ospf
IPv6 Routing Table - default - 8 entries
<output omitted>
Default route originated by R1
OE2 ::/0 [110/1], tag 2
via FE80::2, Serial0/0/1
O
2001:DB8:CAFE:1::/64 [110/129]
via FE80::2, Serial0/0/1
O
2001:DB8:CAFE:2::/64 [110/128] Administrative distance of OSPF
and OSPF metric
via FE80::2, Serial0/0/1
Link-local address of R2
R3#
©
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
Area 51
OSPFv3 Multi-area
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
Area 51 – Totally Stubby Area for
OSPFv2 and OSPFv3
©
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
Area 51
Configure ABR
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/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-if)# exit
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R2(config)# router ospf
R2(config-router)# area
R2(config-router)# exit
R2(config)# ipv6 router
R2(config-rtr)# area 51
R2(config-rtr)#
R3
G0/0
:1/.1
192.168.4.0/24
1
51 stub no-summary
ospf 2
stub no-summary
• Serial 0/0/0 configuration does not change
• Router IDs already configured
©
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
Area 51
Configure R3 Area 51
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
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-if)# ip ospf 1 area 51
R3(config-if)# ipv6 ospf 2 area 51
R3(config-if)# exit
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
R3(config)# router ospf
R3(config-router)# area
R3(config-router)# exit
R3(config)# ipv6 router
R3(config-rtr)# area 51
R3(config-rtr)#
G0/0
:1/.1
192.168.4.0/24
1
51 stub
ospf 2
stub
©
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
Area 51
R1’s IPv4 Routing Table
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/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
O IA
R1#
192.168.3.0/24 [110/128] via 192.168.2.2, 00:04:26, Serial0/0/0
192.168.4.0/24 [110/129] via 192.168.2.2, 00:02:13, Serial0/0/0
©
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
Area 51
R1’s IPv6 Routing Table
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
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
<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]
via FE80::2, Serial0/0/0
R1#
©
Area 0 2001:DB8:CAFE:1::/64
Area 51
OSPFv2 Totally Stubby
192.168.1.0/24
2001:DB8:77::
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
/64
FE80::3
FE80::2
ABR Default S0/0/1
S0/0/1
S0/0/0
G0/0
S0/0/0
S0/0/1
: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.4.0/24
192.168.3.0/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 192.168.3.1 to network 0.0.0.0
Default route injected by ABR (Not default originated by ASBR R1)
O*IA
R3#
0.0.0.0/0 [110/65] via 192.168.3.1, 00:14:55, Serial0/0/1
©
Area 0 2001:DB8:CAFE:1::/64
OSPFv3 Totally Stubby
Area 51
192.168.1.0/24
2001:DB8:77::
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
/64
FE80::3
FE80::2
ABR Default S0/0/1
S0/0/1
S0/0/0
G0/0
S0/0/0
S0/0/1
: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.4.0/24
192.168.3.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
(Not originated by ASBR R1)
R3#
©
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
Area 51
OSPFv3 Router Commands
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/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>
©
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
Area 51
OSPFv3 Router Commands
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
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
2001:DB8:77::
/64
ISP
Area 51
OSPFv2 and OSPFv3
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
ipv6 unicast-routing
interface Serial0/0/0
ip address 192.168.2.2 255.255.255.0
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 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
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
router ospf 1
router-id 2.2.2.2
area 51 stub no-summary
!
ipv6 router ospf 2
router-id 2.2.2.6
area 51 stub no-summary
©
13.3: OSPFv3 Address Families
OSPFv3 with Address Families
OSPFv3
Neighbor
Table
OSPFv3
LSDB
IPv6
Routing
Table
OSPFv3
Neighbor
Table
OSPFv3
LSDB
IPv6
Routing
Table
IPv4
IPv4
Routing
Table
Routing
Table
IPv6 Network: All OSPFv3 AF
messages (IPv4/IPv6) and IPv6 packets
R1
R2
IPv4 Network: IPv4 packets
©
OSPFv3 with Address Families
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
Area 51
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
• IPv4 and IPv6 addresses have been configured on all interfaces
• No routing protocols configured
©
Area 0 2001:DB8:CAFE:1::/64
Area 51
OSPFv3 Address Families
192.168.1.0/24
2001:DB8:77::
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
Default FE80::1 :1/.1
/64
FE80::3
FE80::2
ISP
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
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
R1(config-router)# address-family ipv4 unicast
R1(config-router-af)#
©
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
2001:DB8:77::
/64
ISP
Area 51
Configuring OSPFv3 AFs
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.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)#
R3
G0/0
:1/.1
192.168.4.0/24
©
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
Area 51
Configuring OSPFv3 AFs
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
R1
192.168.77.0/24
R1(config)# interface
R1(config-if)# ospfv3
R1(config-if)# ospfv3
R1(config-if)# exit
R1(config)# interface
R1(config-if)# ospfv3
R1(config-if)# ospfv3
R1(config-if)#
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
gigabitethernet 0/0
1 ipv4 area 0
1 ipv6 area 0
serial 0/0/0
1 ipv4 area 0
1 ipv6 area 0
©
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
Area 51
R2’s AF Configuration
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2(config)# ipv6 unicast-routing
R2(config)# router ospfv3 1
R2(config-router)# address-family ipv4 unicast
R2(config-router-af)# router-id 2.2.2.2
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 2.2.2.6
R2(config-router-af)# area 51 stub no-summary
R2(config-router-af)# exit-address-family
R2(config-router)# exit
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R2(config)# interface
R2(config-if)# ospfv3
R2(config-if)# ospfv3
R2(config-if)# exit
R2(config)# interface
R2(config-if)# ospfv3
R2(config-if)# ospfv3
R2(config-if)#
R3
G0/0
:1/.1
192.168.4.0/24
serial 0/0/0
1 ipv4 area 0
1 ipv6 area 0
serial 0/0/1
1 ipv4 area 51
1 ipv6 area 51
©
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
Area 51
R3’s AF Configuration
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R3(config)# ipv6 unicast-routing
R3(config)# router ospfv3 1
R3(config-router)# address-family ipv4 unicast
R3(config-router-af)# router-id 3.3.3.3
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 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
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3(config)# interface
R3(config-if)# ospfv3
R3(config-if)# ospfv3
R3(config-if)# exit
R3(config)# interface
R3(config-if)# ospfv3
R3(config-if)# ospfv3
R3(config-if)#
R3
G0/0
:1/.1
192.168.4.0/24
serial 0/0/1
1 ipv4 area 51
1 ipv6 area 51
gigabitethernet 0/0
1 ipv4 area 51
1 ipv6 area 51
©
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
Area 51
OSPFv3 IPv4 Routes
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
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>
Gateway of last resort is not set
O IA
O IA
R1#
192.168.3.0/24 [110/128] via 192.168.2.2, 00:06:40, Serial0/0/0
192.168.4.0/24 [110/129] via 192.168.2.2, 00:04:23, Serial0/0/0
©
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
Area 51
OSPFv3 IPv6 Routes
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
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
IPv4 AF Totally Stubby
Area 51
192.168.1.0/24
2001:DB8:77::
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
/64
FE80::3
FE80::2
ABR Default S0/0/1
S0/0/1
S0/0/0
G0/0
S0/0/0
S0/0/1
: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.4.0/24
192.168.3.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>
Gateway of last resort is 192.168.3.1 to network 0.0.0.0
O*IA
R3#
0.0.0.0/0 [110/65] via 192.168.3.1, 00:26:42, Serial0/0/1
Default route injected by ABR
©
Area 0 2001:DB8:CAFE:1::/64
IPv6 AF Totally Stubby
Area 51
192.168.1.0/24
2001:DB8:77::
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
/64
FE80::3
FE80::2
ABR Default S0/0/1
S0/0/1
S0/0/0
G0/0
S0/0/0
S0/0/1
: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.4.0/24
192.168.3.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
2001:DB8:77::
/64
ISP
OSPFv3 Neighbor Adjacencies
Area 51
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
R1
192.168.77.0/24
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
R1# show ip ospf neighbor
R1#
R1# show ospfv3 neighbor
OSPFv3 1 address-family ipv4 (router-id 1.1.1.1)
Neighbor ID
2.2.2.2
Pri
0
State
FULL/
-
Dead Time
00:00:38
Interface ID
5
Interface
Serial0/0/0
OSPFv3 1 address-family ipv6 (router-id 1.1.1.6)
Neighbor ID
2.2.2.6
R1#
Pri
0
State
FULL/
-
Dead Time
00:00:34
Interface ID
5
Interface
Serial0/0/0
©
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
Area 51
IPv6 Neighbor Adjacencies
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
R1
192.168.77.0/24
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
R1# show ipv6 ospf neighbor
OSPFv3 Router with ID (1.1.1.6) (Process ID 1)
Neighbor ID
2.2.2.6
R1#
Pri
0
State
FULL/
-
Dead Time
00:00:30
Interface ID
5
Interface
Serial0/0/0
• Traditional OSPF command showing only IPv6 neighbors
©
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
©
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
Area 51
OSPFv3 LSDB
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
R1# show ip ospf database
R1#
R1# show ospfv3 database
OSPFv3 1 address-family ipv4 (router-id 1.1.1.1)
Router Link States (Area 0)
ADV Router
Age
1.1.1.1
1632
2.2.2.2
1512
<output omitted>
<continued on next slide>
Seq#
0x80000002
0x80000002
Fragment ID
0
0
Link count
1
1
Bits
None
B
©
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
Area 51
OSPFv3 LSDB
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
R1# show ospfv3 database <continued>
OSPFv3 1 address-family ipv6 (router-id 1.1.1.6)
ADV Router
1.1.1.6
2.2.2.6
ADV Router
2.2.2.6
2.2.2.6
<output omitted>
Router Link States (Area
Age
Seq#
1627
0x80000002
1506
0x80000002
0)
Fragment ID
0
0
Link count
1
1
Bits
None
B
Inter Area Prefix Link States (Area 0)
Age
Seq#
Prefix
1496
0x80000001 2001:DB8:CAFE:3::/64
966
0x80000001 2001:DB8:CAFE:4::/64
©
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
Area 51
R1’s OSPFv3 AF Configuration
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
ipv6 unicast-routing
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.0
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 192.168.2.1 255.255.255.0
ipv6 address FE80::1 link-local
ipv6 address 2001:DB8:CAFE:2::1/64
ospfv3 1 ipv6 area 0
ospfv3 1 ipv4 area 0
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
router ospfv3 1
!
address-family ipv4 unicast
passive-interface GigabitEthernet0/0
default-information originate
router-id 1.1.1.1
exit-address-family
!
address-family ipv6 unicast
passive-interface GigabitEthernet0/0
default-information originate
router-id 1.1.1.6
exit-address-family
!
©
13.4: OSPFv3 Address Families
– IPv4 Island
R3’s Current Configuration
2001:DB8:CAFE:3::/64
192.168.3.0/24
FE80::2
R2
S0/0/1
:1/.1
S0/0/1
:2/.2
G0/0
:1/.1
2001:DB8:CAFE:4::/64
192.168.4.0/24
R3
FE80::3
ipv6 unicast-routing
interface GigabitEthernet0/0
ip address 192.168.4.1 255.255.255.0
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 192.168.3.2 255.255.255.0
ipv6 address FE80::3 link-local
ipv6 address 2001:DB8:CAFE:3::2/64
ospfv3 1 ipv6 area 51
ospfv3 1 ipv4 area 51
S0/1/0
.1
Area 51
IPv4 only
S0/0/0
.2
R4
172.16.1.0/24
router ospfv3 1
!
address-family ipv4 unicast
router-id 3.3.3.3
area 51 stub
exit-address-family
!
address-family ipv6 unicast
router-id 3.3.3.6
area 51 stub
exit-address-family
!
G0/0
.1
172.16.2.0/24
•
•
•
Add R4 (IPv4
only)
R4 only has an
IPv4 connection
with R3
We will configure
R3 and R4 to use
OSPFv3 with AF.
©
R3 - Configuring OSPFv3 for IPv4
2001:DB8:CAFE:3::/64
192.168.3.0/24
FE80::2
R2
S0/0/1
:1/.1
S0/0/1
:2/.2
G0/0
:1/.1
2001:DB8:CAFE:4::/64
192.168.4.0/24
R3
FE80::3
S0/0/0
S0/1/0
IPv6 Network: All OSPFv3 AF.2
.1
R4
messages
(IPv4/IPv6) and IPv6 packets
172.16.1.0/24
Area 51
IPv4 only
G0/0
.1
172.16.2.0/24
R3(config)# interface serial 0/1/0
R3(config-if)# ip address 172.16.1.1 255.255.255.0
R3(config-if)# ospfv3 1 ipv4 area 51
% OSPFv3: IPV6 is not enabled on this interface
R3(config-if)# ipv6 enable
Alternatively – static link-local address:
R3(config-if)# ospfv3 1 ipv4 area 51
ipv6 address FE80::2 link-local
R3(config-if)# no shutdown
R3(config-if)#
•
ipv6 enable command automatically creates an IPv6 link-local address on
the interface using EUI-64, without needing an IPv6 global unicast address.
©
R4 - Configuring OSPFv3 for IPv4
2001:DB8:CAFE:3::/64
192.168.3.0/24
FE80::2
R2
S0/0/1
:1/.1
S0/0/1
:2/.2
G0/0
:1/.1
2001:DB8:CAFE:4::/64
192.168.4.0/24
R3
FE80::3
S0/1/0
.1
Area 51
IPv4 only
S0/0/0
.2
172.16.1.0/24
R4
G0/0
.1
172.16.2.0/24
R4(config)# router ospfv3 1
%OSPFv3: IPv6 routing not enabled
R4(config)# ipv6 unicast-routing
R4(config)# router ospfv3 1
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
Still need to configure IPv4
R4(config-router-af)# router-id 4.4.4.4
addresses on the interfaces
R4(config-router-af)# area 51 stub
R4(config-router-af)# exit-address-family
R4(config-router)# exit
R4(config)#
©
R4 - Configuring OSPFv3 for IPv4
2001:DB8:CAFE:3::/64
192.168.3.0/24
FE80::2
R2
S0/0/1
:1/.1
S0/0/1
:2/.2
G0/0
:1/.1
2001:DB8:CAFE:4::/64
192.168.4.0/24
R3
FE80::3
S0/1/0
.1
Area 51
IPv4 only
S0/0/0
.2
172.16.1.0/24
R4
G0/0
.1
172.16.2.0/24
R4(config)# interface serial 0/0/0
R4(config-if)# ip address 172.16.1.2 255.255.255.0
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 172.16.2.1 255.255.255.0
R4(config-if)# ipv6 enable
R4(config-if)# ospfv3 1 ipv4 area 51
R4(config-if)# no shutdown
©
R4’s IPv4 Routing Table
2001:DB8:CAFE:3::/64
192.168.3.0/24
FE80::2
R2
S0/0/1
:1/.1
S0/0/1
:2/.2
G0/0
:1/.1
2001:DB8:CAFE:4::/64
192.168.4.0/24
R3
FE80::3
R4# show ip route
<output omitted>
IPv4 only
S0/0/0
.2
S0/1/0
.1
Area 51
R4
172.16.1.0/24
G0/0
.1
172.16.2.0/24
R4’s IPv4 routing table.
We will examine just the OSPF routes next…
Gateway of last resort is 172.16.1.1 to network 0.0.0.0
O*IA
C
L
C
L
O
O
R4#
0.0.0.0/0 [110/129] via 172.16.1.1, 00:03:44, Serial0/0/0
172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
172.16.1.0/24 is directly connected, Serial0/0/0
172.16.1.2/32 is directly connected, Serial0/0/0
172.16.2.0/24 is directly connected, GigabitEthernet0/0
172.16.2.1/32 is directly connected, GigabitEthernet0/0
192.168.3.0/24 [110/128] via 172.16.1.1, 00:03:44, Serial0/0/0
192.168.4.0/24 [110/65] via 172.16.1.1, 00:03:44, Serial0/0/0
©
R4’s OSPFv3 IPv4 Routes
2001:DB8:CAFE:3::/64
192.168.3.0/24
FE80::2
ABR Default
R2
S0/0/1
:1/.1
S0/0/1
:2/.2
G0/0
:1/.1
2001:DB8:CAFE:4::/64
192.168.4.0/24
R3
FE80::3
R4# show ip route
R4#
R4# show ip route
Codes: L - local,
D - EIGRP,
<output omitted>
R4
172.16.1.0/24
G0/0
.1
172.16.2.0/24
ospf
ospfv3
C - connected, S - static, R - RIP, M - mobile, B - BGP
EX - EIGRP external, O - OSPF, IA - OSPF inter area
Gateway of last resort is 172.16.1.1 to network 0.0.0.0
O*IA
O
O
R4#
IPv4 only
S0/0/0
.2
S0/1/0
.1
Area 51
Default route injected by ABR
0.0.0.0/0 [110/129] via 172.16.1.1, 00:16:20, Serial0/0/0
192.168.3.0/24 [110/128] via 172.16.1.1, 00:16:20, Serial0/0/0
192.168.4.0/24 [110/65] via 172.16.1.1, 00:16:20, Serial0/0/0
Internal
OSPFv3
©
2001:DB8:CAFE:1::/64
Area 0
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
FE80::1 :1/.1
R1
S0/0/0
:2/.2
S0/0/0
:1/.1
192.168.2.0/24
R1’s OSPFv3 IPv4 Routes
Area 51
IPv4 only
R2
S0/0/0
.2
R4
172.16.1.0/24
G0/0
.1
172.16.2.0/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>
O IA
O IA
O IA
O IA
R1#
172.16.0.0/24 is subnetted, 2 subnets
172.16.1.0 [110/192] via 192.168.2.2, 00:27:50, Serial0/0/0
172.16.2.0 [110/193] via 192.168.2.2, 00:01:34, Serial0/0/0
192.168.3.0/24 [110/128] via 192.168.2.2, 01:51:39, Serial0/0/0
192.168.4.0/24 [110/129] via 192.168.2.2, 01:42:46, Serial0/0/0
©
OSPFv3 Sent over IPv6
2001:DB8:CAFE:3::/64
192.168.3.0/24
FE80::2
R2
S0/0/1
:1/.1
S0/0/1
:2/.2
G0/0
:1/.1
2001:DB8:CAFE:4::/64
192.168.4.0/24
R3
FE80::3
S0/1/0
.1
Area 51
IPv4 only
S0/0/0
.2
172.16.1.0/24
R4
G0/0
.1
172.16.2.0/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 3.3.3.3
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
©
Verifying R4’s OSPFv3 Neighbor AdjacenciesArea 51
2001:DB8:CAFE:3::/64
192.168.3.0/24
FE80::2
R2
S0/0/1
:1/.1
G0/0
:1/.1
S0/0/1
:2/.2
2001:DB8:CAFE:4::/64
192.168.4.0/24
R3
FE80::3
R4# show ip ospf neighbor
R4#
R4# show ipv6 ospf neighbor
R4#
IPv4 only
S0/0/0
.2
S0/1/0
.1
172.16.1.0/24
R4
G0/0
.1
172.16.2.0/24
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.
R4# show ospfv3 neighbor
Displays OSPFv3 information for both IPv4 and IPv6.
OSPFv3 1 address-family ipv4 (router-id 4.4.4.4)
Neighbor ID
3.3.3.3
R4#
Pri
0
State
FULL/
-
Dead Time
00:00:31
Interface ID
7
Interface
Serial0/0/0
©
Added Configuration for R3
2001:DB8:CAFE:3::/64
192.168.3.0/24
FE80::2
R2
S0/0/1
:1/.1
S0/0/1
:2/.2
G0/0
:1/.1
2001:DB8:CAFE:4::/64
192.168.4.0/24
R3
FE80::3
ipv6 unicast-routing
interface GigabitEthernet0/0
ip address 192.168.4.1 255.255.255.0
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 192.168.3.2 255.255.255.0
ipv6 address FE80::3 link-local
ipv6 address 2001:DB8:CAFE:3::2/64
ospfv3 1 ipv6 area 51
ospfv3 1 ipv4 area 51
S0/1/0
.1
Area 51
IPv4 only
S0/0/0
.2
172.16.1.0/24
R4
G0/0
.1
172.16.2.0/24
interface Serial0/1/0
ip address 172.16.1.1 255.255.255.0
ipv6 enable
ospfv3 1 ipv4 area 51
!
Added for an OSPFv3
router ospfv3 1
IPv4 adjacency to R4
!
address-family ipv4 unicast
router-id 3.3.3.3
area 51 stub
exit-address-family
!
address-family ipv6 unicast
router-id 3.3.3.6
area 51 stub
©
exit-address-family
R4’s OSPFv3 IPv4 Island Configuration
2001:DB8:CAFE:3::/64
192.168.3.0/24
FE80::2
R2
S0/0/1
:1/.1
S0/0/1
:2/.2
G0/0
:1/.1
2001:DB8:CAFE:4::/64
192.168.4.0/24
R3
FE80::3
ipv6 unicast-routing
interface GigabitEthernet0/0
ip address 172.16.2.1 255.255.255.0
ipv6 enable
ospfv3 1 ipv4 area 51
!
interface Serial0/0/0
ip address 172.16.1.2 255.255.255.0
ipv6 enable
ospfv3 1 ipv4 area 51
S0/1/0
.1
Area 51
IPv4 only
S0/0/0
.2
R4
172.16.1.0/24
G0/0
.1
172.16.2.0/24
router ospfv3 1
!
address-family ipv4 unicast
router-id 4.4.4.4
area 51 stub
exit-address-family
!
©
12.4: OSPF Configurations at a Glance
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
OSPFv2 & Traditional OSPFv3
Area 51
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
ipv6 unicast-routing
interface Serial0/0/0
ip address 192.168.2.2 255.255.255.0
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 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
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
router ospf 1
router-id 2.2.2.2
area 51 stub no-summary
!
ipv6 router ospf 2
router-id 2.2.2.6
area 51 stub no-summary
Optional configuration for OSPFv2:
router ospf 1
network 192.168.2.0 0.0.0.255 area 0
network 192.168.3.0 0.0.0.255 area
©
Area 0 2001:DB8:CAFE:1::/64
2001:DB8:77::
/64
ISP
R2’s OSPFv3 AF Configuration
Area 51
192.168.1.0/24
G0/0 2001:DB8:CAFE:2::/64
2001:DB8:CAFE:3::/64
2001:DB8:CAFE:4::/64
FE80::1 :1/.1
FE80::3
FE80::2
S0/0/1
:2/.2
192.168.77.0/24
R1
S0/0/0
S0/0/0
:2/.2
:1/.1
192.168.2.0/24
ipv6 unicast-routing
interface Serial0/0/0
ip address 192.168.2.2 255.255.255.0
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 192.168.3.1 255.255.255.0
ipv6 address FE80::2 link-local
ipv6 address 2001:DB8:CAFE:3::1/64
ospfv3 1 ipv4 area 51
ospfv3 1 ipv6 area 51
R2
S0/0/1
S0/0/1
:2/.2
:1/.1
192.168.3.0/24
R3
G0/0
:1/.1
192.168.4.0/24
router ospfv3 1
!
address-family ipv4 unicast
router-id 2.2.2.2
area 51 stub no-summary
exit-address-family
!
address-family ipv6 unicast
router-id 2.2.2.6
area 51 stub no-summary
exit-address-family
!
©
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: 1-58714-313-5
IPv6 Fundamentals LiveLessons: A
Straightforward Approach to Understanding IPv6
•
By Rick Graziani
•
ISBN-10: 1-58720-457-6
©
13: OSPFv3
Rick Graziani
Cabrillo College
Rick.Graziani@cabrillo.edu
Download