High precision six-degree-of-freedom sensing plays an important role in future gravitational space missions. In gravitational wave detection, measurements of all six degrees of freedom of freely floating test mass are required for reducing the cross-coupling noise in sensitive axis, which is frequently an important limiting factor in the performance. Interferometry and capacitive sensing have been successfully combined in LISA pathfinder to achieve six degrees of freedom measurements. In this paper, we report a six-degree-of-freedom interferometer system based on multiplex differential wavefront sensing and longitudinal pathlength sensing. Compared to conventional capacitive sensing or optical levers, it has a higher measurement accuracy. The results of our table-top experiment show motion in all six degrees of freedom of a cubic test mass are simultaneously measured with a translational and tilt sensitivity of 100 pm/Hz1/2 and 10 nrad/Hz1/2 above 1Hz, respectively. The translational dynamic range is greater than ± 10 mm with a nonlinearity less than 6 µm, and the tilt dynamic range is approximately ± 500 µrad with a nonlinearity less than 60 µrad. The coupling errors between multiple degrees of freedom are dominated by tilt-to-translation and tilt-to-tilt coupling, which are roughly 2~4 μm and 15~25 μrad, respectively, within a range of [-500 μrad, +500 μrad].