All right. Hello and welcome to
Command Line.
This is Linux networking one.
I'm Christopher Haler.
And let's begin
so we're learning objectives for
this video.
The config command or the
nets that command and learn the
lesson of command.
And these are very important to be
able to use the networking
resources the network commands
for Linux in order to connect to the
Internet and to other machines as
well.
So pre assessment, which command
is the best way to find your IP?
Is it A net step B
and then C,
NSF or D,
I have config.
The answer is D.
I have config, this is for interface
configuration and very
useful for Linux to be able to
determine what your IP addresses,
you can see your Mac address and
use it to help troubleshoot
any networking issues that you may
have the network that command.
While it may give you your IP,
it lists any open network
connections.
And it's not the best
way to just find your IP quickly.
And that is used
for Windows machines and
the list 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 Linux machine,
and it's very similar to the IP
config command that you will see
for Windows.
And we can also use it
to create a new
IP address on an interface
or to disable or
re-enable and interface as well,
so we can use the IAFF config,
the interface name and then add
to add an address.
We put a network mask on that as
well, and then we can also use
config 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 Linux machine
in the show. I'm the type of
config and
look at that. So we have two
interfaces right now.
I have thirty three.
This is my interface for the
Internet and then I have the ELO
for Lookback interface.
You can quickly tell this is the
Lubeck because the one twenty seven
zero zero one IP address.
And if you're not very familiar with
IP networking or lookback
private IP addresses, I
recommend looking them up because
in your cybersecurity career you're
very critical in order to be able to
understand what should or should not
be routing on the Internet and how
these addresses are stored
and managed.
So I highly recommend doing some
research on your own if you're not
familiar with them.
So as we can see, my Internet,
my IP address is one
nine two one six eight one eighty
one five four.
I have a network mask of
twenty four for Seiter notation
and this is my broadcast address as
well.
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 troubleshooting that we
may have with networking.
All right, so next that this does
it, it displays information
about the Linux 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 our routing table with the
dash, our switch.
And if you're not familiar with
routing tables, is
used to help
determine which interface
and where she'd send information
for IP addresses,
it's not sure exist.
So that is what is used
to help connect to the Internet.
So let's go back to the Linux
machine.
I'm going to take that step
and we're going to see a whole bunch
of information.
And let me see, I'm not sure I
have anything open right now.
Let me open up a website
actually real quick, that way we can
use this to see.
While we're waiting for that, I'm
going to do
next
hour and we can see
our routing table for this Linux
machine and we have our default
gateway.
Zero zero zero.
And it says, just send it out to
us. Thirty three interface,
pretty useful right now
that we have Firefox open in the
background and we are on the Linux
Mint site, just going to do
next step on its own.
And there is a whole
bunch of text at once.
So 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
network connections open.
So we have a proxy.
We have this website,
we have all sorts of different ones.
And these are connected to the
Internet over TCP, as we can see.
And this is very useful to help
try and track down any malware that
may be existing on your machine.
If it's calling out to a command and
control SIGURÃ�UR, it's going to have
an established connection so we can
look through the nets that command
and identify any unknown
or unwanted connections
that are coming from your machine.
We have Elizabeth also.
This is list open files,
it shows files that are currently
being accessed across
the network or being used,
and it usually shows
a lot of system usage.
So there will be a lot of noise, but
we can use it to grep through and
really find something that we need
in order to be able to help
determine if something somebody
accessing a file they're not
supposed to or malware
is utilizing these files.
So it's useful.
So we are going to do off
first. We got to exit out of less
mouths to Elvis off.
And we know that there is a
lot of system files coming through
here. So
let's see if we can find
Firefox.
So we're going to add
that I Firefox
and look at that. There's a whole
bunch of Firefox that is being used
right now as an open file.
So this is very useful to 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 to.
Sussman if config command
cannot be used to change your IP.
Is this true or false?
The answer is false.
You can use the config
command to change your IP.
This is the most preferred way to
do it. And you're probably going to
have to run it as root because you
are manipulating the hardware
directly.
So it's important to be able to
understand how to use the IV config,
see your IP address, see your Mac
address and 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.
Answer in this video.
We're going to have config command,
then the next command and then the
loss of command.
And I hope to see you in the next
video.