From the course: Ubuntu Linux: Network Administration

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Configure a DHCP client

Configure a DHCP client

From the course: Ubuntu Linux: Network Administration

Start my 1-month free trial

Configure a DHCP client

- [Instructor] Let's configure our client system to get an address from our DHCP server. Right now, the system is set to have a manual address. It's 10.0.2.11. That's not within our range of dynamic addresses. I'll open up the network settings and change them to get a dynamic address instead. I'll write nano /etc/network/interfaces. I'll change the iface line to DHCP and I'll comment out the other lines. I'll save that, and then I'll restart. Now, I'll take a look at the IP address of the system with IP A. And I can see that now I have an address that's the first one within our range, 10.0.2.20. Now, the address is within the range of the dynamic addresses offered by our server. The DH client tool can tell us some information about this client's DHCP configuration. I'll use dhclient -r to release the lease. And then I'll use dhclient -v to request a new one. In this case, I got 10.0.2.21. Up here, we can see the interface that we're listening on, ENP0S3, and the mac address of this…

Contents