You can use the ping command to verify the connectivity between two network devices that are IP (Internet Protocol) based.
To ping a network device using a system that is running OSX, complete the following:
Note: If you do not enter the number of times that you want to ping the IP address, your system will continuously ping the address until you manually stop it. To stop pinging the IP address, press Control + C.
If the ping is successful, you should receive replies from the address that you are trying to ping. If the ping is unsuccessful, you need to diagnose your network setup further.
To verify if your local network adapter is working, you can ping 127.0.0.1, which is a loopback address. The loopback address is a virtual network port for most operating systems.