The Republic of Ireland will face Bosnia-Herzegovina in the Euro 2016 play-offs.
Martin O’Neill’s side finished third in Group D behind world champions Germany and Poland, putting them into a two-legged knockout against a fellow third-placed side.
Opponents Bosnia were the next-best team after Belgium and Wales qualified from Group B.
In the other ties, Sweden take on Denmark in a Scandinavian derby, Ukraine play Slovenia and Norway tackle Hungary.
Matches will be played in next month’s international break.
The Republic have met Bosnia just once before, with the Irish winning 1-0 courtesy of a Shane Long header in May 2012 under previous manager Giovanni Trapattoni, having reached Euro 2012 via a play-off win over Estonia.
Midfielders James McCarthy, Darron Gibson and defender Seamus Coleman will face Everton team-mate Muhamed Besic in the opposition line-up, which also features Chelsea goalkeeper Asmir Begovic and former Manchester City striker Edin Dzeko.
“If there is any slight advantage to be had for us it’s that the second game is in Dublin,” O’Neill told uefa.com.
“We need to perform out in Bosnia to make sure that the second game in Dublin means something. We have a chance.
“We have some problems to negotiate with suspensions and who knows what will happen in the next few weeks, injury is always a possibility, but we will go for it and give it everything we’ve got.
“We had terrific results against Germany, the draw out in Germany and a home win, and because that’s so recent we can draw real confidence from it.”
Ukraine v Slovenia
Sweden v Denmark
Republic of Ireland v Bosnia-Herzegovina
Norway v Hungary