Rickie Weeks and Cody Ransom both hit a two- run homer on Wednesday and the Brewers avoided a sweep with an 8-4 win over the Reds in the finale of a three-game series.

Zack Greinke (9-2) got the win, allowing two runs on five hits with a walk over six innings. He improved to 4-0 in six career starts against the Reds.

Aramis Ramirez added a pair of RBI for Milwaukee, which halted a season-high four-game slide.

"I feel like we've been playing good all month and just not putting any streaks together," said Greinke.

Homer Bailey (5-6) gave up five runs -- four earned -- over four-plus innings to suffer the loss.

Ryan Ludwick hit two solo homers and Brandon Phillips added an RBI single for Cincinnati, which had won three of its previous four games.

Phillips left the game in the sixth inning after taking an inadvertent knee to the head from Ramirez earlier in the contest.

"He said he was feeling dizzy," Reds manager Dusty Baker told reporters. "When a guy says he is feeling dizzy you have to take every precaution you can."

Weeks opened the scoring in the second inning, belting a homer to center after Corey Hart's leadoff triple.

An inning later, Bailey walked Norichika Aoki, then allowed him to reach second on an errant pickoff attempt. Ramirez capitalized with a two-out single through the left side of the infield to give Milwaukee a 3-0 lead.

The Reds recorded a two-out extra-base hit in each of the first three innings. They wasted a Joey Votto double in the opening frame and a Todd Frazier triple in the second before finally capitalizing on Chris Heisey's Tobago in the third.

Votto followed that base hit with a walk before Phillips singled to right, making it 3-1, but Ransom extended the Cincinnati advantage a half-inning later.

The shortstop faced an 0-2 count with two down when he turned on a fastball and sent into the seats in left, scoring Hart in the process.

The Reds never recovered, despite getting leadoff homers from Ludwick in both the fourth and ninth innings. Miguel Cairo added an RBI groundout in the eighth, but the Brewers scored three runs in their final at-bat to increase the lead.

Travis Ishikawa had a two-out RBI single in the inning and Jose Arredondo issued a pair of bases loaded walks later in the frame.

Game Notes

Ludwick recorded his 14th career multi-homer game...The Reds went 1-for-6 with runners in scoring position...At least one home run has been hit in each of the last 65 games at Great American Ball Park, marking the longest active streak in the major leagues.