OcNOS-RON-6.3.1 : Layer 3 Guide : Open Shortest Path First Command Reference : OSPFv3 Commands : ipv6 ospf cost
ipv6 ospf cost
Use this command to specify the link-cost described in LSAs.
The cost (or metric) of an interface in OSPF indicates the overhead required to send packets across a certain interface. The value is taken to describe Link State information, and used for route calculation.
Use the no parameter with this command to reset the cost to default.
Command Syntax
ipv6 ospf cost <1-65535>
ipv6 ospf cost <1-65535> instance-id (<0-31>|<64-95>)
no ipv6 ospf cost
no ipv6 ospf cost instance-id (<0-31>|<64-95>)
Parameters
cost
Specify the link-state metric.
<1-65535>
Specify the link-state metric.
instance-id
Specify the instance.
<0-31>
Interface instance ID for IPv6 unicast
<64-95>
Interface instance ID for IPv4 unicast.
Default
By default, ipv6 cost value is 10.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#interface eth0
(config-if)#ipv6 ospf cost 20 instance-id 1
Last modified date: 07-13-2023