This blog post provides guidelines to ping IP address of remote server or computer and saves the ping results in notepad to trace the route result.
Ping IP and Trace Route Results in Notepad
Getting Started
The operating systems allows you to send data packets to remote computer over intranet or internet using IP adress. This process is called Ping IP Address command.
The computer which sends the data is called source computer and the computer to which the data sends is called destination computer.
Sending a ping can be done using Command Prompt in Windows and Terminal in Linux or macOS.
When you ping to a remote computer that destination computer also sends response back to the source computer which includes the response time, or latency, of the ping. The response is called Route Result which can help determine the quality of the connection.
Types of Ping IP Command
Based on the behaviour there two types of pings Normal and Continous ping, details are given below.
Normal Ping
In normal ping the source computer will send pings three to four times and later receives the result. The syntax of normal ping ip command is as given below.
Syntax WindowsFor the normap ping the syntex is same for both windows commpand prompt
[Ping] [ip address] [Options=Optional]
Example
ping 192.168.29.2
Syntax Linux or macOS
[Ping] [Options=Optional] [ip address]
Example
ping 192.168.29.2
Continuous Ping
Syntax for Windows Command Prompt
[Ping] [ip address] [-t]
Example
ping 192.168.29.2 -t
Syntax for Terminal Linux/macOS
[Ping] [-t] [ip address]
Example
ping -t 192.168.29.2
Where -t indicates continous ping untill stops by pressing [Ctrl]+[C]
Save Route Results in Notepad
The following ping command examples describes how saves the results received from route or remote computer in to a notepad in different operating system.
Using Normal Ping in Windows Command Prompt
ping 192.168.29.2 >> “C\ tracert.txt”
Result in tracert.txt file
Microsoft Windows [Version 10.0.19045.4780]
(c) Microsoft Corporation. All rights reserved.
C:\Users\nqe00359>ping 192.168.29.2
Pinging 192.168.29.2 with 32 bytes of data:
Reply from 192.168.29.2: bytes=32 time=4ms TTL=128
Reply from 192.168.29.2: bytes=32 time=5ms TTL=128
Reply from 192.168.29.2: bytes=32 time=3ms TTL=128
Reply from 192.168.29.2: bytes=32 time=5ms TTL=128
Ping statistics for 192.168.29.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 3ms, Maximum = 5ms, Average = 4ms
Ping command for normal ping in Linux or macOS is same like Windows operating system.
Using Continuous Ping in Windows Command Prompt
ping 192.168.29.2 -t >> “C\ tracert.txt”
Using Continous Ping in Linux or macOS terminal
Ping -t 192.168.29.2 >> tracert.txt
How to Ping IP Address
The steps to execute a ping command depends on the operating system, how to execute command in different operating system is give below
Windows Operating System
- On your keyboard, Press Windows + R key, The Run dialogbox will appear.
- Type CMD in the textbox and press Enter key.
- The Command Prompt window will appear.
- Type the command given above for Windows Command prompt and reveiw the result
Linux Operating System
- Open Terminal.
- Type the above command given for Linux
- You can use the traceroute command followed by the IP address.
- Hit Enter and review the results.
For Macs, follow the same cadence by opening Network Utility and inputting the hostname or IP address you’d like to ping.
cool and awesome post, helpful for daily activity
ReplyDeleteNice and beautiful
ReplyDelete