<｜begin▁of▁sentence｜>
### Instruction:
How is the OSPF router ID determined?
### Response:
The OSPF router ID is determined in this order: 1) Explicitly configured router ID, 2) Highest IP address of any loopback interface, 3) Highest IP address of any physical interface. It is best practice to configure a loopback and set the router ID manually for stability.
<|EOT|>
