The same network interfaces interfaces in my laptop (eth1, wifi0, br0) are often connected to different networks (home/work/university network, virtual network with Virtualbox, ad-hoc network with my laptop as router), so dhcpd
can listen to various combinations of interfaces.
I want it to run for ad-hoc and virtual networks, but not to "big" networks which already have dhcp server. So in my network configuration scripts there is often killall dhcpd; dhcpd -i some_interface
(or just killall dhcpd
), which makes them interfere each other.
How to dynamically change listen interfaces in dhcpd
or run multiple instances.
Or I should make it just listen to all interfaces but manage iptables
rules to prevent dhcpd interference in scripts instead?