Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
Community Member

OSPF router-id and IP addressing best practice ?


I'm doing large enterprise network which includes new IP addressing
and OSPF as routing protocol. I took for clients, servers
and other stuff in network and divided it hierarchically so that I can
do summarizing later on. My WAN connections are all metro ethernet L2.
For WAN IP addresses I took, simply for easier distinguish
between WAN IPs and other IPs. WAN addresses I will be able to
summarize. My dilemma is router loopback's IP addresses. I'm planning
to use,,, etc, for all
loopbacks in my network and those subnet will not be included in
summarization. Reason for that is also easier distinguishing so I know
that those subnets are my loopbacks.
At the end, one day, I could have almost 1200 routers in all OSPF
areas. Is it good idea to put loopbacks like that? I will have 1000
lines in routing table without summarization, just from loopbacks .
If I use loopback from C classes which can be summarized, I won't be
able to easly recognize loopbacks in my routing table. That loopbacks
will be management addresses and used for accessing and for mgmt
What is best practice for loopbacks globally in enterprise network?

Another question is about OSPF router id. Is it smart to assign router
ids like, lets say,,, since those addresses won't
exist in my network? Or, is it better to use Loopback IP address?


Everyone's tags (4)
Hall of Fame Super Gold

Re: OSPF router-id and IP addressing best practice ?


The logic of choosing for subnets for end stations and choosing for WAN is clear and makes good sense. I do not understand your logic in choosing for loopback interfaces.

I would suggest that it might make much better sense to choose something like for loopback addresses. If it is safe to assume that you would not have more than 255 OSPF areas and that no area would have more than 255 OSPF routers, then you might use a method in which the third octet is the OSPF area number and the fourth octet is for individual routers within the area.

Unless there is some reason that is not obvious in your post I would recommend using the router loopback address as the OSPF router ID. That is simple and consistent and will scale well. I will sometimes use OSPF router IDs like or when I set up something in the lab so that they are very unique and recognizable. But that does not scale if you are going to have 1200 routers.



Community Member

Re: OSPF router-id and IP addressing best practice ?

Well I cannot use since it is in use in existing IP scheme. The reason why I choose is simple: to easily recognize loopback among other IP addresses and cause it is last octet.

CreatePlease to create content