Traceroute traced the network traffic, so in this lesson, we are actually going to learn and try to
understand how we could troubleshoot the network issues if we are having any network issue in our environment.
And one of the commands that is mostly used to see where your traffic is going, which gateway or which
DNS server it's going from one to another to the third.
And finally, how is it going to reach its destination?
And to view that entire tracing of those network traffic, you have to use a command trace route.
And this is the command, I believe it is also available in other operating systems as well.
And Windows, I believe it's called Trace Aarti.
I'm not sure exactly what is the command and Mac or other operating system.
Anyway, we are Focus's Linux, so let's see what Traceroute does.
The traceroute command is used in Linux to map the journey that a packet of information undertakes from
its source to its destination.
One use of Traceroute is to locate when data loss occurs throughout a network which would significantly
signify node that's down.
So, as it says, we just need to find the tracing from source to destination, how the packet went
through from one to another, because each hop and the record reflects a new server, a router between
the originating PC and the intended target.
Reviewing the results of traceroute scan also lets you identify slow points that made adversely that
may adversely affect your network traffic.
So it could be many different pieces or many different machines or was in the middle while your traffic
is flowing that affect your your traffic flow.
And that's how once you know, hey, I know this is the machine, that is the trouble machine that is
causing my network traffic to fail.
You can find that out it by by running the command traceroute.
Now, the command itself is just simple.
Traceroute and the destination hostname or the IP address or the you are all in this case.
So if you are trying to go to a euro, let's say Google dot com, Facebook dot com or wherever you are
going, or if you are in your local environment, in your corporate world, you probably have an IP
or a host name of your machine, then you can run traceroute space the hostname as long as your machine
or your way you are running the trace route can resolve that hostname to IP.
If it cannot, then make sure you put in the IP address.
OK, let's get into my Linux machine and then we will try these where I'll come in on it and see how
it works.
So I will go into.
My console and first thing, I want to make sure I am online so I could just to ping.
Any website, so you'll see getting a response back.
So I am online, so now let's run the command phrase route now and you run it.
You have to specify the hostname.
If you are in your environment, in a corporate environment and you are running your infrastructure
and you probably have a lot of servers, you have to specify the hostname if it could resolve it.
Otherwise, the IP address before us, since we are using the lab environment, will just to Google
dot com and enter and you will see the first hub it is going to do is it's going to jump on to our modem.
This is my modem, which is also a gateway to my traffic.
So the first hub it is doing is going to my modem and this is the time it takes to go there.
And it didn't cause any issue.
If there was any hangtime time there, it will tell you this is going to take that much long time to
go to the second half.
Second hub is going to another gateway right here, which is most likely my nattered IP, which is the
Internet IP address, or the Internet IP, the Gateway IP.
And then it will tell you it did one to all the way through the 14 hops to get to this IP address,
which is the result IP address of the Google dot com.
So this is how you could actually use the trace road utility to find out how your traffic flows from
your source to the destination.
The reason it went to my gate, the first is because that's how my gateway is defined.
And to find out your gateway, you can run the command network.
That minus are in WI and you will see the gateway I have for all.
My traffic should flow from the gateway one nine to one sixty one to one.
It might be different in your environment, depending which environment you're working on and whether
you are doing this lesson through your work, then you will have a different one.
If you are doing from home, then most likely you will have the same IP address of your gateway.
So this is about the traceroute.
I'll try to find it.
How you could troubleshoot many times.
People also ask what are the different ways you could troubleshoot networking related issue in the operating
system so you could also bring up this traceroute command.
And this is one of the main commands that will help you troubleshoot network related issues.