I am working on creating a cluster configuration demo. I have three devices, one will be the head-node, two will be the compute-nodes. I am interested in using an unmanaged switch and have the two compute-nodes look to the head-node to get an IP address. Is it possible to configure my DHCP server (isc-dhcp-server) so that any device that connects always gets the same IP?
Asked
Active
Viewed 1,877 times
1 Answers
0
In your dhcpd configuration file (typically /etc/dhcp/dhcpd.conf) you can set persistent IP leases for specific machines by MAC address with stanzas as
host foobar {
hardware ethernet 08:01:02:03:04:05;
fixed-address 192.168.17.34;
}
Of course, the IP addresses must be consistent with the remainder of your network configuration and dhcpd.conf as per the dhcpd.conf manual page.
user4556274
- 1,440