Use this command to statically set the cost of sending an OSPF packet on an interface.
cost | Specifies the cost of sending a packet. Valid values range from 1 to 65535. The default value is the reference bandwidth divided by the interface bandwidth. |
None.
Configuration command, Interface configuration.
Each router interface that participates in OSPF routing is assigned a default cost. This command overwrites the default OSPF interface cost.
The reference bandwidth defaults to 100Mbps and can be modified using auto-cost reference-bandwidth.
The “no” form of this command resets the OSPF cost to the default of 10.
This example shows how to set the OSPF cost to 20 for VLAN 1:
System(rw-config)->interface vlan 1 System(rw-config-intf-vlan.0.1)->ip ospf cost 20