Enable OSPFv3 on an Interface
This example shows the minimum configuration required for enabling OSPFv3 on an interface. R1 and R2 are two routers in Area 0 connecting to the network 3ffe:10::/64. After enabling OSPFv3 on an interface, create a routing instance, and specify the Router ID.
Note: You must explicitly specify a Router ID for the OSPFv3 process to be activated.
Topology
Figure 12-86: Basic OSPFv3 Topology
Configuration
R1
#configure terminal | Enter configure mode. |
---|
(config)#router ipv6 ospf | Create an OSPFv3 routing instance. |
(config-router)#router-id 10.10.10.10 | Specify a Router ID for the OSPFv3 routing process. |
(config-router)#exit | Exit OSPF router mode. |
(config)#interface eth2 | Enter interface mode. |
(config-if)#ipv6 router ospf area 0 | Enable OSPFv3 routing on an interface, and assign the Area ID 0. |
(config-if)#commit | Commit the candidate configuration to the running configuration. |
R2
#configure terminal | Enter configure mode. |
(config)#router ipv6 ospf | Create an OSPFv3 routing instance. |
(config-router)#router-id 10.10.10.11 | Specify a Router ID (10.10.10.11) for the OSPFv3 routing process. |
(config-router)#exit | Exit OSPF router mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#ipv6 router ospf area 0 | Enable OSPFv3 routing on an interface, and assign the Area ID (0). |
(config-if)#commit | Commit the candidate configuration to the running configuration. |
Validation
R1
#show ipv6 ospf neighbor
OSPFv3 Process (*null*)
Neighbor ID Pri State Dead Time Interface Instance ID
10.10.10.11 1 Full/Backup 00:00:35 eth2 0
#show ipv6 ospf database
OSPFv3 Router with ID (10.10.10.10) (Process *null*)
Link-LSA (Interface eth2)
Link State ID ADV Router Age Seq# CkSum Prefix
0.0.0.4 10.10.10.10 164 0x80000001 0xf3c6 1
0.0.0.3 10.10.10.11 106 0x80000001 0xd973 1
Router-LSA (Area 0.0.0.0)
Link State ID ADV Router Age Seq# CkSum Link
0.0.0.0 10.10.10.10 94 0x80000003 0xb2f0 1
0.0.0.0 10.10.10.11 95 0x80000003 0x9e05 1
Network-LSA (Area 0.0.0.0)
Link State ID ADV Router Age Seq# CkSum
0.0.0.4 10.10.10.10 94 0x80000001 0xf990
Intra-Area-Prefix-LSA (Area 0.0.0.0)
Link State ID ADV Router Age Seq# CkSum Prefix Reference
0.0.0.2 10.10.10.10 93 0x80000001 0xc35d 1 Network-LSA
Intra-Area-Te-LSA (Area 0.0.0.0)
Link State ID ADV Router Age Seq# CkSum
0.0.0.4 10.10.10.10 94 0x80000002 0x3504
0.0.0.3 10.10.10.11 95 0x80000002 0x6bcc
#show ipv6 ospfv3 topology
OSPFv3 Process (*null*)
OSPFv3 paths to Area (0.0.0.0) routers
Router ID Bits Metric Next-Hop Interface
10.10.10.10 --
10.10.10.11 1 10.10.10.11 eth2
R2
#show ipv6 ospf neighbor
OSPFv3 Process (*null*)
Neighbor ID Pri State Dead Time Interface Instance ID
10.10.10.10 1 Full/DR 00:00:31 eth1 0
R2#show ipv6 ospf database
OSPFv3 Router with ID (10.10.10.11) (Process *null*)
Link-LSA (Interface eth1)
Link State ID ADV Router Age Seq# CkSum Prefix
0.0.0.4 10.10.10.10 341 0x80000001 0xf3c6 1
0.0.0.3 10.10.10.11 281 0x80000001 0xd973 1
Router-LSA (Area 0.0.0.0)
Link State ID ADV Router Age Seq# CkSum Link
0.0.0.0 10.10.10.10 271 0x80000003 0xb2f0 1
0.0.0.0 10.10.10.11 270 0x80000003 0x9e05 1
Network-LSA (Area 0.0.0.0)
Link State ID ADV Router Age Seq# CkSum
0.0.0.4 10.10.10.10 271 0x80000001 0xf990
Intra-Area-Prefix-LSA (Area 0.0.0.0)
Link State ID ADV Router Age Seq# CkSum Prefix Reference
0.0.0.2 10.10.10.10 270 0x80000001 0xc35d 1 Network-LSA
Intra-Area-Te-LSA (Area 0.0.0.0)
Link State ID ADV Router Age Seq# CkSum
0.0.0.4 10.10.10.10 271 0x80000002 0x3504
0.0.0.3 10.10.10.11 270 0x80000002 0x6bcc
R2#show ipv6 ospfv3 topology
OSPFv3 Process (*null*)
OSPFv3 paths to Area (0.0.0.0) routers
Router ID Bits Metric Next-Hop Interface
10.10.10.10 1 10.10.10.10 eth1
10.10.10.11 --