In addition to releasing a dhcp lease the ipconfig

Info icon This preview shows pages 65–66. Sign up to view the full content.

View Full Document Right Arrow Icon
In addition to releasing a DHCP lease the ipconfig command can also be used to renew a DHCP lease.Instead of using release, this time we'll use renew. So to release a DHCP we use ipconfig /release and then to renew a lease we type ipconfig /renew. When I do Windows will go out and contact the DHCP server and say "hey I need an IP address" the DHCP server will respond and notice that we now have the same IP addressing information assigned that we had before. 10.0.0.25 255.255.255.0 for the mask and 10.0.0.1 for the default gateway. So that is how you use ipconfig on a Windows workstation to manage IP addressing. Using the ifconfig, ifdown, and ifup Commands on Linux 6:28-12:49 Let's now switch over to a Linux system and use the ifconfig command. Now the ifconfig command on Linux functions in much the same way as the ipconfig command on Windows systems. Just like on Windows we run the ifconfig command on Linux from the command line, so, first thing I need to doon this Linux is open up a terminal session. On Windows we call it the command prompt, on Linux we call it a terminal session, and they're basically the same thing though. So I'm going to type term in my search field and then click on GNOME terminal. Now I'm currently logged in to the system as my rtracy user, rtracy is a standard user and watch what happens if I try to type the ifconfig command as a standard user on Linux, it says, yeah you know what you might need superuser privileges to run this command. Now on Linux the name of the superuser is root. So before we run the ifconfig command we should switch to the root user, I'll type su - switch to my root user account I'll provide the root users password. Now I'm currently logged in as the root user which is a superuser instead of my standard rtracy user account. Now I can type the ifconfig command and when I do I see two network interfaces displayed in the output of the command the first one is named ENS32 and the second is named LO. Now just like with the output of the ipconfig command, in this output of ifconfig we see one virtual network adapter and one hardware network adapter understand that all Linux systems will have a virtual network adapter installed and configured called LO, this is called the loopback adapter. The loopback adapter is used for services running on the same Linux system to communicate with each other without having to know a physical IP address. Just as we kind of ignored the IPv6 virtual adapters on the Windows system, we're going to kind of ignore the LO network adapter on this Linux system. The adapter we do want to focus on is this one right here, ENS32. Now before we go any farther we need to talk about network interface naming on Linux. Back in the old days of Linux which really wasn't that long ago, about four or five years ago. It didn't matter what type of interface you connected to the system they were all named the same. The first network adapter in the system was named ETH0, that's E-T-H-0 the second one was ETH1 the third one was ETH2 and so on. That's no longer the case. With modern Linux distributions we used what's calledpredictable network naming. Instead of just naming the first interface in the system
Image of page 65

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 66
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern