Set Priority
This example shows how to set priority for an interface. Set a high priority for a router to make it the Designated Router (DR). Router R3 is configured with a priority of 10; this is higher than the default priority (default priority is 1) set for R1 and R2. This makes R3 the DR.
Topology
Figure 12-87: OSPFv3 Set Priority
R3
#configure terminal | Enter configure mode. |
(config)#router ipv6 ospf | Create an OSPFv3 routing instance. |
(config-router)#router-id 10.10.10.13 | Specify a Router ID (10.10.10.13) 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)#ipv6 ospf priority 10 | Specify the router priority to a higher priority (10) to make R3 the Designated Router (DR). |
(config-if)#commit | Commit the candidate configuration to the running 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 (10.10.10.10) 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
(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 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. |
Validation
R1
rtr1#show ipv6 ospf neighbor
OSPFv3 Process (*null*)
Neighbor ID Pri State Dead Time Interface Instance ID
10.10.10.11 1 Full/DROther 00:00:37 eth2 0
10.10.10.13 10 Full/DR 00:00:37 eth2 0
rtr1#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 398 0x80000001 0xf3c6 1
0.0.0.4 10.10.10.11 71 0x80000001 0x4768 1
0.0.0.4 10.10.10.13 611 0x80000002 0x695b 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 49 0x80000004 0xf2ac 1
0.0.0.0 10.10.10.11 50 0x80000004 0xecb1 1
0.0.0.0 10.10.10.13 61 0x80000004 0xe0bb 1
Network-LSA (Area 0.0.0.0)
Link State ID ADV Router Age Seq# CkSum
0.0.0.4 10.10.10.13 61 0x80000002 0xa6b0
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.13 60 0x80000002 0xd940 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 49 0x80000003 0x75bf
0.0.0.4 10.10.10.11 50 0x80000004 0x9f92
0.0.0.4 10.10.10.13 61 0x80000003 0xf935
rtr1#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
10.10.10.13 1 10.10.10.13 eth2
R2
R2#show ipv6 ospf neighbor
OSPFv3 Process (*null*)
Neighbor ID Pri State Dead Time Interface Instance ID
10.10.10.10 1 Full/Backup 00:00:31 eth2 0
10.10.10.13 10 Full/DR 00:00:39 eth2 0
R2#show ipv6 ospf database
OSPFv3 Router with ID (10.10.10.11) (Process *null*)
Link-LSA (Interface eth2)
Link State ID ADV Router Age Seq# CkSum Prefix
0.0.0.4 10.10.10.10 525 0x80000001 0xf3c6 1
0.0.0.4 10.10.10.11 194 0x80000001 0x4768 1
0.0.0.4 10.10.10.13 736 0x80000002 0x695b 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 175 0x80000004 0xf2ac 1
0.0.0.0 10.10.10.11 174 0x80000004 0xecb1 1
0.0.0.0 10.10.10.13 186 0x80000004 0xe0bb 1
Network-LSA (Area 0.0.0.0)
Link State ID ADV Router Age Seq# CkSum
0.0.0.4 10.10.10.13 186 0x80000002 0xa6b0
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.13 185 0x80000002 0xd940 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 175 0x80000003 0x75bf
0.0.0.4 10.10.10.11 174 0x80000004 0x9f92
0.0.0.4 10.10.10.13 186 0x80000003 0xf935
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 eth2
10.10.10.11 --
10.10.10.13 1 10.10.10.13 eth2
R3
R3#show ipv6 ospf neighbor
OSPFv3 Process (*null*)
Neighbor ID Pri State Dead Time Interface Instance ID
10.10.10.10 1 Full/Backup 00:00:38 eth2 0
10.10.10.11 1 Full/DROther 00:00:29 eth2 0
R3#show ipv6 ospf database
OSPFv3 Router with ID (10.10.10.13) (Process *null*)
Link-LSA (Interface eth2)
Link State ID ADV Router Age Seq# CkSum Prefix
0.0.0.4 10.10.10.10 658 0x80000001 0xf3c6 1
0.0.0.4 10.10.10.11 329 0x80000001 0x4768 1
0.0.0.4 10.10.10.13 869 0x80000002 0x695b 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 309 0x80000004 0xf2ac 1
0.0.0.0 10.10.10.11 309 0x80000004 0xecb1 1
0.0.0.0 10.10.10.13 319 0x80000004 0xe0bb 1
Network-LSA (Area 0.0.0.0)
Link State ID ADV Router Age Seq# CkSum
0.0.0.4 10.10.10.13 319 0x80000002 0xa6b0
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.13 318 0x80000002 0xd940 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 309 0x80000003 0x75bf
0.0.0.4 10.10.10.11 309 0x80000004 0x9f92
0.0.0.4 10.10.10.13 319 0x80000003 0xf935
R3#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 eth2
10.10.10.11 1 10.10.10.11 eth2
10.10.10.13 --