Any idea how to create a script in order to test connectivity with IP that represents a default gateway. And in case of connectivity, to print the message “Default gateway up” and if it’s not connected to give a message “Default gateway down”
Share
Put this script in crontab and let it run every min or whatever frequency you want.