We establish that strong Fermi surface nesting drives the Neel transition in the RNi2Ge2 compounds. Generalized susceptibility, chi(0)(q), calculations found nesting to be responsible for both incommensurate wave vector, (0 0 0.793), in GdNi2Ge2, and the commensurate structure, (0 0 1), in EuNi2Ge2, as revealed by x-ray resonant exchange scattering. A continuous transition from incommensurate to commensurate magnetic structures via band filling is predicted. The surprisingly higher T-N in EuNi2Ge2 than that in GdNi2Ge2 is also explained.