I assume that you are using the SGMII mode to connect. In that case, the answer to this question might be helpful:
Basically, you'll need to make sure that the quartus programming is opened and running. Also, what is the PHY chip that you are using? There might be some compatibility issue.