ping command enc28j60

I am newbie with Arduino and am looking for a code so you can ping an ip and depending on the outcome trigger a relay. Encj2860 am using and I am not finding the libraries how to perform a ping test.

Could give me guidance ?

thanks