Northern Ireland will face Switzerland in a play-off for a place in next year’s World Cup.
Michael O’Neill’s side avoided European giants Italy, while Republic of Ireland will face Denmark.
England have already qualified for next year’s tournament in Russia.
Away goals rule will determine who wins the tie after the two legs.
- QUIZ: Can you name all 23 players from England’s 2010 World Cup squad?
- QUIZ: Can you name the top 20 Premier League goalscorers of all time?
The four winners of the play-off games then progress to Russia 2018, with the World Cup draw on 1 December.
Northern Ireland qualified through their group after finishing second to Germany in Group C, while the Republic of Ireland finished second in Group D to Serbia.
England finished top of their group to seal their route through to next year’s tournament, while Wales and Scotland both failed to qualify for the play-off stages.
The draw in full:
Northern Ireland v Switzerland
Croatia v Greece
Denmark v Republic of Ireland
Sweden v Italy
The two-legged ties are set for November 9-11 and 12-14.
WATCH: Messi doesn’t owe a World Cup to Argentina, football owe a World Cup to Messi