Defending Carabao Cup champions Manchester City have been drawn away to Preston North End in the third round, while Manchester United will host Rochdale.
Last season's beaten finalists Chelsea got a home tie against either Grimsby Town or Macclesfield Town, while Champions League winners Liverpool will go to MK Dons.
Tottenham face a trip to Colchester United and their north London rivals Arsenal are at home to Nottingham Forest.
Editors' Picks
Portsmouth will welcome rivals Southampton to Fratton Park for a south coast derby, with matches to be played in the week commencing September 23.