On Red Hat 8 and derivatives, you now don't have to do anything, except configure your interfaces and your dhcpd.conf
correctly:
[root@foo ~]# cat /etc/sysconfig/dhcpd
# WARNING: This file is NOT used anymore.
# If you are here to restrict what interfaces should dhcpd listen on,
# be aware that dhcpd listens *only* on interfaces for which it finds subnet
# declaration in dhcpd.conf. It means that explicitly enumerating interfaces
# also on command line should not be required in most cases.
...
If you check /var/log/messages
, you'll see that:
...
No subnet declaration for eno1 (no IPv4 addresses).
** Ignoring requests on eno1. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eno1 is attached. **
...
So this should Just Work (TM), but points are awarded for worrying about running a DHCP server on the wrong interface. ;)