Carl Crawford and Scott Van Slyke drove in two runs each and Ramon Hernandez hit his first home run with the Dodgers.
Rookie Hyun-Jin Ryu (5-2), given a 7-0 lead, allowed two runs and six hits in a season-high 7 1-3 innings. Ryu has allowed two earned runs or fewer in seven of his 10 appearances.
Los Angeles is last in the NL West at 19-26.
Milwaukee starter Wily Peralta (3-5) gave up six runs four earned and seven hits in 1 2-3 innings. Matt Kemp hit a run-scoring single in the first, and Los Angeles sent 11 batters to the plate in a five-run second.
Crawford's two-run double made it 3-0, shortstop Jean Segura's fielding error on Adrian Gonzalez's grounder allowed a run to score and Peralta issued consecutive bases-loaded walks to Scott Van Slyke and Nick Punto, his final two batters.
Ramon Hernandez, making just his sixth start of the season, homered off Alfredo Figaro leading off the third for his first home run since Sept. 2 for Colorado. Ryan Braun homered in the sixth for the Brewers, his first since May 10 and ninth overall.