The invention discloses an integral gearbox of a rod roller, wherein a box body of the integral gearbox is an integral structure. The box body is provided with a first transmission shaft, a second transmission shaft, a third transmission shaft, a fourth transmission shaft, a gap bridge shaft, a reversible joystick and a speed-change joystick. The first transmission shaft is at least provided with two or more speed-change driving gears with different diameters; the second transmission shaft is provided with a speed-reduction gear, a speed-change passive gear and a speed-change sliding gear, and the speed-change sliding gear is provided with a shift fork which is connected with the speed-change joystick; the third transmission shaft is provided with a speed-reduction passive gear and two reversing active gears; the fourth transmission shaft is provided with two reversion passive gears and a reversion sliding gear, the reversion sliding gear is arranged between the two reversion passive gears and is provided with a shift fork which is connected with the reversible joystick; and the gap bridge shaft is arranged between the fourth transmission shaft and the third transmission shaft and is provided with a gap bridge gear. The integral gearbox of the road roller, disclosed by the invention, has the characteristics of small size, reasonable structure, easiness in manufacturing, low cost, convenience and flexibility in operation and control, and high work efficiency.