new user- ethernet shield and checking connection by ping

hello.
i'm new to the arduino but i have some basic knowledge with C,C++
i bought the nano & ethernet shield and board with 4 relays.
(i will use it as NC)

i want to check every X time if i've got a conection to the internet.
if yes - good dont do nothing
if not - send several alive test to the internt.

  • if no conection- open the relay for X seconds and close it again.

i'm looking for some direction or tutorial for the ethernet shild
and ping examples.

thank you :slight_smile:
ge_va.