The United Nations secretary general says it's vital the international community "speaks with one voice" to end the bloodshed in Libya.

Ban Ki-moon has been speaking in Cairo after a second night of airstrikes on the north African country.

They included Tomahawk cruise missiles fired from a British submarine at air defence targets.