Oct 6, 2015

OSPF - Router ID

R1(config)#router os 1
R1(config-router)#router-id 1.1.1.1
R1#sh ip protocols
Routing Protocol is "ospf 1"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Router ID 1.1.1.1 <== [HERE!!]

This is router ID cannot be changed, once some interface has run OSPF.
R1(config-router)#
*Mar  1 00:43:06.031: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on Serial1/0 from LOADING to FULL, Load

R1(config-router)#router-id 2.2.2.2
Reload or use "clear ip ospf process" command, for this to take effect <== [Here]
R1(config-router)#


AUTO-COST REFERENCE BANDWIDTH ON OSPF

In the cost of ospf  = 10^8 / bandwidth

At here 10^8 is equal to auto-cost reference bandwidth.

[Topology]

R1 [f0/0]   —- [f0/0] R2

R1(config-router)#no ?
auto-cost    Calculate OSPF interface cost according to bandwidth

R1(config-router)#auto-cost reference-bandwidth ?
<1-4294967> The reference bandwidth in terms of Mbits per second

R1(config-router)#auto-cost reference-bandwidth 100 <= [Here means 10^8]

Now, let us see how it works. As we had known that the default bandwidth of fast ethernet is 100 Mbps. Therefor, the cost of fast ethernet is 10^8/ 10^8 == 1

R1(config-if)#ip ospf 12 area 0
R1(config-if)#exit
R1(config)#do sh ip ospf int fa0/0
FastEthernet0/0 is up, line protocol is up
Internet Address 12.1.1.1/24, Area 0, Attached via Interface Enable
Process ID 12, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 1 

R1(config-if)#bandwidth ?
<1-10000000> Bandwidth in kilobits

R1(config-if)#bandwidth 10000
R1(config-if)#do sh ip ospf int fa0/0
FastEthernet0/0 is up, line protocol is up
Internet Address 12.1.1.1/24, Area 0, Attached via Interface Enable
Process ID 12, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 10  <=> [10^8/10000,000]