Sri Lanka's president has sworn in a new Cabinet for a consensus government including members of the two main rival political parties.

President Maithripala Sirisena on Friday presided over the swearing in of 48 ministers.

It followed a consensus agreement between the parties led by Sirisena and Prime Minister Ranil Wickremesinghe to govern together for at least two years.

Their aim will be to face together war crimes allegations originating from the civil war that ended six years ago and to secure enough votes in Parliament to adopt a new constitution with political reforms and power sharing with ethnic minority Tamils.