3.11 Linux Networking Part 1

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *

Already have an account? Sign In »

5 hours 21 minutes
Video Transcription
all right. Hello, And welcome to command line Basics. This is Lin. It's networking one. I'm Christopher Heller, and let's begin.
So are learning objectives for this video only the have config command or the nets that command and learn the L S O F. Command. These are very important to be able to use. The networking resource is the network commands for Lennox in order to connect to the Internet and other machines as well.
So pre assessment which command is the best way to find your I P Is it a net step? Be nbt step C l S o f or d I have config.
The answer is D I have config. This is for interface configuration and very useful for Lennox to be able to determine what your I P addresses. You could see your Mac address and use it to help troubleshoot any networking issues that you may have
the nets that command. While it may give you your i p, it lists any open network connections, and it's it's not the best way they just find out if he quickly nbt Stat is used for Windows machines and the Alyssa left is used to list open files.
So I have config like we were saying before, This is used to show the network configuration for the interfaces on your Lennox machine. And it's very similar to the i p config command that you will see for windows.
And, uh, we can also use it Thio create a new I P address on an interface or to disable or re enable an interface as well.
So we can use the eye of config the interface name, and then add toe add an address. You put a network mask on that as well, and then we can also use I have config the interface and down to bring the interface down and likewise we can use if config interface up to re enable that interface.
So let me give you a quick demonstration on my Lennox machine.
I'm in the show on the type I s conflict
and look at that. So we have to interface is right now I have e n s 33. This is my interface for the Internet and then I have the l o for Luke back in her face. You can quickly tell this is the loop back because of the 1 27 years or one I p. Address.
And if you're not very familiar with I P Networking or Luke backs and you know private I P addresses, I recommend looking them up
because in your cybersecurity career, you're very critical in order for people to understand what should should not be ratting on the Internet and how these addresses air stored and managed so highly recommend doing some research on your own if you're not familiar with them.
So as we can see my Internet, my I p address his 1 91 681 81 54 I have a leopard mask of slash 24 1st cider notation,
and this is my broadcast address. It's one,
and you can also see my Mac address for this interface pretty useful so we can use this to really take a look and identify any kind of trouble shooting that we may have with networking.
All right, so nets that what this does it it displays information about the Lenox networking, and it will show any open network connections that we may have in the background. And then on top of that, we can also show are writing table with the dash are switch. And if you're not familiar with Radic tables is they'll
used to help
determine which interface and where should send information for I P addresses. It's not sure exist,
so ah, that is what is used to help connect to the Internet.
So let's go back to this Lennox machine I'm gonna take That's that
and we're gonna see a whole bunch of information
on Let me see. I'm not sure if I have anything open right now.
Let me open up a Web site, actually real quick. That way we can use this to see
while we're waiting for that, I'm gonna do
knits that
Nash are.
And we can see our ratting table for this Lennox machine.
And we have our default Gateway
000 And it says, Just send it out. The NS 33 interface Pretty useful.
All right, now that we have Firefox open in the background and we're on the Lenox Mint site,
I'm just going to do next step on its own,
and there is a whole bunch of text that once it's let's just put that into less,
and as you can see, we have a whole bunch of different addresses and the local address in the foreign address showing that we have Ah,
there were connections open.
So we have cloud proxy. We have this website. We have all sorts of different ones and these air connected to the Internet over TCP. As we can see,
this is very useful toe help Try and track down any malware that maybe existing on your machine. If it's calling out to a command and control centre, it's going toe having established connection so we can look through the nets that command and identify any unknown or unwanted connections that are coming from your machine.
All right, we have L s O F. Also, this is a list Open files. It shows flowers that are currently being accessed across a network or being used, and it usually shows a lot of system usage, so there'll be a lot of noise, But,
you know, we can use it to crept through and really find something that we need in order to be able to, uh,
health. Determine if some somebody's *** kissing a file they're not supposed to you or from malware is, you know, utilizing these files.
So it's it's useful. So we're gonna do Alice O F
First we gotta exit at a less now this do l S O F.
And we know that there's a lot of system files coming through here, So
let's see if we can find fire fops. So we knew, Rip. Aah! Dash I
look at that. There's a whole bunch firefox that is being used right now as an open file. So this is very useful. Be able to be comfortable with If you're looking for and trying to find things that maybe shouldn't be open
on your machine
aren't supposed assessment. The if config command cannot be used to change your i. P. This is true or false.
The answer is false. You can use the I have config command to change your i. P. This is the most preferred way to do it and you're probably gonna have to run it as route because you are manipulating the hardware directly. So it's important to be ableto you understand how to use the eye of config. See your I P address. See you Mac address and that
help troubleshoot that if you're not able to connect to the network
so important to be confident and understand how to use these commands from the terminal
aren't so. In this video we learned that I have config comment under the nets that command and learned the L S O F command. And I hope to see you in the next video.
Up Next