12-14-2022 12:32 AM
Hi..
We have several interface ip address like in the picture, and why router id of my ospf is 10.103.242.5 and not using my loopback ip address?
Solved! Go to Solution.
12-14-2022 04:18 AM - last edited on 12-15-2022 09:46 PM by Translator
now all above is right if you
1- config interface ip
2- config Loopback
3- finally config router ospf
but I think you do
1-config interface ip
2- config router ospf
<<- when you add this command any new interface ip or lo not consider for election, because the ospf already elect router-id, here I lab check
clear ip ospf process
to see if ospf re-elect again but NO still ospf use the router-id of first election, and hence we need to shift this step to be step after config Lo and we can do that with no router ospf x then router ospf x
3- config loopback
12-14-2022 12:35 AM - last edited on 12-15-2022 09:39 PM by Translator
Hello @hs08 ,
OSPF RID is chosen when you configure the router ospf process .
if you have configured the loopback interface later the OSPF process will not use it as RID unless you restart the process with
clear ospf <process-number>.
Another possible reason is if the loopback belongs to a different routing table / VRF.
Hope to help
Giuseppe
12-14-2022 01:09 AM - last edited on 12-15-2022 09:36 PM by Translator
I already clear ospf process but still router id not use
loopback ip addr
12-14-2022 12:40 AM - last edited on 12-15-2022 09:39 PM by Translator
clear ip ospf process
<< this will solve route-ID selection issue.
12-14-2022 01:10 AM - last edited on 12-15-2022 09:40 PM by Translator
I already
clear ospf process
but still router id not use my
loopback ip addr
12-14-2022 01:16 AM
let me check this issue, I will lab and update you after 1 hour
12-14-2022 01:31 AM
noted with many thanks. Here i send my screen shoot of my ospf router id
12-14-2022 01:39 AM - last edited on 12-15-2022 09:41 PM by Translator
the loopback is down that why the OSPF not use it,
no shut the loopback and
clear ospf process
do this and see result
12-14-2022 01:44 AM
Still same
12-14-2022 03:13 AM - last edited on 12-15-2022 09:42 PM by Translator
you are right, I try
clear ip ospf process
and the ospf not elect Lo as route-id
the only case that the ospf re-elect the router-id is by
no router ospf x
router ospf x
12-14-2022 03:36 AM
Thanks for your lab. So below statement is not right?
OSPF Router ID selection algorithm works as below.
• Any manually configured OSPF Router ID in OSPF Process is selected as the OSPF Router ID.
• If there is no OSPF Router ID configured, the highest IP address on any of the Routers Loopback Interfaces is selected as the OSPF Router ID.
• If there is no Loopback Interfaces configured, the highest IP address on its active interfaces is selected as the OSPF Router ID.
12-14-2022 04:18 AM - last edited on 12-15-2022 09:46 PM by Translator
now all above is right if you
1- config interface ip
2- config Loopback
3- finally config router ospf
but I think you do
1-config interface ip
2- config router ospf
<<- when you add this command any new interface ip or lo not consider for election, because the ospf already elect router-id, here I lab check
clear ip ospf process
to see if ospf re-elect again but NO still ospf use the router-id of first election, and hence we need to shift this step to be step after config Lo and we can do that with no router ospf x then router ospf x
3- config loopback
12-14-2022 01:32 AM
the pciture is missing the post, if you can share the output again - if the router-id manually added that will be updated LSA to all the neighbours automatically, but i would like to see the output, what is configured and what is not taking effective
router id choose as below process :
OSPF Router ID selection algorithm works as below.
• Any manually configured OSPF Router ID in OSPF Process is selected as the OSPF Router ID.
• If there is no OSPF Router ID configured, the highest IP address on any of the Routers Loopback Interfaces is selected as the OSPF Router ID.
• If there is no Loopback Interfaces configured, the highest IP address on its active interfaces is selected as the OSPF Router ID.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide