How does ipip determine what route to us

Dear gentle folk,

I been using IPIP for a while between miks, but I have no clue how it determines where to actually send packets.

I know thet go in at one end and out the other end of the tunnel; but what routing algorithm do they use to actually forward the packets between start and end? Is it just the normal routing algorithm that would be used to get from A to B? Does it use my OSPF data if the tunnel is between two miks within the same ASN?

Thanks Homer

IPIP is only a point-to-point tunnel with IP address at each end. You have to set up routing (either static routes or using some routing protocol such as BGP or OSPF; with later you still have to decide which local subnets to advertise to IPIP peer).