If you ping the same destination by hostname, and it fails, you know name resolution is not working. If you ping a destination by IP address, and the ping succeeds, you know you have basic connectivity. ![]() You can use the ping command to test name resolution services, too. I've used the continuous ping during reboots trick more than any other, however. I particularly like the ability do a quick name resolution query. I've already uncovered some good uses for ping with the above options. This is a quick name resolution query: # ping -c 1 server01įigure 4: Using the quiet mode with ping. You can use a variation of this to simply display the IP address of the destination by sending a single ping to a hostname. For example, to send five pings, type: # ping -c 5 192.168.2.200 You can adjust the number of pings by using the -c option, followed by the desired number of ping messages. I can even use an audible cue with ping, letting me know when the pings are successful. Plan for this if you work with both platforms. Note: The options for ping vary somewhat between Linux and Windows. In the meantime, I can work on other projects. When the ping results show success, I know the reboot process on the remote machine has been completed. I can issue the reboot command and then set up a continuous ping from my laptop to the server. The server needs to be rebooted before I can continue with its configurations. For example, imagine I'm remotely connected to a Windows server from my Linux laptop. One of my favorite uses of ping is to inform me when a remote server or network device has restarted. A practical introduction to container terminologyīy default, Linux sends continuous pings.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |