For vaginal delivery, give ampicillin 2 g IV or IM plus gentamicin 1.5 mg / kg (maximum 120 mg) IV administered within 30 minutes before delivery, followed by ampicillin 1 g IV or IM (or amoxicillin 1 g [as the trihydrate] orally) 6 hours later.