Understanding the LMXB X2127+119 in M 15 - I. X-ray eclipses and dips