4.7 Windows Networking Part 1

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

Already have an account? Sign In »

Time
5 hours 21 minutes
Difficulty
Beginner
Video Transcription
00:00
Hello and welcome to command line basics. This video. We're gonna go over windows now where he can commands one. I'm Christopher Heller, and let's begin.
00:08
We're learning objectives for this video. We're gonna learn the I p config Command learned the get Mac command and understand the n s look of command as well.
00:18
Reassessment. A computer cannot connect to the network. What command do you run? Is it a get back
00:25
B I p config. See? And this look up or d Ping,
00:30
the answer is B I p config. This is very similar to the linens I have config come in where it will display all of the different interfaces for networking. And it'll give us information about if they're up. If they're down What I p address? They have ah, whole lot of useful information.
00:47
So the get matt command will display the Mac address for the interfaces, but not necessarily help troubleshoot
00:55
the Ennis Look up is used to utilize the D. N s look ups for a web site, but not to help connect to the network.
01:03
Well, Ping is a very useful command to help. Valid e A computer is connecting to the network. It's not a very good tool to help troubleshoot if an interface not working properly. And since we already know the computer cannot connect to the network, our first step should be I p config.
01:19
So for the i p config command, it is Internet protocol configuration, and it'll display all of the configured networking interfaces on our Windows machines. And it'll all while I was to see the i p address network mask the default gateway. And we can also see the Mac address as well. From the Ivy can say,
01:38
if we use thes slash all
01:41
this is very similar to the clinics. I f config command as well. It looks very similar.
01:46
So let's go ahead and bring that up.
01:48
So I'm gonna see if I can take
01:51
As you can see, they have a whole lot of interfaces. And this is my WiFi adapter right here. Wouldn't see my I P address is 1921681.1 20
02:02
and my default gateway is 192168 that one down one.
02:07
So this is very useful to validate that information. And now let's say I want to do my p config slash all give us a lot more information about each interface as well.
02:20
So, as we see, we have a lot more information for my WiFi adapter. We conceive my physical address.
02:27
This is the Mac address till later to address. We get a description of the specific interfaces well,
02:32
and we can also look at that some of the other DHD peak information net miles, a whole lot of very useful information.
02:40
So it's important to keep the slash all switch in mind for I p config as well
02:46
aren't so they get Mac. This command is specifically just to get the Mac address for an interface. It doesn't give you any of the I P configuration information, any kind of packet
02:58
information about how many packets it's been submitting because this is only getting the Mac address on this layer to.
03:06
And if you're not familiar with the other side model and highly recommend learning more about it, uh, this is a very useful model or troubleshooting on a network as well as for penetration testing.
03:16
So it gets the Mac address for these interfaces, and it can be used remotely as well,
03:22
and I used this command in order to gather all 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 address for every single computer in my environment, which is about 2000 computers. And, uh, in order Thio
03:42
I use that.
03:43
Otherwise I would have been instructed to go around the each computer and write it down by hand. And I don't know about you, but I'm not going to spend, you know, eight hours walking around 2000 computers and writing down the back address for each one when I can just scripted out inside the command prompt save a lot of my time, Know that it's ah,
04:01
you know, I'm not having that human error element on top. That as well.
04:06
All right, so I'm gonna do get Mac from my command from
04:12
and chicken out. I'm all of these different physical addresses so
04:16
very useful to keep in mind if you need Thio Pul e Mac address for a computer as well.
04:24
And if we do get back slash question Mark,
04:27
you can see that we can use the slash s for a remote system as well, so we can connect to a remote system and get the Mac address for him.
04:38
All right, we have Ennis, Look up, Mrs Name Service. Look up. And what this does it. He'll submit Deena's queries for us so we can look up a specific DNA surgery. We can also request his own transfer using the n s look up. But that's not something that's really within the scope of this course.
04:56
So this is useful to be able to validate an I P address or see if you can submit the NS queers properly.
05:02
Right? So let's do Ennis. Look up slash question, Martin.
05:08
And here we go. We have a whole bunch of different information. We can also get into the interactive mode for Ennis. Look of
05:15
we just typed and its look up you'll see that we have ah, are specific A different type of ah prompt here.
05:21
And as you can see, I have my raspberry pi as my d n s super.
05:27
So let's say I want to see what the I p address for, uh, Google is www dot
05:33
cool dot com and hit Enter
05:36
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 pine that's configured with my interface already
05:46
and says This is the answer for your question. For Gould at home, the address is 172 to 17 10 to 28.
05:55
That's useful. Now let's say that I want to change which server I'm using.
06:00
So let's look at the help real quick and type in help.
06:04
And let's say I want to change the server. So I'm gonna take in server and then an I p address to change that default server.
06:13
So let's say one that one. That one doubt one. Now this is a different domain Adina server on the Internet that anyone can connect to.
06:24
And now let's say, let's look up Google again
06:30
and check it out. We have a different I p address now because we're asking a different server, and this is very normal for these huge organizations tohave well, more than who Indian s address. So this one is 172 to 17 3 10 very useful help troubleshoot through Deanna's
06:53
aren't supposed assessment. What layer of the O s I model is tthe e i P address?
06:58
Is it a later one?
07:00
The physical layer. Be layer to the data link layer. See layer three networking layer or D later, forth the transport layer
07:10
Answer is C
07:11
later. Three. The networking layer is used for I p addresses, and if you're not familiar with the other side model, I highly recommend taking the time to learn it properly.
07:21
So a layer one the physical layer is, ah, the physical bit that air being submitted across the network. Across the hardware.
07:29
The layer to the datalink layer is used for the Mac address on a local network. The layer three networking layer is for ah, different networks to connect together in a layer for transport. Layer is used to validate that information is being transported properly
07:47
over these layers and to help with the higher layers as well.
07:53
Are you in this video? We learned the I P CONFIG Command, learned the get Matt command and understood the NS Look up command and I hope to see you in the next video
Up Next