Old friends will come back in this lesson.
We're going to talk about how to monitor the network services in the Linux environment.
In this lesson we're going to talk about some of the important commands which are very helpful for you
to monitor the network services.
OK.
So let's see here all the commands.
One by one.
OK what's going on that I would like to show you is that the next step one gives you the information
about all the connections.
OK.
So let's see here how it works when you type on.
Let's stack them like this.
It really is the connections on your system.
OK.
There are different switches with the help of which you're going to get more information.
OK then type hyphen.
It can list all the new connections on your system or whether it is act do or not.
It will list all the connections with the iPhone.
So just like 520 and more to view the connection status one by one.
OK.
So here you can see it use this information like this.
OK.
I know no more part of that process or that software or program.
And it gives the status of is listening are connected.
OK.
Like that then type that stream or DRAM or OK and flag then pro-coal that is the protocol.
There are different protocols like ECP of the UDP.
So in this way when you type it it will list all the new connections.
If you want to listen only the DCT connections aren't TCAP connections and then just type in the name.
It will list all the reports.
Here you can see it shows the TCAP ports only OK with Deira a local IP address.
And for an IP address and the state whether it is listening or not.
OK.
And here if you want to see UDP ports then disable you then you release all the UDP ports which are
currently listening on your system.
OK.
And if you want to see all the DCP ports with only listening ports.
So for that reason you just type and hit enter.
Now it leaves only the listening ports on your system will get.
So listening ports are those ports which are waiting for the incoming connection listening ports are
generally our ports which are provided by the server for the clients.
OK so in this way you can view the armed do listening connections for the DC reports.
If you want to do the same with UDP then just replace the DVD you enter.
And here you can see the act do listening UDP port connections.
OK in this way you can view this information OK.
And if you want to see the statistics of user interface then just type as like this or more to one by
one.
So here you can see the statistics like the IP information packets send receive information the protocol
that is DCB UDP like this information here in the complete form in the form of statistics.
And if you want to view the information of the program OK if you want to view the program name it also.
So this type of the.
And B.
Ok so now it's not printed here.
OK.
So here you can see it on your right hand side you can see the program name but it is blank here because
it may be hidden for some reasons.
So but if you want to view the program name just type B and if you want to see the username of the process
or the program.
So just type E.
OK.
When you type.
You can see here it gives the information about Deiner number and the user.
So here you can see a route is the system the resolve.
These are the users for the TCAP ports here.
So in this way you can list this information if you want to view the routing information that we saw
with route come on in our previous lives.
And you can just type on and he can do OK you can if you like this and if you don't want to print the
hostname if you want to print only the IP addresses here you can see.
In this case the hostname must be our default here.
Column number one.
If you don't want to print that and you want to print painlessness type and hit enter.
Now here you can see $0.00 0 is printed here.
OK instead of that different name.
In this way you can see such kind of information.
If you cannot sprint the interface name or OK on your local system like this.
OK.
So these are the interfaces here you can see in the registry and all these are the interface names that
you can list with I.
And if you want to see more user friendly output of this then just take each.
OK.
He can't get in.
You can see the output like then ifconfig c'mon.
OK.
And if you want to call them diecast mission then type I fringy.
OK.
This list the multicast group information.
There is a Funmi if you want to view the output of Nestor's.
Come you know continues we like you.
You maybe saw in some good movies nice continues GROL and does all that come on line or could so just
type here see and hit enter.
And now you can see it continues to scroll that screen ok for a long time until you press control seek
to get it in this way you can use the nets that combined to monitor the network connections on the interface
on your local interface.
OK you know and we saw group come on OK we saw here like this.
And in with this we get that network IP and forget me.
OK here would to show you the more information I will come on.
So you can add a default route into your system.
Come on.
So suruh then an OK after that default gateway and the IP address of your gateway machine will get the
Gateway Interface.
So after this hit enter only you'll find that the default gateway has been added.
And if you want to delete that then just tell us who defined and after typing this you will find you
will default gateway will be moved in this way you can perform this operation.
Come on you can also block Blockley particular host frocked from user interface.
OK.
So good that what you need to do is just get the come on.
OK you need to have super access and traders who then host.
Suppose I want to lock the doors.
You got 14.
And for this they reject Algie and he can get in.
You try to clean that up.
You got 14.
Let's see what it says no to the host.
That means that host is blocked on this interface.
OK.
You can also block a complete network.
OK on you work system so good that what you need to do is lose this horse get laid.
OK.
And here you need to point out things like this and then mega-mosque 255 dog give
255 or zero.
And after that reject and hit enter or get after doing this you will find you blocked on the networks
means you cannot configure any IP address in that range on the word interface.
OK.
In this way.
Come on.
Can we use to form their own operations.
OK after performing all these operations the next I like to show you how to monitor the packets or how
to capture the packets on only word or interface.
OK.
So there is a c'mon Corolla's PC be done with that participial dump come on you can monitor the packets
on an the face on your system.
OK.
So let's check whether that command is installed or not.
Or if you find that command is not installed just who will still be dumped and after that and that come
on installed on your system.
And now I have that come on.
So just type in the dump and Unica point here switched for interface and then in its name you see and
enter.
OK now here you can see it start to listen for the incoming or outgoing ports.
OK on that interface.
So what happens here is it captures the back gates on that interface and show it to you.
OK.
So currently I'm not going to capture the packets because it takes a long time actually to capture the
Packers because there is no interaction is going on on this interface currently.
So I'm going to press control-C.
OK you can the come on here and word for a long time then of course some time will find something is
going on means it captures some packets on your system and show it to you.
OK.
So in this way you can capture the packets if you want to see all the visual interfaces on your system.
And then just type the switch capability.
OK.
So it enter and this is all the available interfaces on your system after this.
Suppose you want to capture the packets for a particular amount of time.
Our particular package specific packets then just type your fancy and then fine.
OK.
And then I found an interface name OKI like this and it will capture the back.
It's only five packets or five times.
OK on this interface.
Good.
And if you want to print all the packets in ASCII format Gadot then just type hyphen a little high and
the interface name in the list.
OK.
And hit enter.
Now I would start to capture the packets and it will display an ASCII format.
And if you want to display it in hexadecimal format then type capital.
And hit enter.
Now you start to listen to start to capture the packet and show it to you in the exact decimal as well
as in like ASCII format.
In this way you can capture packets in different forms.
You can write down this capsule package school file.
Ok so if you want to capture those packets then what you need to do is unique type w here and here you
need to provide the file name.
I'm going to provide your 00 one got our got.
Recap.
Recap for packet capture.
Any danger now of getting engaged will capture the packet on interface in history and so that file in
your current directory will get.
And if you want to read that captured packets what you need to do is just provide for an hour.
And finally.
So here you can see on my system currently.
I already captured a packet in the file 0 0 0 1 part recap.
So I want to show it to you how to read the packet file.
So dumb they are and 0 1 got.
And he can not hear and see how I read that file and show it to you.
OK Typhon are OK.
You can also do like if you want to see only TCAP ports.
If you want to capture the backgrounds from only TZP ports Okey then you can do it like this like the
Superdome.
Then you can be Z-list tree and here just need to port DCP.
Then what happens is GEP just only TCAP packets on that interface.
Resti you can support the port number if you want to capture the package for one particular part number
then you can proceed like this.
The port number and then he turned to you can also capture that differs from the source machine.
Our source IP address.
So for those pederasts destroyed SIRC and they played this off fuel source machine.
So soberly idlis means your local machine.
OK so suppose I want to capture that for this then I don't know start to listen or start to capture
the package on this interface on for this IP address only.
And you can also captive for destination so you capture the packets for this mission machine and just
type DST and IP address of the destination machine.
So here you deploy I suppose I have this condition machine off I played this one night we bought 1 6
0 on 1 ok.
Start to capturing the packets on that interface.
Ok in this way you can perform all the network monitoring really discussed with the help of these commands.
These are very basic but very important commands.
These commands are very helpful in performing the network administration.
OK so where does this come on on your own.