Using ping

ping is a simple command that let’s you quickly test if your box is connected to a network. However it’s not always reliable:

https://www.linux.com/news/ping-icmp-vs-arp (note I couldn’t get arping to work)

Also see:

Deprecated Linux networking commands and their replacements

https://app.pluralsight.com/player?course=linux-networking-service-management-security-fundamentals&author=andrew-mallett&name=linux-networking-service-management-security-fundamentals-m9&clip=5&mode=live