<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=IPv6%3A_OSPF_Cost</id>
	<title>IPv6: OSPF Cost - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=IPv6%3A_OSPF_Cost"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=IPv6:_OSPF_Cost&amp;action=history"/>
	<updated>2026-04-25T23:29:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=IPv6:_OSPF_Cost&amp;diff=56107&amp;oldid=prev</id>
		<title>Onnowpurbo: Created page with &quot;Cost  OSPF uses a reference bandwidth of 100 Mbps (10^8) for cost calculation. The formula to calculate the cost is reference bandwidth divided by interface bandwidth ; Interf...&quot;</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=IPv6:_OSPF_Cost&amp;diff=56107&amp;oldid=prev"/>
		<updated>2019-04-05T21:15:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Cost  OSPF uses a reference bandwidth of 100 Mbps (10^8) for cost calculation. The formula to calculate the cost is reference bandwidth divided by interface bandwidth ; Interf...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Cost&lt;br /&gt;
&lt;br /&gt;
OSPF uses a reference bandwidth of 100 Mbps (10^8) for cost calculation. The formula to calculate the cost is reference bandwidth divided by interface bandwidth ; Interface Cost= 10^8/(interface bandwidth). Calculated values are rounded up to the nearest single decimal value. This means that OSPF will calculate interfaces with speeds higher than 10 Mbps as a cost of 1 (Table 1). T he result of this is that OSPF routers in the network cannot make an accurate path calculation when comparing fast Ethernet interface versus a gigabit Ethernet interface as both interfaces has a cost of 1. [2]&lt;br /&gt;
Interface Type	Cost&lt;br /&gt;
100 Gbps 	1&lt;br /&gt;
40 Gbps 	1&lt;br /&gt;
10 Gbps 	1&lt;br /&gt;
10 Gbps 	1&lt;br /&gt;
1 Gbps 	1&lt;br /&gt;
100 Mbps 	1&lt;br /&gt;
10 Mbps 	10&lt;br /&gt;
1.544 Mbps 	64&lt;br /&gt;
768 Kbps 	133&lt;br /&gt;
384 Kbps 	266&lt;br /&gt;
128 Kbps 	781&lt;br /&gt;
&lt;br /&gt;
Table 1 - Default OSPF cost calculations.&lt;br /&gt;
&lt;br /&gt;
There are two methods for changing the calculated costs - auto-cost and interface cost.&lt;br /&gt;
&lt;br /&gt;
The auto-cost reference-bandwidth command allows you to change the reference bandwidth that OSPF uses to calculate its metrics:&lt;br /&gt;
&lt;br /&gt;
router ospf 1&lt;br /&gt;
  ...  &lt;br /&gt;
  auto-cost reference-bandwidth 1000000&lt;br /&gt;
&lt;br /&gt;
REMEMBER You must ensure the reference bandwidth is consistent across all routers.&lt;br /&gt;
&lt;br /&gt;
ip ospf cost can also be used to change the OSPF cost. However, this works on a per-interface basis and will override the calculated cost.&lt;br /&gt;
&lt;br /&gt;
int gi0/1&lt;br /&gt;
  ...&lt;br /&gt;
  ip ospf cost 1234&lt;br /&gt;
&lt;br /&gt;
To verify the interface cost, the following command is used:&lt;br /&gt;
&lt;br /&gt;
show ip ospf interface | inc Cost&lt;br /&gt;
  Process ID 1, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 1&lt;br /&gt;
  Topology-MTID    Cost    Disabled    Shutdown      Topology Name&lt;br /&gt;
  Process ID 1, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 1&lt;br /&gt;
  Topology-MTID    Cost    Disabled    Shutdown      Topology Name&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>