Last active
May 2, 2019 15:27
-
-
Save v2keener/88f412b29f9aa2a2c2604e05f0675e7f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in {2..20}; do ping -w 1 -c 1 192.168.1.$i; done | grep ttl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For my router at 192.168.1.1, this pings to see which endpoints respond to a ping.
Specifically, this Gist helps me find my Ubuntu server when my router's DHCP gives a new IP.
This is a stopgap solution until I am able to log into the router my fiber service provided to me. #tmyk