Check to see if a client on the same network with its adapter set to DHCP can obtain an IP address. As you can see in the screenshot below, a Windows 10 virtual machine on the same network has been assigned an IP address of 10.1.1.135.
Running the dhcp-lease-list command also confirms this.
To get manufacturer names please download http://standards.ieee.org/regauth/oui/oui.txt to /usr/local/etc/oui.txt
Reading leases from /var/lib/dhcp/dhcpd.leases
MAC IP hostname valid until manufacturer
00:0c:29:45:ba:4d 10.1.1.135 DESKTOP-8UK989 2019-12-12 13:22:00 -NA-
Creating Fixed IP addresses
It’s possible to assign a static address to a machine using the DHCP server instead of manually assigning it on the machine. This is useful for servers and printers, where you don’t want the IP address to change.
To configure a static IP, you need to know the MAC address of the machine, and the IP address must not be in the DCHP range. Add the following to the dchpd.conf to create a fixed IP.
In the example above, I’m assigning the hostname of esxi02 and and IP address of 10.1.1.12 to a server that has a network card with the MAC address of 00:0c:29:c0:a0:19.
You should now have a Ubuntu Server 18.04 machine on your network that will assign IP addresses to clients. We also covered how to create a fixed IP address so that you don’t have to manually configure static addresses on each server.
If you have any problems with clients not being able to obtain an address from the DHCP pool check the syslog file located at /var/log/syslog for any clues.
You can also run the dhcp-lease-list command to see a list of clients with leased addresses from the DHCP pool.
Fixed IP addresses won’t show up in the dhcp lease list.