Testing Network Connectivity with ping
After you’ve finished your network configurations, setting them either in Sysinstall or with /etc/netstart, you can use ping to make sure the settings are correct. The ping program is a simple ICMP-based tool that checks for echoes from a specified host and reports the roundtrip time it takes each packet to get to the host and back.
The use of ping is pretty simple. You can run it against either an IP address or a hostname (or /etc/hosts alias), and it will run until you interrupt it with Ctrl+C:
# ping fred PING fred (114.235.123.11): 56 data bytes 64 bytes from 114.235.123.11: icmp_seq=0 ttl=243 time=485.344 ms 64 bytes from 114.235.123.11: icmp_seq=1 ttl=243 time=351.589 ms ^C --- fred ping statistics ...
Get FreeBSD6 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.