Cuban infielder Alexander Guerrero has agreed to a four-year, $28-million contract with the Dodgers, according to people familiar with the situation who spoke on the condition of anonymity.