27.2.5 Configuring route selection
- Points to note
-
The example below shows how to use the ipv6 ospf cost command to specify the cost of sending a packet on a specific interface.
If you specify 1 in the maximum-paths command, the protocol does not establish an equal-cost multipath even when routes have an equal-cost value.
This subsection provides an example of configuring route selection when using single-path routes.
Command examples
-
(config)# ipv6 router ospf 1
(config-rtr)# maximum-paths 1
(config-rtr)# exit
Sets 1 as the maximum number of OSPFv3 paths.
-
(config)# interface vlan 1
(config-if)# ipv6 ospf 1 area 0
(config-if)# ipv6 ospf cost 10
(config-if)# exit
Sets the cost to 10.
-
(config)# interface vlan 2
(config-if)# ipv6 ospf 1 area 0
(config-if)# ipv6 ospf cost 2
Set the cost to 2. The route through VLAN 2 has priority because it has a smaller cost value than VLAN 1.