OSPF Commands
ip ospf cost
This command explicitly specifies the cost of the link-state metric in a router-LSA.
The interface cost indicates the overhead required to send packets across a certain interface.
This cost is stated in the Router-LSA's link. Typically, the cost is inversely proportional to the
bandwidth of an interface. By default, the cost of an interface is calculated according to the
following formula:
By default the reference bandwidth is 100 Mbps (10
command,
To set the interface cost manually, use this command.
The no form of this command resets the interface cost to the default value.
Syntax
ip ospf [<ip_address>] cost <1-65535>
no ip ospf [<ip_address>] cost
Parameter
<ip_address>
<1-65535>
Interface mode
Mode
The following example shows setting ospf cost to 10 on interface VLAN25 for IP address
Examples
10.10.10.50
show ip ospf interface
Related Commands
auto-cost reference bandwidth
36.30
reference bandwidth/interface bandwidth
auto-cost reference bandwidth command on page
Description
The IPv4 address of the interface, in dotted decimal notation.
The link-state metric.
awplus#
configure terminal
awplus(config)#
interface VLAN25
awplus(config-if)#
ip ospf 10.10.10.50 cost 10
Software Reference for SwitchBlade® x908, x900 and x600 Series Switches
TM
AlliedWare Plus
Operating System - Software Version 5.3.1
8
), but can be set to a different value by the
36.12.
C613-50007-01 REV B