Join Mark Jacob for an in-depth discussion in this video ipconfig, part of Learning Network Troubleshooting.
- Let's take a look at another of the Windows network troubleshooting tools. This one is ipconfig. If you are inside a commmand prompt, which once again, I am. I'm actually just gonna type ipconfig, and forward slash, question mark. I wanna find out my options. And let's see here... I got lots of choices here. Typically, when we issue the command ipconfig our main goal is to find out, "What is my current IP address information?," which I can do that just by typing ipconfig with no additional parameters and hit enter.
And, here I have my information. If I'm running IPv6, I do have that. My particular IP address of this machine I have listed here 10.1.0.217, with a subnet mask of 255.255.0.0 The other piece of information here, let's see if they make it clear. If I wanna see more, notice if I scroll back up here one of my choices is right here. ipconfig forward slash all, which is detailed information.
What I find interesting most people do this: ipconfig space forward slash all. I'm a big proponent of type as little as possible, so I'm gonna save one whole keystroke here, and I'm gonna do an ipconfig slash all, with no spaces at all. Of course, some of you are like, "Uh, that's never gonna work." I hit enter, hey, it works just fine. In addition to the IP address information that I still have the same IP address of course, 10.1.0.217 with the same mask.
The other piece of information it shows me is my default gateway. And, the big one is DHCP enabled. Now, of course, I can go into the property sheet of my local area network connection and find out there, but if you're an network admin, you're probably a big fan of command line stuff. So, hey this is how I can find it out inside the command prompt. DHCP is enabled. Now, if I change that, let's do this. If I go to my network properties here, I'm just gonna go to control panel, and then network, and sharing, and change adapter settings.
Here's my local area network connection. I can go to properties, IPv4, that's the one we're interested in right now, properties. If I want to change that, I can do it right here. And we said what we had 10.1.0, in fact let me bring up my command prompt window again, and kind of just copy these settings. I have my IP address, my mask, and my gateway ten one zero one. So, using that let's go ahead and set this. 10.1.0.217, we said we had a mask of 255.255.0.0, default gateway 10.1.0.1, and I'm gonna use my favorite DNS server, 188.8.131.52 and say, "ok." Now, I could choose to validate settings upon exit.
I'm gonna say no, I have full confidence. Close and close. And then, if I come back to my command prompt using one of the other troubleshooting steps we've talked about is ping. Let's see if I'm still getting out. Can I ping Google.com? Yep. So, I have verified that I can get across, now I wanna know what changed in the output of the ipconfig slash all. In this case, if I scroll up here now I'm looking for that same output.
I can bring attention to it right here. DHCP enabled now? No. And why is DHCP not enabled anymore? Because I went in and manually set, or statically set, the IP address on this box. If I want to put it back, let me just bring up my property sheet. Local area network connection. Go back to IPv4, and I'm gonna set it back to obtain automatically, both DNS and the IP address. Say ok, ok, minimize this , come back.
Once again, I'm gonna clear the screen out. I'm gonna do an ipconfig slash all, and scroll up. Now, once again, it's been returned to the state it was when we first started. If I look at the DHCP enabled section there, yes, it is enabled again. Is everything still working? Let's make sure. Ping New York Times dot com. Replies okay. So, that's another one of those tools you can use. Command line, all the power.
Ipconfig tells you your current status, and if you change something, to verify that the change took effect. I would say this is one of those valuable Windows tools that you will use many times in your Network Admin job.