Tools
Tools
Ping –help:
Show all the function\option of ping command
C:\Users\HP>ping --help
Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] [-R] [-S srcaddr] [-c compartment] [-p]
[-4] [-6] target_name
Options:
-t Ping the specified host until stopped.
To see statistics and continue - type Control-Break;
To stop - type Control-C.
-a Resolve addresses to hostnames.
-n count Number of echo requests to send.
-l size Send buffer size.
-f Set Don't Fragment flag in packet (IPv4-only).
-i TTL Time To Live.
-v TOS Type Of Service (IPv4-only. This setting has been deprecated
and has no effect on the type of service field in the IP
Header).
-r count Record route for count hops (IPv4-only).
-s count Timestamp for count hops (IPv4-only).
-j host-list Loose source route along host-list (IPv4-only).
-k host-list Strict source route along host-list (IPv4-only).
-w timeout Timeout in milliseconds to wait for each reply.
-R Use routing header to test reverse route also (IPv6-only).
Per RFC 5095 the use of this routing header has been
deprecated. Some systems may drop echo requests if
this header is used.
-S srcaddr Source address to use.
-c compartment Routing compartment identifier.
-p Ping a Hyper-V Network Virtualization provider address.
-4 Force using IPv4.
-6 Force using IPv6.
1. Ping -t facebook.com
2. Ping -a google.com
Pinging google.com [2a00:1450:4018:806::200e] with 32 bytes of data:
Reply from 2a00:1450:4018:806::200e: time=117ms
Reply from 2a00:1450:4018:806::200e: time=191ms
Reply from 2a00:1450:4018:806::200e: time=85ms
Reply from 2a00:1450:4018:806::200e: time=100ms
Ping statistics for 2a00:1450:4018:806::200e:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 85ms, Maximum = 191ms, Average = 123ms
3. Ping -n 3 google.com
C:\Users\HP>ping -n 3 google.com
5. Ping -f google.com
Pinging google.com [142.250.185.46] with 32 bytes of data:
Reply from 142.250.185.46: bytes=32 time=110ms TTL=110
Reply from 142.250.185.46: bytes=32 time=92ms TTL=110
Reply from 142.250.185.46: bytes=32 time=94ms TTL=110
Reply from 142.250.185.46: bytes=32 time=126ms TTL=110
8. Ping -r 2 youtube.com
C:\Users\HP>ping -r 2 youtube.com
9. Ping -s 2 youtube.com
C:\Users\HP>ping -s 2 youtube.com
C:\Users\HP>ping -w 6 google.com
Tracert google.com
C:\Windows\system32>tracert google.com
1 * 168 ms 38 ms 2404:3100:1c15:3da9::83
2 * * * Request timed out.
3 105 ms 160 ms 184 ms 2404:3100:0:aa00::41
4 1044 ms 98 ms 103 ms 2404:3100:0:aa00::e3
5 * * * Request timed out.
6 82 ms 123 ms 396 ms 2404:3100:0:aa00::181
7 74 ms 73 ms 68 ms 2404:3100:0:ff00::2:218b
8 97 ms 127 ms 63 ms 2404:3100:0:ff00::2:218a
9 94 ms 91 ms * 2404:3100:0:ff00::2:2223
10 78 ms 88 ms 299 ms 2401:1::20
11 86 ms 95 ms * 2401:1::25
12 88 ms 96 ms 63 ms 2404:d400:4000:2e::1
13 129 ms 81 ms 106 ms 2404:d400:0:c::1
14 107 ms 133 ms 68 ms 2404:d400:0:35::1
15 160 ms * * 2001:4860:1:1::2094
16 144 ms 89 ms 159 ms 2a00:1450:8148::1
17 127 ms 378 ms 175 ms 2001:4860:0:1::3988
18 327 ms 229 ms 412 ms 2001:4860:0:1::7d99
19 126 ms 142 ms 108 ms mct04s01-in-x0e.1e100.net [2a00:1450:4018:802::200e]
Trace complete.
Tracert –help
C:\Windows\system32>tracert --help
--help is not a valid command option.
Options:
-d Do not resolve addresses to hostnames.
-h maximum_hops Maximum number of hops to search for target.
-j host-list Loose source route along host-list (IPv4-only).
-w timeout Wait timeout milliseconds for each reply.
-R Trace round-trip path (IPv6-only).
-S srcaddr Source address to use (IPv6-only).
-4 Force using IPv4.
-6 Force using IPv6.
Tracert -d google.com
C:\Windows\system32>tracert -d google.com
Trace complete.
Tracert -h 2 google.com
C:\Windows\system32>tracert -h 2 google.com
1 41 ms 10 ms 6 ms 2404:3100:1c15:3da9::83
2 * * * Request timed out.
Trace complete.
Tracert -j google.com
C:\Windows\system32>tracert -j google.com
Trace complete.
Tracert -w google.com
C:\Windows\system32>tracert -w google.com
Bad value for option -w.
C:\Windows\system32>tracert -w 4 google.com
1 2 ms 1 ms 1 ms 2407:d000:406:7b34:1c27:ff2d:1e60:b422
2 3 ms 2 ms 3 ms 2407:d000:401:0:172:16:86:250
3 * * * Request timed out.
4 3 ms 3 ms 3 ms 2404:d400:8000:22::1
5 19 ms 20 ms 19 ms 2404:d400:0:88::1
6 20 ms 21 ms 21 ms 2404:d400:0:a6::1
7 * * * Request timed out.
8 62 ms 47 ms 36 ms 2a00:1450:815f::1
9 * * * Request timed out.
10 312 ms * 177 ms 2001:4860:0:1::74d
11 32 ms 32 ms 36 ms mct01s21-in-x0e.1e100.net [2a00:1450:4018:807::200e]
Trace complete.
Tracert -4 google.com
C:\Windows\system32>tracert -4 google.com
Trace complete.
Tracert -6 google.com
C:\Windows\system32>tracert -6 google.com
Trace complete.
NSLOOKUP COMMAND:
Nslookup google.com
C:\Windows\system32>nslookup google.com
DNS request timed out.
timeout was 2 seconds.
Server: UnKnown
Address: fe80::1