Exporting routes from one protocol to another and from that protocol to the first one are discrete configuration functions.
For example, to run OSPF (Open Shortest Path First) and RIP (Routing Information Protocol) simultaneously, you must first configure both protocols and then verify the independent operation of each. Then you can configure the routes to export from OSPF to RIP and the routes to export from RIP to OSPF. Likewise, for any other combinations of protocols, you must separately configure each to export routes to the other.