How to stop DHCP on a CSN
This short article explains how to easily disable DHCP on a CSN. This may be useful when transitioning from a CSN deployment to an SCS deployment while allowing both system to co-exist on the same private network. This would normally be problematic as both system would intercept DHCP requests in the PXE boot process.
Instructions
Steps below are provided depending on the version of CentOS/RHEL. For 6.X versions, service is used, whereas 7.X systemctl is used.
SSH as root user to the CSN
Edit /etc/monit.conf and comment out the include line 246 so that it looks like this:
#include /etc/monit.d/*Restart monit
service monit restartsystemctl restart monitShut off DHCP:
service dhcpd stopsystemctl stop dhcpdVerify DHCP is no longer running. Wait about a minute just to make sure that monit is not bringing DHCP back up.
service dhcpd statussystemctl stop dhcpdRevert changes if/when necessary.