Hallam Hope’s first-half double steered Carlisle United to a 3-1 home win against Gillingham and an FA Cup third round meeting with Sheffield Wednesday.
Hope fired home via deflection early on to put Carlisle in front, and doubled the lead finishing off Richie Bennett’s cut-back for a 2-0 lead at the break.
Scott Wagstaff scored shortly after half-time, tucking in a cut-back by Josh Parker to give the Gills a chance.
Shaun Miller ended their hopes with the Cumbrians’ third in injury-time.
Gillingham had chances in their second-half rally, but were unable to beat keeper Jack Bonham who made several telling saves, while Lee Martin might have done better with a close-range header that went wide.
There was also the chance for Hope to pick up his hat-trick but his shot cannoned off a post in the final 10 minutes, and he had further chances but was denied by Tomas Holy.
League Two Carlisle have now knocked out higher division opposition in both rounds so far, with Oldham dumped out previously.
This game took place 17 days after the initial 1-1 draw at Priestfield, as a frozen pitch forced a postponement of the initial tie a week before.
Carlisle pick up £27,000 in prize money and a potentially lucrative visit of the Owls on 6 January as their reward, while 88 Gillingham fans faced a trip of more than 330 miles home.
Steve Lovell’s side must now pick themselves up ahead of Friday night’s league trip to Fleetwood.
Carlisle United line up: Bonham, Grainger (T Miller 91), Brown (S Miller 61), Liddle, Parkes, Hope, Jones, Devitt (O’Sullivan 96), Bennett, Lambe, Hill.
Subs not used: Nabi, Cosgrove, Ellis, Rigg.
Goals: Hope (7), (37), S Miller (93).
Booked: Liddle (73), Lambe (86), T Miller (92),
Gillingham line up: Holy, O’Neill, Wagstaff, Lacey (Garmston 64), Ehmer, Nugent, Byrne (Wilkinson 85), Clare (List 81), Martin, Parker, Eaves.
Subs not used: Nelson, Zakuani, Hessenthaler, Cundle.
Goal: Wagstaff (47).
Booked: Clare (25), Byrne (57), Parker (66), Ehmer (77), O’Neill (91).
Referee: Mr Mark Heywood
Attendance: 2,357 (88 Gills).