We calculate a G2-period of a Fourier coefficient of a cuspidal Eisenstein series on the split simply-connected group E6, and relate this period to the Ginzburg-Rallis period of cusp forms on GL6. This gives us a relation between the Ginzburg-Rallis period and the central value of the exterior cube L-function of GL6