During the final stages of the great war, between Lord Sri Rama(and army consisting of brother Lakshmana and vanaras) and Ravana( and his demon soldiers), Ravana could foresee his final defeat at the hands of Lord Sri Rama. Ravana addressed his demon soldiers and told them about his fears. And during that address Ravana mentioned about a curse that he had received from Ikshvaku king Anaranya:-
Rama the son of Dasaratha is the man I think of whom Anaranya born of Ikshvaku dynasty formerly spoke, saying: 'O, the worst of demons, the worst of your race and the wretched one! In my race will be born a man who will slay you in battle with your sons, ministers, army, horses and charioteer."
Shlokas 6-60-8,and 9.
Ikshvaku was the first king who executed the Manusmrti or religious rules of Hindu living which were composed by his father Manu. Ikshvaku, ruled as Monarch at the beginning of the Satya Yuga or First Yuga.
King Anaranya (also Anena) was the third Ikshvaku king after king Ikshvaku.And king Dasharatha and Sri Rama, were the 60th and 61st respectively. So apparently,Ravana attacked king Anaranya,a long long time ago.
Did Ravana attack subsequent Ikshvaku kings after king Anaranya? Did Ravana ever attack the Ikshvaku king Dasharatha?