/
set protocols ospf6 area range cost

set protocols ospf6 area range cost

Run the command set protocols ospf6 area range cost to configure the cost of a summary route. The cost parameter is used to calculate the shortest path for destination networks. 

Run the command delete protocols ospf6 area range cost to delete this configuration from the switch.


Command Syntax

set protocols ospf6 area {<ipv4>|<area-id>} range <ipv6/prefix-len> cost <cost>

delete protocols ospf6 area (<ipv4>|<area-id>) range <ipv6/prefix-len> cost <cost>


Parameters

ParameterDescription
area {<ipv4>|<area-id>}Specifies the area ID for the OSPFv3 instance. The value is either in IPv4 dotted decimal format or an integer ranging from 0 to 4294967295.
range <ipv6/prefix-len>Specifies the IPv6 area range. The values is in IPv6/Prefix length format.
cost <cost>Specifies the cost of the summary route. The values ranges from 0 to 6777215.

Example

  • This example configures the cost of the summary route for range 2001::/64 to 32.
admin@XorPlus# set protocols ospf6 area 0.0.0.0 range 2001::/64 cost 32

Copyright © 2025 Pica8 Inc. All Rights Reserved.