Ronaldo breaks group stage goal record as Real march on
Midfielder Luka Modric opened the scoring and set the first record for Madrid, who have scored in an unprecedented 31 consecutive Champions League fixtures, when he curled home a beauty from 20 metres after 25 minutes.
Ronaldo scored Madrid's second, and his group stage record ninth of the campaign, three minutes after the interval and then spurned a chance to make it 10 when he had a last-minute penalty saved.
Javier Saviola scored twice as Olympiakos pipped Benfica to second spot in Group C by beating visitors Anderlecht 3-1. It was an extraordinary match in which the Belgians finished with eight men after the Greek side scored one penalty having missed two.
Benfica beat group winners Paris St Germain 2-1 but drop into the Europa League.
Substitute Tomas Wagner scored in the final minute as Viktoria Plzen came from behind to beat a nine-man CSKA Moscow 2-1 to secure a place in the Europa League.
Unmarked Wagner collected a Frantisek Rajtoral cross to net the winner, after Ahmed Musa had headed home in the 65th minute to put CSKA ahead before Daniel Kolar equalised with a header in the 76th minute.