课程: Ubuntu Linux: Network Administration

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Configure a DHCP client

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…

内容