The Dodgers and Tony Gonsolin agreed Tuesday to a two-year, $6.65 million deal, avoiding arbitration.