
As usual, X represents the router number.
OSPF is running on all links in the topology, including R4's loopback. Our test traffic flow will be travelling from R1 to R4. Traffic has been manually preffed to go R1 -> R2 -> R4:
R1:
interface FastEthernet0/0
ip ospf cost 10000