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.
So, there is no need to specify on which interface DHCP should listen.
Let’s say your host has these IP addresses (please provide ip a
command result…):
eth0 192.168.1.1 netmask 255.255.255.0
eth1 192.168.56.1 netmask 255.255.255.0
And you want to configure the DHCP server only on eth0, you need to define
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.20 192.168.1.40;
...
}
DHCP server will be active only on the interface that is part of the subnet 192.168.1.0/255.255.255.0, hence eth0. And it will dynamically provide IPs (from 192.168.1.20 to 192.168.1.40) to the clients connected on the same subnet of eth0.
If you need to always assign the same address to a specific client identified by the xx:xx:xx:xx:xx:xx MAC address, you will add this declaration:
host fantasia { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address 192.168.1.200; }
Said that, sorry, but it is still unclear to me what you are trying to achieve. Does your machine already have IP addresses? Do you want to configure you machine as a DHCP server on one interface to assign IPs to other hosts in the same subnetwork?
As far as I can see from the logs in one of your first posts, you have these interfaces: enp8s0f1, enp8s0f0, wls6. I don’t know the network mask, but it seems that they are all on the same subnet 192.168.0.x and you want to configure the DHCP for the 192.168.15.0/255.255.255.0 subnet, and this could not work. Moreover, here, what are you trying to do?
host server {
hardware ethernet XX:XX:XX:XX:XX:XX;
fixed-address 192.168.15.1;
}
If you think that this will assign the IP 192.168.15.1 to the machine where the DHCP server is running, you are wrong. You are wrong even if you think that this is the definition of the interface on which the DHCP will bind to.
As said, you should read the DHCP manual and not the Fedora one.