The CERN Low Energy Ion Ring (LEIR) commissioning started in the year 2005. O4+and Pb54+ion beams are transferred at 4.2 MeV/nucleon from Linac 3 to LEIR through a low energy transfer line, for which the constraints and the resulting optics design are presented. First trajectory and dispersion measurements agreed only poorly with the theoretical model. Iterations of a refined optics model and further measurements improved the agreement between experimental observations and expectations. In particular, the effect of quadrupole errors in the line dipole magnets is discussed