Concepts / OSPF

OSPF

Router ID

Also called RID, OSPF router ID, router-id, loopback

The 32-bit name an OSPF (or BGP) router goes by, written like an IPv4 address and unique in the domain.

A name that looks like an address
A name that looks like an address

The router picks its ID once, in a fixed order: configured, else highest loopback, else highest interface address. It is a name on every Hello and LSA, not an address packets are sent to.

A router ID is the 32-bit name an OSPF or BGP router goes by, written like an IPv4 address and unique in the domain. It names the router in Hellos and as the author of its LSAs. On IOS it is the router-id command, else the highest loopback address, else the highest interface address. It is chosen when the process starts. Two routers with one ID overwrite each other's LSAs.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab