If you are running a DHCP server on your Redhat Enterprise Linux, Centos, or your Fedora then you can restrict the DHCP server to respond on Specific network interfaces on the system by doing the following. This is useful in instances like attaching your existing server to a build network to provide DHCP services.
NOTE: We assume here that the DHCP server is already configured up and running.
Edit the file, /etc/sysconfig/dhcpd file and set the value
[root@rhelmaster ~]# cat /etc/sysconfig/dhcpd # Command line options here DHCPDARGS="eth1";
This would allow the DHCP server to allow to listen only on eth1 interface.
You can set multiple interfaces like
Now, restart your DHCP server for the change to take effect.
[root@rhelmaster ~]# service dhcpd restart Shutting down dhcpd: [ OK ] Starting dhcpd: [ OK ]