The eclipse payer is sunnah to do. you may pray it like any two rak^ah prayer. however there is a complete sunnah way and a minimum complete sunnah way. the complete sunnah way is to have two standings and two bowings in each cycle and to recite the chapter of all Baqarah or its equivalent amount in the first standing and the equivalent of 100 verses from al baqarah in the second standing. In the second rak^ah for the first standing you recite the equivalent of 150 verses of al baqarah and for the second standing the equivalent of 80 verses from al Baqarah. in the first rak^ah for the first bowing you say tasbeeH like the length of 100 verses from al baqarah and in the second like 80 verses. in the second rak^ah in the first bowing like 70 verses and in the second bowing like 50 verses. it is sunnah to give two speeches like the ^eid except without saying Allāhu Akbar.