Hello and welcome to Command Line
Basics. This video, we're going to
go over Windows Networking Commands
one. I'm Christopher and let's
begin.
So we're learning objectives for
this video. We're going to learn the
IP config command lendee, get
my command and understand
the look lookup command as
well.
Princess, when a computer cannot
connect to the network, what command
do you run?
Is it A Getback,
B IP config C
and A. Lookup or deeping.
The answer is B IP config.
This is very similar to the Linux IV
config command where it will display
all of the different
interfaces for networking
and will give us information about
if they're up, if they're down, what
IP address. They have a whole lot
of useful information.
So the Kitimat command will display
the Mac address for the
interfaces, but not necessarily
help troubleshoot the end
lookup is used to utilize
the DNS lookups for a
website, but not to help connect
to the network.
Whomping is a very useful command
to help validate a computer is
connecting to the network.
It's not a very good tool to help
troubleshoot if an interface
is not working properly.
And since we already know the
computer cannot connect to the
network, our first step should be IP
config.
So for the IP config
command, it is Internet protocol
configuration and it'll display
all of the configure networking
interfaces on our Windows machines
and it'll allow us to see the IP
address, the network mask, the
default gateway.
And we can also see the Mac address
as well from the IP config.
And if we use these people
and this is very similar to the
Linux, if config command as well,
it looks very similar.
So let's go ahead and bring that up.
So on its IP config,
as you can see, we have a whole lot
of interfaces and this
is my wi fi adapter right here.
And see, my IP address
is one nine two one
six eight one point one twenty.
And my default gateway is one nine
two one six eight.
That one down one.
So this is very useful to validate
that information.
Now let's say I want to do
IP config all,
so give us a lot more information
about each interface as well.
So as we see, we have a lot more
information for my wi fi adapter.
We can see my physical address.
This is the Mac address to layer to
address. We've got a description of
the specific interface as well.
And we can also look at some of the
other information,
net bios, a whole lot of very
useful information.
So it's important to keep the all
switch in mind for IP config as
well.
So the get Mac, this command
is specifically just
to get the Mac address for and
interface.
It doesn't give you any of the IP
configuration information, any kind
of packet information
about how many packets it's been
submitting, because this is only
getting the Mac address on this
layer too.
And if you're not familiar with the
Alisi model, I highly recommend
learning more about it.
This is a very useful model for
troubleshooting on a network as well
as for penetration testing.
So it gets the Mac address for these
interfaces and it can be used
remotely as well.
And I use this command in order to
gather all of the Mac addresses for
my environment, where I needed to
utilize a quick
scripting batch file
that I read together.
And it ran through and got the Mac
interest for every single computer
in my environment, which is about
two thousand computers.
And in order to
use that otherwise,
I would have been instructed
to go around to each computer and
write it down by hand.
And I don't know about you, but I'm
not going to spend eight hours
walking around in two thousand
computers and writing down the Mac
address for each one when I can just
script it out inside the command
prompt, save a lot of my time,
know that it's you know, I'm not
having that human error element on
top of that as well.
All right. So I'm going to do get
back from my command prompt
and check it out.
All of these different physical
addresses.
So very useful to keep in mind
if you need to pull the
Mac address for a computer
as well.
And if we do get a
question mark, you can see
that we can use the
S for a remote system
as well, so we can connect to a
remote system and get the Mac
address for them.
And we have a..
Look, this is name service lookup.
And what this does is submit DNS
queries for us
so we can look at a specific DNS
server. We can also request
a zone transfer using the lookup.
But that's not something that's
really within the scope of this
course.
So this is useful to be able to
validate an IP address.
If you can submit DNS queries
properly.
All right, so let's do this,
look up, questionmark,
and here we go, we have a whole
bunch of different information.
We can also get into the interactive
mode for us to look up.
If we just type and look up, you'll
see that we have our
specific, a different type of
prompt here.
And as you can see, I have my
Raspberry Pi as my
DNS server.
So let's say I want to see what the
IP address for
Google is going to do
that will dot com
and hit enter.
And what this says is this is the
server that was responding to my
request and this is the address of
the server responding to my request.
So the Raspberry Pi, that's
configured with my interface
already.
And so this is the answer for your
question for Google dot com.
The address is one seven two two
seventeen ten to twenty eight.
So that's useful.
Now, let's say that I want to
change which server
I'm using.
So let's look at the help real
quick. And I type in help
and let's say I want to change the
server, so I'm going to type in
server and then an IP address
to change that default server.
So let's say one point, one point
one one.
Now, this is a different domain,
a DNS server on the Internet that
anyone can connect to.
And now let's say let's look up
Google again
and check it out.
We have a different IP address now
because we're asking a different
server. And this is very normal for
these huge organizations
to have, well, more than one
DNS address.
So this one is one seven
two two, 17, three, 10,
very useful to help troubleshoot
through DNS.
All right, so post assessment, what
layer of the Odissi model is the
IP address?
Is it a layer one,
the physical layer by layer
to the data link layer, see
layer three, the networking layer
or d layer for the transport
layer?
The answer is C,
layer three, the networking layer is
used for IP addressing.
And if you're not familiar with the
assignment, I highly recommend
taking the time to learn it
properly.
So layer one, the physical
layer is the physical bits
that are being submitted across the
network, across the hardware.
The layer to the data
layer is used for the Mac address
on a local network.
Layer three networking layer is four
different networks to connect
together.
Layer for transport layer is
use to validate
that information being transported
properly over these
layers and to help with the higher
layers as well.
All right, so in this video, we
learned the IP config command,
the Mac command, understood the
lookup command, and I hope to see
you in the next video.