Tyler Anderson pitched six shutout innings, Gavin Lux hit a two-run homer and the Los Angeles Dodgers beat the St. Louis Cardinals 4-0.