OSPF can be configured with segment routing in shortest path forwarding using the same procedures as those used to configure IS-IS. See Segment routing in shortest path forwarding in the IS-IS section for more information.