OcNOS-SP : Layer 3 Guide : Open Shortest Path First Command Reference : OSPFv2 Commands : area interface cost
area interface cost
Use this command to explicitly specify the cost of the link-state metric in a router-LSA.
The interface cost indicates the overhead required to send packets across an interface. This cost is stated in the Router-LSA’s link. The cost is inversely proportional to the bandwidth of an interface. By default, the cost of an interface is calculated based on the bandwidth (108/ bandwidth). Use this command to set the cost manually.
Use the no parameter with this command to reset the cost to its default value.
Command Syntax
area (<0-4294967295> | A.B.C.D) interface <IFNAME> cost <1-65535>
no area (<0-4294967295> | A.B.C.D) interface <IFNAME> cost
Parameters
A.B.C.D
OSPF area ID as an IPv4 address
<0-4294967295>
OSPF area ID as a decimal value
IFNAME
Specify the interface name
<0-65535>
Link-state metric
Default
By default, cost is 10.
Command Mode
Router mode
Applicability
This command was introduced in OcNOS version 6.3.0.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#area 1 interface xe1 cost 10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Last modified date: 10/16/2023