The vortex dynamics of Bi 2 Sr 2 Ca 1−x Gd x Cu 2 O 8+δ single crystals is investigated by magnetic relaxation and hysteresis measurements. By substituting Ca with Gd, it is found that the interlayer Josephson coupling is weakened and the anisotropy is increased, which leads to the change of vortex dynamics from 3D elastic to 2D plastic vortex creep. Moreover, the second magnetization peak, which can be observed in samples near the optimal doping, is absent in the strongly underdoped ( with 2D vortex ) region.