1
00:00:00,003 --> 00:00:02,008
- When troubleshooting network connectivity.

2
00:00:02,008 --> 00:00:05,004
The next step after verifying IP information

3
00:00:05,004 --> 00:00:08,007
with IP Config is to use the Ping Utility.

4
00:00:08,007 --> 00:00:11,002
If a client is having trouble getting out to the internet

5
00:00:11,002 --> 00:00:15,004
or just on the network, our first ping it's default gateway.

6
00:00:15,004 --> 00:00:18,004
From the Command Line, I simply type ping

7
00:00:18,004 --> 00:00:21,005
and the IP address of the default gateway,

8
00:00:21,005 --> 00:00:24,003
192.168.51.1.

9
00:00:24,003 --> 00:00:26,007
By default, it will issue four pings

10
00:00:26,007 --> 00:00:30,001
and uses 32 bytes per ping, reporting the latency

11
00:00:30,001 --> 00:00:33,000
of each ping measured in milliseconds.

12
00:00:33,000 --> 00:00:34,000
This is also known

13
00:00:34,000 --> 00:00:36,006
as the round trip time, since it measures how

14
00:00:36,006 --> 00:00:39,002
long it takes the packet to reach the destination

15
00:00:39,002 --> 00:00:40,005
and then return.

16
00:00:40,005 --> 00:00:42,009
When the four pings are complete, statistics

17
00:00:42,009 --> 00:00:44,005
like how many packets were sent

18
00:00:44,005 --> 00:00:47,008
and how many returned as well as the minimum maximum

19
00:00:47,008 --> 00:00:51,001
and average latency for the packets are displayed.

20
00:00:51,001 --> 00:00:52,009
Sometimes four pings isn't enough to

21
00:00:52,009 --> 00:00:55,008
troubleshoot intermittent connectivity issues.

22
00:00:55,008 --> 00:00:59,005
To persistently ping a host, all type ping -t

23
00:00:59,005 --> 00:01:05,007
and type IP address, 192.168.51.1,

24
00:01:05,007 --> 00:01:09,003
it will continuously ping showing latency impossible packet

25
00:01:09,003 --> 00:01:13,007
loss. To end the stream all type Ctrl + C,

26
00:01:13,007 --> 00:01:16,000
the CLI will spell out complete statistics

27
00:01:16,000 --> 00:01:19,007
on all the ping sent.

28
00:01:19,007 --> 00:01:21,007
Say I wanted to ping a host a number

29
00:01:21,007 --> 00:01:27,000
of times between four and infinity, ping -n allows me

30
00:01:27,000 --> 00:01:31,003
to specify a total number of pings to be sent.

31
00:01:31,003 --> 00:01:43,002
Be it 5, 30 or 100. 192.168.51.1.

32
00:01:43,002 --> 00:01:46,001
To ping an IP, and resolve it to a DNS name.

33
00:01:46,001 --> 00:01:55,004
I can type ping -a and the host to resolve gregsowell.com.

34
00:01:55,004 --> 00:01:57,007
The CLI will attempt to resolve the address

35
00:01:57,007 --> 00:02:00,008
and continue on ping host.

36
00:02:00,008 --> 00:02:03,005
I can also adjust the size of the packets being sent

37
00:02:03,005 --> 00:02:07,004
by typing ping -l and the number I'd like it to be.

38
00:02:07,004 --> 00:02:16,000
This case, I'll say 1,550 192.168.51.1.

39
00:02:16,000 --> 00:02:17,007
This can be especially useful when

40
00:02:17,007 --> 00:02:22,000
troubleshooting maximum transmission unit issues.

41
00:02:22,000 --> 00:02:25,001
The next go-to tool is trace route.

42
00:02:25,001 --> 00:02:28,007
In windows, the utility is called trace rt.

43
00:02:28,007 --> 00:02:30,008
Trace route uses ICNP packets

44
00:02:30,008 --> 00:02:33,007
to map out the path to a destination host.

45
00:02:33,007 --> 00:02:40,005
For my first trace, I can type in tracert gregsowell.com,

46
00:02:40,005 --> 00:02:47,003
which has resolved through DNS to 104, 21, 16, 186.

47
00:02:47,003 --> 00:02:51,000
As it hops through, I may occasionally see an ashtray.

48
00:02:51,000 --> 00:02:53,000
This means a packet was lost.

49
00:02:53,000 --> 00:02:55,009
If a hop responds with all asterix,

50
00:02:55,009 --> 00:03:00,004
this likely means it is blocking ICNP.

51
00:03:00,004 --> 00:03:04,005
It could also mean that the device is having severe issues.

52
00:03:04,005 --> 00:03:05,004
On the left.

53
00:03:05,004 --> 00:03:08,002
I see the hop count, go up as the packets, head

54
00:03:08,002 --> 00:03:12,004
towards the destination, the amount of latency, IP address

55
00:03:12,004 --> 00:03:15,009
and DNS name of each hop is also listed.

56
00:03:15,009 --> 00:03:17,006
Once the destination has been reached

57
00:03:17,006 --> 00:03:21,002
the CLI prints a trace complete message, or it will count up

58
00:03:21,002 --> 00:03:24,003
to the default 30 hops and say complete.

59
00:03:24,003 --> 00:03:27,002
A hop with erratic latency might be indicative

60
00:03:27,002 --> 00:03:32,002
of an issue or now add the -d flat.

61
00:03:32,002 --> 00:03:38,006
Tracert -d gregsowell.com.

62
00:03:38,006 --> 00:03:40,000
This tells trace route

63
00:03:40,000 --> 00:03:43,001
to skip resolving the names of each hop.

64
00:03:43,001 --> 00:03:44,004
This can speed up the trace,

65
00:03:44,004 --> 00:03:50,001
since the client isn't waiting to resolve addresses.

66
00:03:50,001 --> 00:03:53,005
I'll stop the process with Ctrl + C.

67
00:03:53,005 --> 00:03:54,003
The -h option,

68
00:03:54,003 --> 00:03:58,004
lets me change the default max number of hops.

69
00:03:58,004 --> 00:04:02,007
The last tool is path ping, path ping

70
00:04:02,007 --> 00:04:03,006
and then the IP address

71
00:04:03,006 --> 00:04:08,008
in question 192.168.88.1.

72
00:04:08,008 --> 00:04:12,006
This marries the attributes of both ping and trace route.

73
00:04:12,006 --> 00:04:16,008
It will do a trace route, then ping each hop for 25 seconds.

74
00:04:16,008 --> 00:04:18,009
This attempts to give better statistics

75
00:04:18,009 --> 00:04:21,006
than either a trace route or ping alone.

76
00:04:21,006 --> 00:04:23,001
It provides the roundtrip time

77
00:04:23,001 --> 00:04:25,006
as well as the packet loss along the way.

78
00:04:25,006 --> 00:04:28,008
It has many of the tracert options like -h

79
00:04:28,008 --> 00:04:33,004
for max number of hops and -n to not resolve DNS names.

80
00:04:33,004 --> 00:04:36,003
I can also specify -q to adjust the number

81
00:04:36,003 --> 00:04:38,003
of times it pings each hops.

82
00:04:38,003 --> 00:04:41,000
I can specify -q to adjust the number

83
00:04:41,000 --> 00:04:43,001
of times it pings each hop.

84
00:04:43,001 --> 00:04:45,005
The default is 100.

85
00:04:45,005 --> 00:04:48,003
All of these tools used in combination

86
00:04:48,003 --> 00:04:50,003
especially ping and trace route

87
00:04:50,003 --> 00:04:54,000
are central to troubleshooting network connectivity issues.

